
Socraticode MCP Server
by giancarloerraio.github.giancarloerra/socraticodev1.16.1
SocratiCode — MCP server for local codebase indexing, semantic search, and code dependency graphs. All private, all local via Docker.
context tax
~3,781 tok/turn26 tools
security
100/100
cold start
1426 ms
freshness
Active26d ago
Our reading of Socraticode, from the data
Socraticode is a devops & ci/cd MCP server from giancarloerra, listed in the official MCP Registry.
Its 26 tools add about 3,781 tokens to every model turn, heavier than the devops & ci/cd median of 2,020 tokens across 41 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 26 days ago (2026-10-15). For comparison, 61% of devops & ci/cd servers are active or maintained.
With 3,342 GitHub stars it ranks #16 of 848 devops & ci/cd servers we index.
It runs locally on your machine over stdio and needs 6 secrets (OPENAI_API_KEY, GOOGLE_API_KEY, OLLAMA_API_KEY, …); use a scoped, least-privilege key.
Install Socraticode MCP server
Install in Claude Code
claude mcp add socraticode -e OPENAI_API_KEY='<openai-api-key>' -e GOOGLE_API_KEY='<google-api-key>' -e OLLAMA_API_KEY='<ollama-api-key>' -e LMSTUDIO_API_KEY='<lmstudio-api-key>' -e LITELLM_API_KEY='<litellm-api-key>' -e QDRANT_API_KEY='<qdrant-api-key>' -- npx -y socraticodeInstall in Cursor
{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OLLAMA_API_KEY": "<ollama-api-key>",
"LMSTUDIO_API_KEY": "<lmstudio-api-key>",
"LITELLM_API_KEY": "<litellm-api-key>",
"QDRANT_API_KEY": "<qdrant-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OLLAMA_API_KEY": "<ollama-api-key>",
"LMSTUDIO_API_KEY": "<lmstudio-api-key>",
"LITELLM_API_KEY": "<litellm-api-key>",
"QDRANT_API_KEY": "<qdrant-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"socraticode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OLLAMA_API_KEY": "<ollama-api-key>",
"LMSTUDIO_API_KEY": "<lmstudio-api-key>",
"LITELLM_API_KEY": "<litellm-api-key>",
"QDRANT_API_KEY": "<qdrant-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OLLAMA_API_KEY": "<ollama-api-key>",
"LMSTUDIO_API_KEY": "<lmstudio-api-key>",
"LITELLM_API_KEY": "<litellm-api-key>",
"QDRANT_API_KEY": "<qdrant-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test socraticode
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| EMBEDDING_PROVIDER | — | — | Embedding provider to use: ollama (default), openai, google, lmstudio, or litellm |
| OPENAI_API_KEY | — | yes | API key for OpenAI embeddings (required only when EMBEDDING_PROVIDER=openai) |
| GOOGLE_API_KEY | — | yes | API key for Google embeddings (required only when EMBEDDING_PROVIDER=google) |
| OLLAMA_URL | — | — | URL of the Ollama server (default: auto-detected; Docker-managed or http://localhost:11434) |
| EMBEDDING_MODEL | — | — | Embedding model name (defaults per provider; required for lmstudio and litellm) |
| EMBEDDING_DIMENSIONS | — | — | Embedding vector dimensions (defaults per provider; required for lmstudio and litellm) |
| OLLAMA_MODE | — | — | Ollama mode: auto (default), docker, or external |
| OLLAMA_API_KEY | — | yes | Optional API key for authenticated Ollama proxies |
| LMSTUDIO_URL | — | — | LM Studio OpenAI-compatible base URL (default: http://localhost:1234/v1) |
| LMSTUDIO_API_KEY | — | yes | Optional API key when LM Studio authentication is enabled |
| LMSTUDIO_ALLOW_MISSING_MODEL_LISTING | — | — | Allow compatible embedding servers without a models endpoint to be probed directly |
| LITELLM_URL | — | — | LiteLLM OpenAI-compatible base URL (default: http://localhost:4000/v1) |
| LITELLM_API_KEY | — | yes | LiteLLM master or virtual API key (required when EMBEDDING_PROVIDER=litellm) |
| LITELLM_SEND_DIMENSIONS | — | — | Forward the dimensions parameter through LiteLLM when explicitly enabled |
| QDRANT_MODE | — | — | Qdrant mode: managed (default, Docker-managed) or external (user-provided instance) |
| QDRANT_URL | — | — | Full URL for remote/cloud Qdrant (e.g. https://xyz.cloud.qdrant.io:6333). Only needed when QDRANT_MODE=external |
| QDRANT_API_KEY | — | yes | API key for remote Qdrant instance. Only needed when QDRANT_MODE=external |
Context tax
Connecting this server adds ~3,781 tokens of tool definitions to every model turn (moderate, 26 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $15.12 | $0.756 |
| Claude Sonnet 5.5 | $7.56 | $0.756 |
| Claude Haiku 5.5 | $0.378 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (26)
codebase_graph_visualize331 tokVisualise the code dependency graph. Two modes: • mode="mermaid" (default) — returns a Mermaid diagram (text) colour-coded by language, circular deps highlighted. Best for inline rendering inside chat, GitHub, or editors that render Mermaid. • mode="interactive" — writes a self-contained HTML page (vendored Cytoscape.js + Dagre, works offline) and opens it in the user's default browser. Shows the file graph and, when a symbol graph is available and fits, a Symbols toggle with the symbol-level call graph. Interactions: click node for sidebar with imports/dependents/symbols list; right-click
codebase_search321 tokSemantic search across an indexed codebase. Only use after codebase_index is complete (check codebase_status first). Returns relevant code chunks matching a natural language query.
codebase_context_search269 tokSemantic search across context artifacts (database schemas, API specs, infra configs, etc.) defined in .socraticodecontextartifacts.json. Auto-indexes on first use and auto-detects stale artifacts. Use this to find relevant infrastructure or domain knowledge.
codebase_impact268 tokImpact Analysis — return the BLAST RADIUS for a file or symbol. Lists every file (and, where helpful, function) that could break if you change the target. Polymorphic on target: a path-like string ('src/foo.ts') triggers file-mode; a name-like string ('validateUser') triggers symbol-mode. Use this BEFORE refactoring, renaming, or deleting code to know what depends on it.
codebase_flow213 tokTrace the EXECUTION FLOW forward from an entry point — what does this code call into? With NO args, returns a ranked list of auto-detected entry points (orphans with outgoing calls, conventional names like main(), framework routes, tests). With an entrypoint argument, returns the call tree.
codebase_prune201 tokInventory stored project identities and their resources. Report-only by default. Applying requires an exact identity, the confirmation token from a fresh inventory, and an acknowledgement that no other host is writing to it; path absence on this host is advisory, not proof of abandonment.
codebase_symbol164 tok360° view of a symbol: definition, kind, callers, callees, confidence levels. Use to understand a function or class before changing it.
codebase_watch163 tokStart/stop watching a project directory for file changes and automatically update the index. When starting, first runs an incremental update to catch up, then watches for changes. SOCRATICODE_WATCHER=manual allows explicit starts only; off and git reject file-watcher starts. In git mode, status reports Git refresh state and stop does not disable Git checks.
codebase_index161 tokStart indexing a codebase in the background. Returns immediately. Call codebase_status to poll progress until 100%. Do NOT search until indexing is complete. If already indexing, returns current progress.
codebase_graph_build155 tokBuild a dependency graph of the codebase using static analysis (ast-grep). Maps import/require/export relationships between files. Runs in the background — call codebase_graph_status to poll progress until complete.
codebase_symbols140 tokList symbols in a file, or search by name across the project. Use to discover what exists before drilling into a single symbol with codebase_symbol.
codebase_update134 tokIncrementally update an existing codebase index. Only re-indexes changed files. Runs synchronously. Use it to refresh a manual/off snapshot, working-tree edits before the next Git transition in git mode, or whenever an immediate catch-up is needed.
codebase_context121 tokList all context artifacts defined in .socraticodecontextartifacts.json — database schemas, API specs, infra configs, architecture docs, etc. Shows each artifact's name, description, path, and index status. Use this to discover what project knowledge is available beyond source code.
codebase_graph_query111 tokQuery the code dependency graph for a specific file. Returns what the file imports and what files depend on it.
codebase_graph_remove104 tokRemove a project's persisted code graph. Waits for any in-flight graph build to finish first. The graph can be rebuilt with codebase_graph_build or will be rebuilt automatically on the next codebase_index.
codebase_context_index104 tokIndex or re-index all context artifacts defined in .socraticodecontextartifacts.json. Chunks and embeds artifact content into the vector database for semantic search. Usually not needed — codebase_context_search auto-indexes on first use.
codebase_remove103 tokRemove a project's codebase index entirely from the vector database. Safely stops the file watcher, cancels any in-progress indexing/update (with drain), and waits for any in-flight graph build before deleting.
codebase_graph_status101 tokCheck the status of the code dependency graph: build progress (if building), node/edge count, when it was last built, whether it's cached in memory. Use this to poll progress after calling codebase_graph_build.
codebase_stop99 tokGracefully stop an in-progress indexing operation. The current batch will finish and checkpoint, preserving all progress. Re-run codebase_index to resume from where it left off.
codebase_context_remove97 tokRemove all indexed context artifacts for a project from the vector database. Blocked while indexing is in progress — use codebase_stop or wait for the operation to finish first.
codebase_status88 tokCheck index status: chunk count, indexing progress (%), last completed operation, file watcher state. Call after codebase_index to poll until 100% complete.
codebase_graph_stats80 tokGet statistics about the code dependency graph: total files, edges, most connected files, orphan files, circular dependencies.
codebase_about70 tokDisplay information about SocratiCode — what it is, its tools and how to use it. Use this to get a quick overview of the MCP tools and their purpose.
codebase_graph_circular66 tokFind circular dependencies in the codebase.
codebase_health63 tokCheck the health of all infrastructure: Docker, Qdrant container, Ollama, and embedding model. Use this to diagnose setup issues.
codebase_list_projects52 tokList all projects that have been indexed (have collections in Qdrant).
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 26d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-15 · 26d ago · GitHub
Latest release
2026-10-15 · 26d ago · GitHub · v1.16.1
Package published
no data · npm/PyPI
Registry entry updated
2026-10-15 · 26d ago · official registry · v1.16.1
How it compares in DevOps & CI/CD
Against the most-starred devops & ci/cd servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Socraticode (this) | 3,342 | 26 | 3,781 | Active | local |
| Storybook | 91,330 | — | not measured | Active | — |
| Codebase Memory | 46,873 | — | not measured | Active | local |
| PostHog | 40,338 | — | not measured | Active | local + hosted |
| Claude Task Master | 28,244 | — | not measured | Stale | — |
| Figma Developer | 16,007 | 2 | 898 | Slowing | local |
FAQ
›How do I install the Socraticode MCP server in Claude Code?
Run: claude mcp add socraticode -e OPENAI_API_KEY='<openai-api-key>' -e GOOGLE_API_KEY='<google-api-key>' -e OLLAMA_API_KEY='<ollama-api-key>' -e LMSTUDIO_API_KEY='<lmstudio-api-key>' -e LITELLM_API_KEY='<litellm-api-key>' -e QDRANT_API_KEY='<qdrant-api-key>' -- npx -y socraticode. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Socraticode require an API key?
Yes. It expects OPENAI_API_KEY, GOOGLE_API_KEY, OLLAMA_API_KEY, LMSTUDIO_API_KEY, LITELLM_API_KEY, QDRANT_API_KEY, of which 6 are secrets.
›Can I use Socraticode as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Socraticode in the official MCP registry?
Yes, as io.github.giancarloerra/socraticode.
›How many tokens does Socraticode add to my context?
Its tool definitions total about 3,781 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-10-15
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Socraticode
Other devops & ci/cd MCP servers.