SocratiCode MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add socrati-code -- npx -y socraticode
README.md

Give any AI instant automated knowledge of your entire codebase

SocratiCode

= 18">

"There is only one good, knowledge, and one evil, ignorance." — Socrates

Give any AI instant automated knowledge of your entire codebase (and infrastructure) — at scale, zero configuration, fully private, completely free.

Kindly sponsored by Altaire Limited

If SocratiCode has been useful to you, please ⭐ star this repo — it helps others discover it — and share it with your dev team and fellow developers!

One thing, done well: deep codebase intelligence — zero setup, no bloat, fully automatic. SocratiCode gives AI assistants deep semantic understanding of your codebase — hybrid search, polyglot code dependency graphs, and searchable context artifacts (database schemas, API specs, infra configs, architecture docs). Zero configuration — add it to any MCP host, or install the Claude Code plugin for built-in workflow skills. It manages everything automatically.

Production-ready, battle-tested on enterprise-level large repositories (up to and over ~40 million lines of code). Batched, automatic resumable indexing checkpoints progress — pauses, crashes, restarts, and interruptions don't lose work. The file watcher keeps the index automatically updated at every file change and across sessions. Multi-agent ready — multiple AI agents can work on the same codebase simultaneously, sharing a single index with automatic coordination and zero configuration.

Private and local by default — Docker handles everything, no API keys required, no data leaves your machine. Cloud ready for embeddings (OpenAI, Google Gemini) and Qdrant, and a full suite of configuration options are all available when you need them.

The first Qdrant‑based MCP/Claude Plugin/Skill that pairs auto‑managed, zero‑config local Docker deployment with AST‑aware code chunking, hybrid semantic + BM25 (RRF‑fused) code search, polyglot dependency graphs with circular‑dependency visualization, and searchable infra/API/database artifacts in a single focused, zero-config and easy to use code intelligence engine.

Benchmarked on VS Code (2.45M lines): SocratiCode uses 61% less context, 84% fewer tool calls, and is 37x faster than grep‑based exploration — tested live with Claude Opus 4.6. See the full benchmark →

Star History Cha</div><section class=

Tools (3)

code_searchPerforms hybrid semantic and BM25 search across the codebase.
get_dependency_graphRetrieves the polyglot dependency graph for specified files or modules.
list_artifactsLists searchable context artifacts like database schemas, API specs, and infra configs.

Environment Variables

OPENAI_API_KEYOptional API key for cloud-based embeddings.
QDRANT_URLOptional URL for external Qdrant instance.

Configuration

claude_desktop_config.json
{"mcpServers": {"socraticode": {"command": "npx", "args": ["-y", "socraticode"]}}}

Try it

Search the codebase for where the authentication middleware is defined.
Generate a dependency graph for the user service module.
Find all database schema definitions related to the billing system.
Explain the architecture of the current project based on the indexed infra configs.

Frequently Asked Questions

What are the key features of SocratiCode?

Hybrid semantic and BM25 (RRF-fused) code search. Polyglot code dependency graphs with circular-dependency visualization. Automatic, resumable indexing for repositories up to 40M+ lines. Searchable context artifacts including DB schemas, API specs, and infra configs. Private and local-first architecture with Docker support.

What can I use SocratiCode for?

Navigating massive enterprise codebases without manual grep. Understanding complex dependency chains in polyglot projects. Quickly locating infrastructure configurations and API specifications. Enabling multi-agent AI teams to share a unified codebase index.

How do I install SocratiCode?

Install SocratiCode by running: npx -y socraticode

What MCP clients work with SocratiCode?

SocratiCode works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep SocratiCode docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare