Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

SocratiCode

Lets your AI agent search and understand a whole codebase with semantic search, dependency graphs and impact analysis.

3.4k stars on GitHubby Giancarlo ErraLicense AGPL-3.0Updated 19 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add socraticode -- npx -y socraticode

What to fill in

NameWhat it isRequired
EMBEDDING_PROVIDEREmbedding provider to use: ollama (default), openai, google, lmstudio, or litellmNo
OPENAI_API_KEYAPI key for OpenAI embeddings (required only when EMBEDDING_PROVIDER=openai)No
GOOGLE_API_KEYAPI key for Google embeddings (required only when EMBEDDING_PROVIDER=google)No
OLLAMA_URLURL of the Ollama server (default: auto-detected; Docker-managed or http://localhost:11434)No
EMBEDDING_MODELEmbedding model name (defaults per provider; required for lmstudio and litellm)No
EMBEDDING_DIMENSIONSEmbedding vector dimensions (defaults per provider; required for lmstudio and litellm)No
OLLAMA_MODEOllama mode: auto (default), docker, or externalNo
OLLAMA_API_KEYOptional API key for authenticated Ollama proxiesNo
LMSTUDIO_URLLM Studio OpenAI-compatible base URL (default: http://localhost:1234/v1)No
LMSTUDIO_API_KEYOptional API key when LM Studio authentication is enabledNo
LMSTUDIO_ALLOW_MISSING_MODEL_LISTINGAllow compatible embedding servers without a models endpoint to be probed directlyNo
LITELLM_URLLiteLLM OpenAI-compatible base URL (default: http://localhost:4000/v1)No
LITELLM_API_KEYLiteLLM master or virtual API key (required when EMBEDDING_PROVIDER=litellm)No
LITELLM_SEND_DIMENSIONSForward the dimensions parameter through LiteLLM when explicitly enabledNo
QDRANT_MODEQdrant mode: managed (default, Docker-managed) or external (user-provided instance)No
QDRANT_URLFull URL for remote/cloud Qdrant (e.g. https://xyz.cloud.qdrant.io:6333). Only needed when QDRANT_MODE=externalNo
QDRANT_API_KEYAPI key for remote Qdrant instance. Only needed when QDRANT_MODE=externalNo

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Index this codebase.
What would break if I change the signature of this function?

What it is

SocratiCode indexes your codebase locally and gives your agent deep knowledge of it. It offers hybrid semantic and keyword search, dependency graphs, symbol-level impact analysis and searchable files such as database schemas and API specs. It is private and local by default, with the index kept up to date as files change.

What it can do

  • Hybrid semantic and keyword search across the code
  • Dependency graphs, including circular dependency views
  • Symbol-level impact analysis and call-flow tracing
  • Context artifacts such as database schemas, API specs and infra configs
  • codebase_update: refresh the index
  • codebase_watch: start or restart the file watcher

When to use

  • β€ΊWhen you work in a large codebase and grep is too slow or noisy.
  • β€ΊWhen you want to know what a change might break before making it.
  • β€ΊWhen several agents work on the same repo and should share one index.

What you need

Node.js 18.17 or newer with npx, and Docker running for the default local Qdrant and Ollama setup. First setup takes about five minutes.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The readme calls it open source and completely free. A hosted Cloud version is in private beta.

Does my code leave my machine?

Not by default. Docker handles everything locally with no API keys. Cloud embeddings from OpenAI or Google Gemini are optional.

What does it need?

Node.js 18.17 or newer and Docker running.

How big a codebase can it handle?

The readme says it was tested on repositories up to and over about 40 million lines of code.

How long does first indexing take?

The readme says a few seconds to a few minutes depending on size, and under 10 minutes for over 3 million lines on a MacBook Pro M4.

Which tools can use it?

Any MCP host with local stdio servers, plus plugins for Claude Code, VS Code, Cursor and others.

If it does not work

  • β€ΊMake sure Docker is running before you start, since the default setup uses it.
  • β€ΊRestart your host after adding the server so it pulls images and starts Qdrant.
  • β€ΊIf tools seem old, restart or reconnect the server so npx fetches the latest release.

5 new skills a week. 1 minute to read.