Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
EMBEDDING_PROVIDER, OPENAI_API_KEY, GOOGLE_API_KEY, OLLAMA_URL, EMBEDDING_MODEL, EMBEDDING_DIMENSIONS, OLLAMA_MODE, OLLAMA_API_KEY, LMSTUDIO_URL, LMSTUDIO_API_KEY, LMSTUDIO_ALLOW_MISSING_MODEL_LISTING, LITELLM_URL, LITELLM_API_KEY, LITELLM_SEND_DIMENSIONS, QDRANT_MODE, QDRANT_URL, QDRANT_API_KEY标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"EMBEDDING_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"GOOGLE_API_KEY": "your-value",
"OLLAMA_URL": "your-value",
"EMBEDDING_MODEL": "your-value",
"EMBEDDING_DIMENSIONS": "your-value",
"OLLAMA_MODE": "your-value",
"OLLAMA_API_KEY": "your-value",
"LMSTUDIO_URL": "your-value",
"LMSTUDIO_API_KEY": "your-value",
"LMSTUDIO_ALLOW_MISSING_MODEL_LISTING": "your-value",
"LITELLM_URL": "your-value",
"LITELLM_API_KEY": "your-value",
"LITELLM_SEND_DIMENSIONS": "your-value",
"QDRANT_MODE": "your-value",
"QDRANT_URL": "your-value",
"QDRANT_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add socraticode --env EMBEDDING_PROVIDER=your-value --env OPENAI_API_KEY=your-value --env GOOGLE_API_KEY=your-value --env OLLAMA_URL=your-value --env EMBEDDING_MODEL=your-value --env EMBEDDING_DIMENSIONS=your-value --env OLLAMA_MODE=your-value --env OLLAMA_API_KEY=your-value --env LMSTUDIO_URL=your-value --env LMSTUDIO_API_KEY=your-value --env LMSTUDIO_ALLOW_MISSING_MODEL_LISTING=your-value --env LITELLM_URL=your-value --env LITELLM_API_KEY=your-value --env LITELLM_SEND_DIMENSIONS=your-value --env QDRANT_MODE=your-value --env QDRANT_URL=your-value --env QDRANT_API_KEY=your-value -- npx -y socraticode运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"EMBEDDING_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"GOOGLE_API_KEY": "your-value",
"OLLAMA_URL": "your-value",
"EMBEDDING_MODEL": "your-value",
"EMBEDDING_DIMENSIONS": "your-value",
"OLLAMA_MODE": "your-value",
"OLLAMA_API_KEY": "your-value",
"LMSTUDIO_URL": "your-value",
"LMSTUDIO_API_KEY": "your-value",
"LMSTUDIO_ALLOW_MISSING_MODEL_LISTING": "your-value",
"LITELLM_URL": "your-value",
"LITELLM_API_KEY": "your-value",
"LITELLM_SEND_DIMENSIONS": "your-value",
"QDRANT_MODE": "your-value",
"QDRANT_URL": "your-value",
"QDRANT_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"socraticode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"socraticode"
],
"env": {
"EMBEDDING_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"GOOGLE_API_KEY": "your-value",
"OLLAMA_URL": "your-value",
"EMBEDDING_MODEL": "your-value",
"EMBEDDING_DIMENSIONS": "your-value",
"OLLAMA_MODE": "your-value",
"OLLAMA_API_KEY": "your-value",
"LMSTUDIO_URL": "your-value",
"LMSTUDIO_API_KEY": "your-value",
"LMSTUDIO_ALLOW_MISSING_MODEL_LISTING": "your-value",
"LITELLM_URL": "your-value",
"LITELLM_API_KEY": "your-value",
"LITELLM_SEND_DIMENSIONS": "your-value",
"QDRANT_MODE": "your-value",
"QDRANT_URL": "your-value",
"QDRANT_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
EMBEDDING_PROVIDER envOLLAMA_URL envEMBEDDING_MODEL envEMBEDDING_DIMENSIONS envOLLAMA_MODE envLMSTUDIO_URL envLMSTUDIO_ALLOW_MISSING_MODEL_LISTING envLITELLM_URL envLITELLM_SEND_DIMENSIONS envQDRANT_MODE envQDRANT_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 giancarloerra 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:OPENAI_API_KEY, GOOGLE_API_KEY, OLLAMA_API_KEY, LMSTUDIO_API_KEY, LITELLM_API_KEY, QDRANT_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.16.2)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
= 18.17">
*"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 →
Requirements: Node.js 18.17 or newer with
npxonPATH, 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:
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.
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.
| Integration | Update plugin, skills, and integration files |
|---|---|
| Claude Code plugin | Enable marketplace auto-update, or run claude plugin marketplace update socraticode followed by claude plugin update --scope user socraticode@socraticode |
| OpenAI Codex plugin | Run codex plugin marketplace upgrade socraticode, then codex plugin add socraticode@socraticode and start a new task |
| VS Code Agent Plugin | Leave extensions.autoUpdate enabled for daily checks, or run Extensions: Check for Extension Updates, then start a new Chat |
| VS Code editor extension | Update it through the Extensions view or Extensions: Check for Extension Updates, then reload the window |
| Cursor local plugin | Update to the latest GitHub release tag using the commands in the Cursor section, then reload Cursor |
| Gemini CLI direct MCP | Restart Gemini to reconnect the server and resolve the current npm release |
| Direct MCP only | No separate plugin files are installed; restart or reconnect the MCP server to resolve the current npm release |
@latest refers to npm's published latest distribution tag; it does not refer to a Git branch. --prefer-online forces npm to check for updated package metadata even when its cache is still fresh. If the same registry is temporarily unavailable, npm can still use an already populated cache; a first installation still requires registry access. See the [npm exec cache documentation](https://docs.npmjs.com
只显示了开头部分;其余内容请在仓库中阅读