Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Local RAG MCP for markdown documentation. Retrieval only; host synthesizes answers.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"docs-ask": {
"command": "uvx",
"args": [
"mcp-docs-ask"
]
}
}
}ターミナルでこれを実行します
claude mcp add docs-ask -- uvx mcp-docs-askプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"docs-ask": {
"command": "uvx",
"args": [
"mcp-docs-ask"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"docs-ask": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-docs-ask"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント alyiox で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.4.0)がレジストリに届いたのは24 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには: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、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Local RAG MCP for documentation. Point source at any markdown repository (local path or git URL).
The server does retrieval only (no answer LLM). ask_docs returns grounded passages and citations; the MCP host (Cursor / Claude) synthesizes the answer.
reindex[n] citations, capped by a character budgetuvgit on PATH (only if source is a git URL)source is a private git URL (gh auth login, HTTPS credential helper, or SSH). No tokens in config.git clone git@github.com:alyiox/mcp-docs-ask.git
cd mcp-docs-ask uv sync mkdir -p ~/.config/mcp-docs-ask cp config.example.json ~/.config/mcp-docs-ask/config.json
npx -y @modelcontextprotocol/inspector@latest uv run mcp-docs-ask
Config path: ~/.config/mcp-docs-ask/config.json
Windows:
%USERPROFILE%\.config\mcp-docs-ask\config.json
{
"docs": { "product": { "source": "https://github.com/example/docs.git", "desc": "Product guides and API reference", "ref": "main", "include": ["**/*.md"], "exclude": ["archive/"], "layers": { "guides": { "desc": "How-to and onboarding guides", "include": ["docs/guides/"] }, "api": { "desc": "HTTP API reference", "include": ["docs/api/"] } }, "embedding_model": "sentence-transformers/all-MiniLM-L6-v2" }, "team-notes": { "source": "/path/to/docs", "desc": "Internal team notes (local path; ref unused)", "include": ["/*.md"], "exclude": ["archive/**"] } }, "default": { "docs": "product", "embedding_model": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", "top_k": 8, "chunk_max_chars": 1500, "max_context_chars": 8000 } }
product is a git URL (ref applies). team-notes is a filesystem path (ref unused). Optional desc on each docs collection and layer helps agents pick the right target.
embedding_model, top_k, chunk_max_chars, and max_context_chars resolve as: docs. .X → default.X → built-in. Omit per-docs keys to inherit.
Embedding model recommendation
Any Hugging Face id loadable by sentence-transformers works. Pick by language mix:
| Docs / queries | Recommended embedding_model |
|---|---|
| English-only (built-in when omitted) | sentence-transformers/all-MiniLM-L6-v2 |
| Chinese-only | BAAI/bge-small-zh-v1.5 |
| Multilingual (~50 langs) | sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 |
Changing embedding_model rebuilds the index on the next call; no reindex needed.
| Field | Description |
|---|---|
docs. .source | Docs repo root: local path or git URL |
docs. .desc | Short description for discovery (list_docs) |
docs. .ref | Branch / tag / SHA for git URL sources only (default main; ignored for local paths) |
docs. .include | Globs relative to repo root (default **/*.md) |
docs. .exclude | Globs to skip |
docs. .layers. .include | Path globs for that layer (first match wins) |
docs. .layers. .desc | Short layer description for discovery |
docs. .embedding_model | Optional override (see recommendation above) |
docs. .top_k | Optional override for default retrieval count |
docs. .chunk_max_chars | Optional override for max body chars per heading chunk |
docs. .max_context_chars | Optional override for the answer_context passage budget |
default.docs | Default docs collection id |
default.embedding_model | Default sentence-transformers model id |
default.top_k | Default retrieval count |
default.chunk_max_chars | Default max body chars per heading chunk |
default.max_context_chars | Default total passage chars in answer_context (min 500) |
Layers partition indexed files by path glob. First match wins. Names are case-insensitive; all is reserved (cannot be configured as a layer name).
ask_docs layer | Meaning |
|---|---|
all (default) | Every indexed chunk (named layers and paths outside them) |
| Only chunks whose path matched that named layer’s include globs |
Paths that match no named-layer glob are still indexed and only appear under layer=all. Omit layers (or set "layers": {}) for flat repos — use layer=all.
Cache layout:
~/.cache/mcp-docs-ask/repos/ /~/.cache/mcp-docs-ask/indexes/ /| Tool | Description |
|---|---|
list_docs | List configured docs collections, layer filters, and index state |
ask_docs | Retrieve grounded passages + citations (layer: all or a named layer) |
reindex | Sync git source (if URL) and rebuild the vector index |
list_docs returns a default block with the same keys as the config default block (docs, embedding_model, top_k, chunk_max_chars, max_context_chars), plus a docs list where each entry carries its resolved values, a default flag, and an index block (null when the collection has never been indexed). Valid layer values are all plus the named layer ids — see Layers above.
list_docs and reindex return the same index keys: origin, root, rev, files, chunks, layers.
origin mirrors the configured source: file for a filesystem path, git for a URL the server clones into ~/.cache/mcp-docs-ask/repos/ / and fetches on reindex. root is where the files actually are — null only when a built index outlived its source directory. rev is the checkout HEAD when there is one, so a file source that is itself a git clone still reports one; its working tree may hold uncommitted edits, so rev labels the checkout, not the exact indexed content.
ask_docs carries only the two answer-scoped keys, root and rev: the checkout that produced the passages, and the revision they came from.
ask_docs retrieves up to top_k chunks, then assembles them into passages:
Guide > Configuration > Layers).… marks parts in between that did not rank.max_context_chars best-first. The one that overflows is trimmed at a line break and ends with …; the first passage is always kept.So citations can hold fewer entries than top_k.
citations[].path is repo-relative and stable; answer_context holds the passage text once, keyed by the [n] markers that match citations[].n. To read a whole source file, join index.root from the same ask_docs response with a citation path:
/home/you/docs-repo + product/features/budget.md
Take root from the response that produced the citations rather than an earlier reindex — ask_docs rebuilds a stale index itself, so its rev is the one that matches the passages in hand.
The examples below launch the server with uvx, which installs the package on first use. Run it once in a terminal beforehand so your host does not block on that install:
$ uvx mcp-docs-ask
Installed 84 packages in 275ms
The server then starts on stdio and waits for input — press Ctrl-C once you see the install line. Embedding model weights are fetched separately, on the first ask_docs or reindex call. uvx mcp-docs-ask --version prints the build uvx resolved.
Linux (including WSL, containers, and CI): the PyPI
torchwheel for Linux is
the CUDA build. It pulls ~15
nvidia-*packages whether or not the machine has an
NVIDIA GPU — about 2.7 GB of wheels and ~4 GB on disk. Windows and macOS resolve to
a CPU-only wheel (~1 GB) and never download CUDA. Pre-warming matters most here:
expect the first
uvxrun to take minutes, not milliseconds.
Add to .cursor/mcp.json:
{
"mcpServers": { "docs-ask": { "command": "uvx", "args": ["mcp-docs-ask"] } } }
Add to your Claude Code MCP config:
{
"mcpServers": { "docs-ask": { "command": "uvx", "args": ["mcp-docs-ask"] } } }
[mcp_servers.docs-ask]
command = "uvx" args = ["mcp-docs-ask"]
{
"$schema": "https://opencode.ai/config.json", "mcp": { "docs-ask": { "type": "local", "enabled": true, "command": ["uvx", "mcp-docs-ask"] } } }
{
"inputs": [], "servers": { "docs-ask": { "type": "stdio", "command": "uvx", "args": ["mcp-docs-ask"] } } }
uv sync
uv run ruff check src/ tests/ uv run ruff format --check src/ tests/ uv run pyright uv run pytest
ask_docs rebuilds the index automatically when file mtimes/sizes change (fingerprint check). You do not need reindex after editing local docs.ask_docs never fetches. Call reindex to git fetch the configured ref and rebuild.embedding_model, chunk_max_chars, layer globs, and the on-disk index format, so changing any of them rebuilds on the next call.