socraticode
MCP server by giancarloerra Community
Indexes a codebase for semantic search, cross-project search, and code dependency graphs in AI assistants. It is aimed at developers who want local, private codebase context with minimal setup.
Install socraticode
Built from the published package, never by AI.
claude mcp add socraticode -- npx -y socraticodeRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"socraticode": {
"args": [
"-y",
"socraticode"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"socraticode": {
"args": [
"-y",
"socraticode"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"socraticode": {
"args": [
"-y",
"socraticode"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add socraticode -- npx -y socraticode{
"mcpServers": {
"socraticode": {
"args": [
"-y",
"socraticode"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add socraticode npx -y socraticodeGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the socraticode block.
About
SocratiCode is an open-source MCP server that gives AI assistants a searchable understanding of a codebase. It combines hybrid semantic and keyword search, polyglot dependency graphs, and symbol-level impact analysis. It also indexes searchable context artifacts such as database schemas, API specs, infra configs, and architecture docs.
Indexing runs in the background in resumable batches, and a file watcher keeps the index updated as files change. The default setup runs Qdrant and Ollama through Docker, with no API keys required and no data leaving the machine. The source says it has been tested on repositories of up to about 40 million lines of code. It is aimed at developers and teams who want AI assistants to work from codebase context across several hosts.
Written from the project's README and checked against it.
Tools it gives your assistant
codebase_updateRefreshes the codebase index when you want an explicit update.codebase_watchStarts or restarts the file watcher that keeps the index current.Hybrid code searchCombines semantic and BM25 keyword search, fused with RRF, across code.Cross-project searchSearches across more than one indexed project.Code dependency graphsBuilds polyglot dependency graphs and shows circular dependencies.Symbol-level impact analysisTraces blast radius and call flow for symbols across 18 languages.Interactive HTML graph explorerProvides a visual HTML view for navigating the code graph.Context artifact searchSearches indexed database schemas, API specs, infra configs, and architecture docs.
What you need
- Node.js 18.17 or newer with npx on PATH
- Docker running for the default local Qdrant and Ollama stack
| Setting | Needed | What it is |
|---|---|---|
EMBEDDING_Environment variable | Optional | Embedding provider to use: ollama (default), openai, google, lmstudio, or litellm |
OPENAI_Environment variable, secret | Optional | API key for OpenAI embeddings (required only when EMBEDDING_PROVIDER=openai) |
GOOGLE_Environment variable, secret | Optional | API key for Google embeddings (required only when EMBEDDING_PROVIDER=google) |
OLLAMA_Environment variable | Optional | URL of the Ollama server (default: auto-detected; Docker-managed or http://localhost:11434) |
EMBEDDING_Environment variable | Optional | Embedding model name (defaults per provider; required for lmstudio and litellm) |
EMBEDDING_Environment variable | Optional | Embedding vector dimensions (defaults per provider; required for lmstudio and litellm) |
OLLAMA_Environment variable | Optional | Ollama mode: auto (default), docker, or external |
OLLAMA_Environment variable, secret | Optional | Optional API key for authenticated Ollama proxies. Remote endpoints require HTTPS; loopback HTTP is supported. |
LMSTUDIO_Environment variable | Optional | LM Studio OpenAI-compatible base URL (default: http://localhost:1234/v1) |
LMSTUDIO_Environment variable, secret | Optional | Optional API key when LM Studio authentication is enabled |
LMSTUDIO_Environment variable | Optional | Allow compatible embedding servers without a models endpoint to be probed directly |
LITELLM_Environment variable | Optional | LiteLLM OpenAI-compatible base URL (default: http://localhost:4000/v1) |
LITELLM_Environment variable, secret | Optional | LiteLLM master or virtual API key (required when EMBEDDING_PROVIDER=litellm) |
LITELLM_Environment variable | Optional | Forward the dimensions parameter through LiteLLM when explicitly enabled |
QDRANT_Environment variable | Optional | Qdrant mode: managed (default, Docker-managed) or external (user-provided instance) |
QDRANT_Environment variable | Optional | Full URL for remote/cloud Qdrant (e.g. https://xyz.cloud.qdrant.io:6333). Only needed when QDRANT_MODE=external |
QDRANT_Environment variable, secret | Optional | API key for remote Qdrant instance. Only needed when QDRANT_MODE=external |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Index this codebase
- What is the codebase index status?
- Show me the dependency graph and any circular dependencies in this project
Good to know
- Docker containers cannot use the GPU on macOS or Windows, which slows indexing of large repos.
- Native Ollama or OpenAI embeddings are suggested for faster indexing on medium and large repos.
- SocratiCode Cloud, with hosted indexing and SSO, is in private beta.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to socraticode
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
socraticode: common questions
Does SocratiCode send my code to the cloud?
The source says the default setup is private and local, with no data leaving the machine and no API keys required. Cloud embeddings and Qdrant are optional configurations.
Does the index update automatically after I change files?
Yes. The source says the file watcher keeps the index automatically updated at every file change and across sessions. Users can also turn the watcher off for a fixed snapshot.
Is SocratiCode free to use?
The source says the open-source core is free forever and describes it as completely free. A separate hosted SocratiCode Cloud product is in private beta.
How do I install socraticode?
In Claude Code run claude mcp add socraticode -- npx -y socraticode. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is socraticode the official server?
socraticode is a community project by giancarloerra, not verified by a company domain.
Is socraticode free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is socraticode safe to use?
It scores 90 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to socraticode?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does socraticode work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
