Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

socraticode

MCP server by giancarloerra Community

Indexes a codebase for semantic search, cross-project search, and code dependency graphs in AI assistants. It is aimed at developers who want local, private codebase context with minimal setup.

  • Score 90
  • 3.4k stars
  • 2k a week
  • AGPL-3.0
  • Updated

Install socraticode

Built from the published package, never by AI.

claude mcp add socraticode -- npx -y socraticode

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install socraticode in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the socraticode block.

About

SocratiCode is an open-source MCP server that gives AI assistants a searchable understanding of a codebase. It combines hybrid semantic and keyword search, polyglot dependency graphs, and symbol-level impact analysis. It also indexes searchable context artifacts such as database schemas, API specs, infra configs, and architecture docs.

Indexing runs in the background in resumable batches, and a file watcher keeps the index updated as files change. The default setup runs Qdrant and Ollama through Docker, with no API keys required and no data leaving the machine. The source says it has been tested on repositories of up to about 40 million lines of code. It is aimed at developers and teams who want AI assistants to work from codebase context across several hosts.

Written from the project's README and checked against it.

Tools it gives your assistant

  • codebase_updateRefreshes the codebase index when you want an explicit update.
  • codebase_watchStarts or restarts the file watcher that keeps the index current.
  • Hybrid code searchCombines semantic and BM25 keyword search, fused with RRF, across code.
  • Cross-project searchSearches across more than one indexed project.
  • Code dependency graphsBuilds polyglot dependency graphs and shows circular dependencies.
  • Symbol-level impact analysisTraces blast radius and call flow for symbols across 18 languages.
  • Interactive HTML graph explorerProvides a visual HTML view for navigating the code graph.
  • Context artifact searchSearches indexed database schemas, API specs, infra configs, and architecture docs.

What you need

  • Node.js 18.17 or newer with npx on PATH
  • Docker running for the default local Qdrant and Ollama stack
SettingNeededWhat it is
EMBEDDING_PROVIDEREnvironment variableOptionalEmbedding provider to use: ollama (default), openai, google, lmstudio, or litellm
OPENAI_API_KEYEnvironment variable, secretOptionalAPI key for OpenAI embeddings (required only when EMBEDDING_PROVIDER=openai)
GOOGLE_API_KEYEnvironment variable, secretOptionalAPI key for Google embeddings (required only when EMBEDDING_PROVIDER=google)
OLLAMA_URLEnvironment variableOptionalURL of the Ollama server (default: auto-detected; Docker-managed or http://localhost:11434)
EMBEDDING_MODELEnvironment variableOptionalEmbedding model name (defaults per provider; required for lmstudio and litellm)
EMBEDDING_DIMENSIONSEnvironment variableOptionalEmbedding vector dimensions (defaults per provider; required for lmstudio and litellm)
OLLAMA_MODEEnvironment variableOptionalOllama mode: auto (default), docker, or external
OLLAMA_API_KEYEnvironment variable, secretOptionalOptional API key for authenticated Ollama proxies. Remote endpoints require HTTPS; loopback HTTP is supported.
LMSTUDIO_URLEnvironment variableOptionalLM Studio OpenAI-compatible base URL (default: http://localhost:1234/v1)
LMSTUDIO_API_KEYEnvironment variable, secretOptionalOptional API key when LM Studio authentication is enabled
LMSTUDIO_ALLOW_MISSING_MODEL_LISTINGEnvironment variableOptionalAllow compatible embedding servers without a models endpoint to be probed directly
LITELLM_URLEnvironment variableOptionalLiteLLM OpenAI-compatible base URL (default: http://localhost:4000/v1)
LITELLM_API_KEYEnvironment variable, secretOptionalLiteLLM master or virtual API key (required when EMBEDDING_PROVIDER=litellm)
LITELLM_SEND_DIMENSIONSEnvironment variableOptionalForward the dimensions parameter through LiteLLM when explicitly enabled
QDRANT_MODEEnvironment variableOptionalQdrant mode: managed (default, Docker-managed) or external (user-provided instance)
QDRANT_URLEnvironment variableOptionalFull URL for remote/cloud Qdrant (e.g. https://xyz.cloud.qdrant.io:6333). Only needed when QDRANT_MODE=external
QDRANT_API_KEYEnvironment variable, secretOptionalAPI key for remote Qdrant instance. Only needed when QDRANT_MODE=external

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Index this codebase
  • What is the codebase index status?
  • Show me the dependency graph and any circular dependencies in this project

Good to know

  • Docker containers cannot use the GPU on macOS or Windows, which slows indexing of large repos.
  • Native Ollama or OpenAI embeddings are suggested for faster indexing on medium and large repos.
  • SocratiCode Cloud, with hosted indexing and SSO, is in private beta.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to socraticode

All alternatives →
Agent Skills Search Server agentskills
100

Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.

BAA Remote 28k
Exa exa-labs
100

Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.

AAA Remote 5.3k
Apify apify
100

Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.

AAA Remote 19k
changedetection.io (official) dgtlmoon
100

Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.

AAA Remote 36k
brave brave
95

Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.

AAA Remote 1.6k
Scrapling MCP ServerD4Vinci
94

Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.

AAA Local 107k

Compare with Agent Skills Search Server, Exa or Apify

socraticode: common questions

Does SocratiCode send my code to the cloud?

The source says the default setup is private and local, with no data leaving the machine and no API keys required. Cloud embeddings and Qdrant are optional configurations.

Does the index update automatically after I change files?

Yes. The source says the file watcher keeps the index automatically updated at every file change and across sessions. Users can also turn the watcher off for a fixed snapshot.

Is SocratiCode free to use?

The source says the open-source core is free forever and describes it as completely free. A separate hosted SocratiCode Cloud product is in private beta.

How do I install socraticode?

In Claude Code run claude mcp add socraticode -- npx -y socraticode. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is socraticode the official server?

socraticode is a community project by giancarloerra, not verified by a company domain.

Is socraticode free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is socraticode safe to use?

It scores 90 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to socraticode?

Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).

Does socraticode work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

socraticode Install

Add to stack

Loading.