Skip to content
Development
MCP

socraticode

Ships with socraticode: = 18.17"> "There is only one good, knowledge, and one evil, ignorance." — Socrates Your AI reads code. SocratiCode understands it.

From plugin
socraticode
3.4k2 skills1 agent1 hook1 MCP

Claude Code

> /plugin marketplace add giancarloerra/SocratiCode
> /plugin install socraticode@socraticode

From the README

What can you do with socraticode?

  • Hybrid code search

    Built on Qdrant, a purpose-built vector database with HNSW indexing, concurrent read/write, and payload filtering.

  • Configurable Qdrant

    Use the built-in Docker Qdrant (default, zero config) or connect to your own instance (self-hosted, remote server, or Qdrant Cloud).

  • Configurable Ollama

    Use the built-in Docker Ollama (default, zero config) or point to your own Ollama instance (native install -GPU access-, remote server, etc.).

  • Multi-provider embeddings

    Switch between Local Ollama (private, GPU access), Docker Ollama (zero-config), OpenAI (text-embedding-3-small, fastest), Google Gemini (gemini-embedding-001, free tier), LM Studio (local…

  • Private & secure

    Everything runs on your machine — your code never leaves your network.

  • AST-aware chunking

    Files are split at function/class boundaries using AST parsing (ast-grep), not arbitrary line counts.

  • Polyglot code dependency graph

    Static analysis of import/require/use/include statements using ast-grep for 19+ languages.

  • Broad language support

    Works with every supported file type out of the box.

Security report

Found

Low risk

  • Known flaws

    None known

  • Signed build

    No

    No build provenance published

  • Maintained

    Nov 5, 2026

    Last push

  • Licence

    AGPL-3.0

  • Runs as

    npx

    On your machine

  • Deprecated

    No

Signals from public registries, not an audit. Checked Nov 11, 2026.

socraticode README

SocratiCode logo

SocratiCode

CI

License: AGPL-3.0

npm version

= 18.17">

GitHub stars

MCP Toplist rank

Discord

Install Claude Code Plugin

VS Code Marketplace

Open VSX

Install in VS Code

Install in VS Code Insiders

Install in Cursor

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

Your AI reads code. SocratiCode understands it.

The open-source codebase context engine: 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

🛡️ Need MCP governance together with codebase context? See our sibling project JanuScope — the local-first MCP policy proxy: tool blocking, SQL-mutation gate, PII redaction, audit, rate-limit.

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!

💬 Questions or just want to chat? Join us on Discord.

☁️ SocratiCode Cloud (private beta) — Hosted, shared team index built on the same engine as the open-source version, plus SSO, audit logs, branch-aware indexing, and VPC / air-gapped deployment options. The open-source core remains free forever. Request early access →

One thing, done well: deep codebase intelligence with zero setup, no bloat, and full automation. SocratiCode gives AI assistants deep semantic understanding of your codebase: hybrid search, cross-project search, polyglot code dependency graphs, symbol-level impact analysis and flow, interactive HTML graph explorer for visual navigation, and searchable context artifacts (database schemas, API specs, infra configs, architecture docs). Zero configuration: add it to an MCP host that supports local stdio servers, or use a supported plugin or extension. 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-branch, multi-repo and 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.

Code intelligence that belongs to you, AI and host agnostic — your codebase's understanding lives with the code, not locked to any one assistant, IDE or model. And because SocratiCode pre-computes the hard parts (blast radius, call-flow, dependency traversal), smaller models can handle architectural complex tasks that would otherwise need top-tier reasoning, saving even more on token cost.

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 visualisation, symbol‑level Impact Analysis (blast‑radius & call‑flow tracing across 18 languages), 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 →

Contents

  • Quick Start
  • Quick guides
  • Plugins and host integrations
  • Why SocratiCode
  • Features
  • Prerequisites
  • Example Workflow
  • Agent Instructions
  • Configuration
  • Language Support
  • Ignore Rules
  • Context Artifacts
  • Environment Variables
  • Docker Resources
  • Testing
  • Why Not Just Grep?
  • FAQ
  • Community
  • SocratiCode Cloud
  • License

Quick Start

Requirements: Node.js 18.17 or newer with npx on PATH, plus Docker running for the default local Qdrant and Ollama stack.

For one recommended setup path per host and short practical scenarios, use the quick guides. This README has the other installation paths and full configuration.

Quick install guidance for Claude Code, VS Code, and Cursor:

Install Claude Code Plugin Install in VS Code Install in VS Code Insiders Install in Cursor

MCP hosts with a JSON mcpServers object can use this complete configuration:

{
  "mcpServers": {
    "socraticode": {
      "command": "npx",
      "args": ["-y", "--prefer-online", "socraticode@latest"]
    }
  }
}

Configuration schemas are host-specific. Continue, VS Code, Zed, OpenCode, Gemini CLI, and Cline have dedicated examples in Plugins and host integrations.

Keeping SocratiCode up to date

SocratiCode has two independent update paths. The MCP engine is the socraticode package published to npm. Every npm-backed configuration below uses npx -y --prefer-online socraticode@latest, which checks npm for the current latest release whenever the MCP server starts. A running server cannot replace itself, and a newly published version can only be downloaded while the npm registry is reachable, so restart or reconnect the server after a release.

Native plugins and extensions also contain skills, instructions, manifests, or UI files. Update those through the host as shown below, then start a new session so the new plugin files load. Direct MCP installations contain only the engine and do not install SocratiCode's plugin skills.

IntegrationUpdate plugin, skills, and integration files
Claude Code pluginEnable marketplace auto-update, or run claude plugin marketplace update socraticode followed by claude plugin update --scope user socraticode@socraticode
OpenAI Codex pluginRun codex plugin marketplace upgrade socraticode, then codex plugin add socraticode@socraticode and start a new task
VS Code Agent PluginLeave extensions.autoUpdate enabled for daily checks, or run Extensions: Check for Extension Updates, then start a new Chat
VS Code editor extensionUpdate it through the Extensions view or Extensions: Check for Extension Updates, then reload the window
Cursor local pluginUpdate to the latest GitHub release tag using the commands in the Cursor section, then reload Cursor
Gemini CLI direct MCPRestart Gemini to reconnect the server and resolve the current npm release
Direct MCP onlyNo separate plugin files are installed; restart or reconnect the MCP server to resolve the current npm release
@giancarloerra
Ships withsocraticode
3.4k2 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.4k
Star history of giancarloerra/SocratiCode on GitHub, a chart by star-history.com

More MCP servers from other plugins.

chrome-devtools
Auto-invoked

chrome-devtools

MCP

Connects to Chrome over the DevTools Protocol to inspect the DOM, network requests and console output.

ecc12d293k
@affaan-m@affaan-mInstall MCP
supabase

supabase

MCP

Queries a Supabase project: Postgres tables, auth users, storage and edge functions.

supabase11d114k
@supabase@supabaseInstall MCP

Questions about socraticode.

Which coding agents can use socraticode?
socraticode works in any agent that reads an MCP config file: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf. Each agent reads it from its own file; this page names the file for each one.
How do I add socraticode to Claude Code?
Run these in order, one at a time. 1. In Claude Code: /plugin marketplace add giancarloerra/SocratiCode 2. In Claude Code: /plugin install socraticode@socraticode
Is socraticode safe to install?
Low risk. Signals from public registries, not an audit.