Skip to content
mcp/skillhub

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.

3.3kNode.jsstdioofficial registry

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 socraticode

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

VariableRequiredSecretDescription
EMBEDDING_PROVIDER——Embedding provider to use: ollama (default), openai, google, lmstudio, or litellm
OPENAI_API_KEY—yesAPI key for OpenAI embeddings (required only when EMBEDDING_PROVIDER=openai)
GOOGLE_API_KEY—yesAPI 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—yesOptional API key for authenticated Ollama proxies
LMSTUDIO_URL——LM Studio OpenAI-compatible base URL (default: http://localhost:1234/v1)
LMSTUDIO_API_KEY—yesOptional 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—yesLiteLLM 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—yesAPI 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

ModelPer 1,000 turnsWith 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 tok

    Visualise 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 tok

    Semantic 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 tok

    Semantic 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 tok

    Impact 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 tok

    Trace 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 tok

    Inventory 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 tok

    360° view of a symbol: definition, kind, callers, callees, confidence levels. Use to understand a function or class before changing it.

  • codebase_watch163 tok

    Start/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 tok

    Start 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 tok

    Build 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 tok

    List 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 tok

    Incrementally 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 tok

    List 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 tok

    Query the code dependency graph for a specific file. Returns what the file imports and what files depend on it.

  • codebase_graph_remove104 tok

    Remove 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 tok

    Index 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 tok

    Remove 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 tok

    Check 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 tok

    Gracefully 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 tok

    Remove 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 tok

    Check index status: chunk count, indexing progress (%), last completed operation, file watcher state. Call after codebase_index to poll until 100% complete.

  • codebase_graph_stats80 tok

    Get statistics about the code dependency graph: total files, edges, most connected files, orphan files, circular dependencies.

  • codebase_about70 tok

    Display 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 tok

    Find circular dependencies in the codebase.

  • codebase_health63 tok

    Check the health of all infrastructure: Docker, Qdrant container, Ollama, and embedding model. Use this to diagnose setup issues.

  • codebase_list_projects52 tok

    List 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.

  1. Last commit (default branch)

    2026-10-15 · 26d ago · GitHub

  2. Latest release

    2026-10-15 · 26d ago · GitHub · v1.16.1

  3. Package published

    no data · npm/PyPI

  4. 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.

ServerStarsToolsTokens / turnFreshnessRuns
Socraticode (this)3,342263,781Activelocal
Storybook91,330—not measuredActive—
Codebase Memory46,873—not measuredActivelocal
PostHog40,338—not measuredActivelocal + hosted
Claude Task Master28,244—not measuredStale—
Figma Developer16,0072898Slowinglocal
All devops & ci/cd MCP servers

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
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.

View all