Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っている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)がレジストリに届いたのは昨日です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況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
冒頭だけを表示しています。続きはリポジトリで読めます