Socraticode logo

Socraticode

Indexes local codebases for hybrid search, dependency graphs, symbol analysis, and searchable project context over MCP.

Install Socraticode

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "socraticode": {
      "command": "npx",
      "args": [
        "-y",
        "--prefer-online",
        "socraticode@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

socraticode indexes local codebases and exposes semantic search, dependency graphs, symbol analysis, and context-artifact search through MCP. It uses resumable background indexing, incremental updates, and optional file watching to keep project data current. Reach for it when an AI assistant needs repository-wide understanding, cross-project search, call-flow tracing, or change-impact analysis rather than basic text matching. The default setup runs locally with Node.js, Docker, Qdrant, and Ollama.

Use cases

  • Search a large local repository by concept and keyword
  • Trace callers, callees, and forward execution paths
  • Estimate the blast radius of a file or symbol change
  • Visualize imports and detect circular dependencies
  • Search indexed schemas, API specifications, and infrastructure documents

Key features

  • Hybrid semantic and BM25 code search
  • Resumable background indexing with incremental updates
  • Polyglot dependency graphs and circular-dependency detection
  • Symbol-level impact, flow, and relationship analysis
  • Cross-project search and shared indexed project data
  • Searchable context artifacts

Tools26

What Socraticode lets your agent do. Expand a tool for its parameters.

Self-reported~867 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

49/49 checks healthy over the last 64d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · socraticode@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3.4kStargazers on the source repository.
npm downloads12kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed26Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Socraticode works

What socraticode does

socraticode gives MCP-compatible AI clients a persistent view of local software projects. It indexes source code into searchable project data, supports hybrid semantic and keyword retrieval, and can search across linked projects. Search accepts optional file-path and language filters, while project listing and status tools expose indexed paths, metadata, progress, and chunk counts.

The server also builds polyglot dependency graphs and provides higher-level code navigation. Agents can inspect imports and dependents, identify circular dependencies, calculate the likely blast radius of a file or symbol change, trace forward execution flow, and inspect a symbol’s definition, callers, and callees. Graph results can be rendered as Mermaid or as an offline interactive HTML explorer.

Project context can extend beyond source files. A .socraticodecontextartifacts.json file defines artifacts such as database schemas, API specifications, infrastructure configurations, or architecture documents. These artifacts can be indexed and searched separately from the codebase.

How it works

Indexing runs in the background and records checkpoints so an interrupted operation can resume. codebase_update limits work to changed files, and file watching can first catch up on missed changes before monitoring future edits. Removal operations coordinate with active watchers and indexing or graph jobs before deleting stored data.

Code search combines dense semantic retrieval with BM25 keyword retrieval and fuses the results using reciprocal rank fusion. Dependency graph construction is also asynchronous; its progress and persisted metadata are available through codebase_graph_status. Impact, flow, and symbol queries can accept a result limit when a name is ambiguous and report the total number of matching candidates.

The default local deployment uses Docker for Qdrant and Ollama. Cloud embedding providers, including OpenAI and Google Gemini, and external Qdrant deployments are available as configuration options. The local-first setup does not require API keys and keeps code on the machine.

Setup and configuration

Use Node.js 18.17 or newer, ensure npx is available on PATH, and run Docker. Add socraticode to an MCP host that supports local stdio servers, or use the documented integrations for Claude Code, VS Code, and Cursor. The package can be launched through npx with the socraticode@latest package reference.

The server manages its local indexing services automatically in the default configuration. Configuration options support alternative embedding and Qdrant arrangements when a project needs them. Multiple repositories, branches, and agents can share indexed project data, with coordination handled by the server.

Tools and capabilities

  • Start, stop, resume, update, watch, remove, prune, and inspect indexed projects.
  • Search code with semantic and keyword retrieval, filters, and linked-project scope.
  • Build, query, inspect, visualize, and remove dependency graphs.
  • Detect circular dependencies and review graph statistics such as connected files, orphans, and language distribution.
  • Calculate file or symbol impact, trace execution flow, and inspect symbol relationships.
  • List symbols by file or name and check Docker, Qdrant, and embedding-provider health.
  • Index, search, list, and remove context artifacts defined in .socraticodecontextartifacts.json.

Limitations and notes

Indexing and graph construction are background operations, so clients should poll the corresponding status tools before relying on newly generated data. Removing a project or its graph waits for relevant work to finish, and context-artifact removal is blocked while artifact indexing is active.

Interactive graph visualization creates a self-contained HTML page with vendored Cytoscape.js and Dagre and opens it in the default browser. Mermaid output is available when a text diagram is more appropriate. The server is licensed under AGPL-3.0.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Socraticode

socraticode is an MCP server that connects AI clients to local codebases and project context artifacts. Its main tools index and search code, build and query dependency graphs, inspect symbols, trace execution flow, calculate change impact, and manage file watching and incremental updates through a local Node.js and Docker-based setup.

Install it by adding the `socraticode@latest` package to an MCP host that supports local stdio servers. The documented quick-install paths cover Claude Code, VS Code, and Cursor. Node.js 18.17 or newer, `npx` on `PATH`, and Docker running are required for the default local Qdrant and Ollama stack.

Yes, socraticode works with Cursor through its local MCP server configuration. The project provides a Cursor installation link using `npx`, the `--prefer-online` flag, and the `socraticode@latest` package reference.

Yes, use `codebase_impact` for blast-radius analysis and `codebase_symbol` for a symbol’s definition, callers, and callees. `codebase_flow` traces forward execution from an entry point, and each relevant tool can limit results when a symbol or entry-point name is ambiguous.

Yes, `codebase_update` re-indexes changed files and `codebase_watch` monitors future changes. Starting the watcher first catches up on missed changes, while background indexing checkpoints progress so interrupted work can resume.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSocraticode AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/socraticode?style=directory)](https://allmcps.com/mcp/socraticode)
HTML Embed
<a href="https://allmcps.com/mcp/socraticode"><img src="https://allmcps.com/api/badge/socraticode?style=directory" alt="Socraticode on AllMCPs" /></a>