$ timeahead.in
/ servers/npm/socraticode
npm

socraticode

SocratiCode — MCP server for local codebase indexing, semantic search, and code dependency graphs. All private, all local via Docker.

3k stars3k/wkupdated 7d agogithub ↗
91excellent
▣ Overview

What it does

SocratiCode indexes local codebases for AI-native semantic search and code understanding. It chunks code using AST awareness, builds hybrid search indices combining BM25 and embeddings, and automatically constructs dependency graphs and symbol-level call flows. The server runs as a Docker container, keeps indices up-to-date via file watchers, and supports multi-branch and multi-repo indexing at scale—tested on repositories exceeding 40 million lines. All indexing and searching is local by default; cloud embeddings (OpenAI, Google Gemini) are optional.

Who it's for

Backend teams indexing proprietary codebases where sending code off-machine is prohibited. Organizations running multiple AI agents simultaneously on the same project who need a shared, automatically-coordinated knowledge layer. Developers on large monorepos using Claude Code, Cursor, or other AI IDEs who want instant architectural context and semantic search without manual setup.

Common use cases

  • Search a codebase semantically to find where a feature or concept is implemented across thousands of files.
  • Analyze code blast radius: understand all dependencies on a changed module before refactoring.
  • Prime Claude or another AI assistant with architectural context before code generation tasks.
  • Run multiple independent agents on the same codebase with automatic index coordination.
  • Navigate code structure visually through the interactive HTML dependency graph explorer.

Setup pitfalls

  • Requires Docker and Node.js 18+. Large codebases need significant disk space and initial indexing time; resumable checkpoints prevent data loss on interruption.
  • Reads and writes the entire filesystem to build and maintain indices; isolate the container or carefully review file access permissions.
  • Classified as high risk due to filesystem and network capabilities—evaluate before running on sensitive systems.
  • Optional cloud embeddings require API keys (OpenAI, Google Gemini); no CI currently enabled, so verify stability on non-critical codebases first.
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
78
15.6
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
90.6
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high· 25 tools · auth: API key
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
Tool nameDescriptionDestructive?
codebase_index✓ no
codebase_update✓ no
codebase_remove⚠ yes
codebase_stop✓ no
codebase_watch✓ no
+20 more tools
codebase_search✓ no
codebase_status✓ no
codebase_graph_build✓ no
codebase_graph_query✓ no
codebase_graph_stats✓ no
codebase_graph_circular✓ no
codebase_graph_visualize✓ no
codebase_graph_remove⚠ yes
codebase_graph_status✓ no
codebase_impact✓ no
codebase_flow✓ no
codebase_symbol✓ no
codebase_symbols✓ no
codebase_context✓ no
codebase_context_search✓ no
codebase_context_index✓ no
codebase_context_remove⚠ yes
codebase_health✓ no
codebase_list_projects✓ no
codebase_about✓ no
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "socraticode": {
      "command": "npx",
      "args": [
        "-y",
        "socraticode"
      ]
    }
  }
}
📈 Score historylast 33 snapshots
5/25/20267/6/2026 · 33 snapshots
⚙ Maintenance health
maintenance data not yet available — check back later.
⛁ Raw data
weekly downloads3k
github stars3k
forks394
open issues0
license✓ present
readme length95306 chars
last publish0d ago
last commit7d ago
last updated7d ago
install verified✗ fail · 9d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points