docs-mcp-server
Grounded Docs: AIのための最新ドキュメントエキスパート
Docs MCP Serverは、AIコーディングアシスタント向けに、常に最新のドキュメントインデックスを提供することで、AIのハルシネーションや知識の陳腐化という問題を解決します。Webサイト、GitHub、npm、PyPI、ローカルファイルから公式ドキュメントを取得し、AIが現在使用している正確なバージョンを照会できるようにします。

✨ なぜGrounded Docs MCP Serverなのか?
Context7、Nia、Ref.Toolsのオープンソース代替ツールです。
✅ 最新のコンテキスト: 公式ソースから直接、オンデマンドでドキュメントを取得します。
🎯 バージョン指定: プロジェクトで使用している正確なライブラリバージョンをターゲットに照会します。
💡 ハルシネーションの低減: LLMの根拠を実際のドキュメントに基づかせます。
🔒 プライベートかつローカル: すべてマシン上で実行されるため、コードがネットワークの外に出ることはありません。
🧩 幅広い互換性: MCP互換クライアント(Claude、Clineなど)であれば何でも動作します。
📁 多様なソース: Webサイト、GitHubリポジトリ、ローカルフォルダ、ZIPアーカイブをインデックス化します。
📄 豊富なファイルサポート: HTML、Markdown、PDF、Officeドキュメント(Word、Excel、PowerPoint)、OpenDocument、RTF、EPUB、Jupyter Notebook、および90以上のソースコード言語を処理します。
Related MCP server: Documentation Search MCP Server
📄 サポートされているフォーマット
カテゴリ | フォーマット |
ドキュメント | PDF, Word (.docx/.doc), Excel (.xlsx/.xls), PowerPoint (.pptx/.ppt), OpenDocument (.odt/.ods/.odp), RTF, EPUB, FictionBook, Jupyter Notebooks |
アーカイブ | ZIP, TAR, gzipped TAR (コンテンツは個別に抽出・処理されます) |
Web | HTML, XHTML |
マークアップ | Markdown, MDX, reStructuredText, AsciiDoc, Org Mode, Textile, R Markdown |
ソースコード | TypeScript, JavaScript, Python, Go, Rust, C/C++, Java, Kotlin, Ruby, PHP, Swift, C#, およびその他多数 |
データ | JSON, YAML, TOML, CSV, XML, SQL, GraphQL, Protocol Buffers |
設定 | Dockerfile, Makefile, Terraform/HCL, INI, dotenv, Bazel |
MIMEタイプや処理の詳細を含む完全なリファレンスについては、**サポートされているフォーマット**を参照してください。
🚀 クイックスタート
CLIファースト
エージェントやスクリプトの場合、Grounded Docsを使用する最も簡単な方法は通常CLIです。
1. ドキュメントのインデックス化 (Node.js 22+が必要):
npx @arabold/docs-mcp-server@latest scrape react https://react.dev/reference/reactハッシュルーティングを使用するSPAドキュメントサイトの場合は、ハッシュの保持を明示的に有効にします:
npx @arabold/docs-mcp-server@latest scrape my-spa https://docs.example.com/#/guide --preserve-hashes2. インデックスの照会:
npx @arabold/docs-mcp-server@latest search react "useEffect cleanup" --output yaml3. 単一ページをMarkdownとして取得:
npx @arabold/docs-mcp-server@latest fetch-url https://react.dev/reference/react/useEffect出力動作
構造化コマンドは、非対話型実行時にはデフォルトでstdoutにクリーンなJSONを出力します。
--output json|yaml|toonを使用して、構造化フォーマットを選択できます。fetch-urlのようなプレーンテキストコマンドは、テキストペイロードをそのままstdoutに保持します。診断情報は共有ロガーを経由し、非対話型実行時にはstdoutには出力されません。
エラー以外の診断を抑制するには
--quietを、デバッグ出力を有効にするには--verboseを使用してください。
エージェントスキル
skills/ディレクトリには、AIコーディングアシスタントにCLIの使い方(ドキュメント検索、インデックス管理、URL取得など)を教えるAgent Skillsが含まれています。
MCPサーバー
Claude、Cline、Copilot、Gemini CLI、その他のMCPクライアント向けに常駐型のMCPエンドポイントが必要な場合:
1. サーバーの起動:
npx @arabold/docs-mcp-server@latest2. http://localhost:6280でWeb UIを開き、ドキュメントを追加します。
3. MCP設定(例: claude_desktop_config.json)に以下を追加して、AIクライアントを接続します:
{
"mcpServers": {
"docs-mcp-server": {
"type": "sse",
"url": "http://localhost:6280/sse"
}
}
}VS Code (Cline, Roo) やその他のセットアップオプションについては、**クライアントの接続**を参照してください。
scrape_docsは、ハッシュベースのクライアントサイドルーティングを使用するドキュメントサイト向けにpreserveHashes: trueも受け付けます。
これはハッシュルーティングを使用するSPAに対してのみ使用してください。通常のサイトでは、通常、ページ内アンカーのためにハッシュフラグメントが使用されます。
docker run --rm \
-v docs-mcp-data:/data \
-v docs-mcp-config:/config \
-p 6280:6280 \
ghcr.io/arabold/docs-mcp-server:latest \
--protocol http --host 0.0.0.0 --port 6280🧠 埋め込みモデルの設定(推奨)
埋め込みモデルの使用はオプションですが、セマンティックベクトル検索を可能にすることで検索品質が劇的に向上します。
例: OpenAI Embeddingsを有効にする
OPENAI_API_KEY="sk-proj-..." npx @arabold/docs-mcp-server@latestOllama、Gemini、Azureなどの設定については、**埋め込みモデル**を参照してください。
📚 ドキュメント
はじめに
インストール: Docker、Node.js (npx)、埋め込みモードの詳細なセットアップガイド。
クライアントの接続: Claude、VS Code (Cline/Roo)、その他のMCPクライアントを接続する方法。
基本的な使い方: Web UI、CLIの使用方法、ローカルファイルのスクレイピング。
設定: 設定ファイルと環境変数の完全なリファレンス。
サポートされているフォーマット: ファイルフォーマットとMIMEタイプの完全なリファレンス。
埋め込みモデル: OpenAI、Ollama、Gemini、その他のプロバイダーの設定。
ハッシュルーティングを使用するSPA
#/guideのようなURLでルーティングするドキュメントサイトに対してのみ、--preserve-hashes、MCPのpreserveHashes、またはWeb UIの「Preserve Hash Routes」チェックボックスを使用してください。scrapeMode=fetchで有効にした場合、通常のfetchではクライアントサイドのハッシュルートを評価できないため、スクレイパーは自動的にPlaywrightにジョブをアップグレードします。更新時にはデフォルトで保存された
preserveHashes設定が再利用されます。CLI/Webの更新エントリーポイントで明示的に上書きすることも可能です。
主要な概念とアーキテクチャ
デプロイモード: スタンドアロン vs 分散型 (Docker Compose)。
認証: OAuth2/OIDCによるサーバーの保護。
テレメトリ: プライバシーを優先した利用データ収集。
アーキテクチャ: システム設計の詳細解説。
🤝 コントリビューション
コントリビューションを歓迎します!開発ガイドラインとセットアップ手順については、**CONTRIBUTING.md**を参照してください。
ライセンス
このプロジェクトはMITライセンスの下でライセンスされています。詳細はLICENSEを参照してください。
Available Tools
12 toolscancel_jobADestructive
Cancel a queued or running indexing job. Use the 'list_jobs' tool to find the job ID.
Inputs: jobId (required).
fetch_urlARead-only
Fetch a single URL and convert its content to Markdown. Use this tool to read the content of any web page.
Inputs: url (required), followRedirects.
find_versionBRead-only
Find the best matching version for a library. Use to identify available or closest versions.
Inputs: library (required), targetVersion.
get_job_infoARead-only
Get details for a specific indexing job. Use the 'list_jobs' tool to find the job ID.
Inputs: jobId (required).
list_jobsBRead-only
List all indexing jobs. Optionally filter by status.
Inputs: status.
list_librariesARead-only
List all indexed libraries and their versions. Use this to find the correct library name.
Inputs: no named parameters.
list_pagesBRead-only
List the indexed pages of a library version, with an optional URL filter and pagination.
Inputs: library (required), limit, offset, version, +1 more.
read_pageARead-only
Read the full content of an indexed documentation page, for example a URL returned by search_docs or list_pages. Long pages are returned in parts; the response says how to continue.
Inputs: library (required), pathOrUrl (required), version, maxChars, +1 more.
refresh_versionA
Re-scrape a previously indexed library version, updating only changed pages.
Inputs: library (required), version.
remove_docsADestructive
Remove indexed documentation for a library version. Use only if explicitly instructed.
Inputs: library (required), version.
scrape_docsADestructive
Scrape and index documentation from a URL for a library. Use this tool to index a new library or a new version. Scraping a library version that already exists is rejected unless replace is true; use refresh_version to update an existing version in place.
Inputs: url (required), library (required), scope, replace, +7 more.
search_docsARead-only
Search up-to-date documentation for a library or package. Examples:
{library: "react", query: "hooks lifecycle"} -> matches latest version of React
{library: "react", version: "18.0.0", query: "hooks lifecycle"} -> matches React 18.0.0 or earlier
{library: "typescript", version: "5.x", query: "ReturnType example"} -> any TypeScript 5.x.x version
{library: "typescript", version: "5.2.x", query: "ReturnType example"} -> any TypeScript 5.2.x version
Inputs: query (required), library (required), limit, version.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a clearly distinct action or resource: indexing (scrape_docs, refresh_version), retrieval (search_docs, read_page, list_pages), library/version discovery (list_libraries, find_version), job management (list_jobs, get_job_info, cancel_job), removal (remove_docs), and generic URL fetching (fetch_url). Potential overlaps like scrape_docs vs refresh_version and read_page vs fetch_url are explicitly clarified by the descriptions.
All tool names use snake_case and follow a predictable verb_noun pattern: list_pages, scrape_docs, refresh_version, search_docs, read_page, list_libraries, find_version, list_jobs, get_job_info, cancel_job, remove_docs, fetch_url. There are no mixed conventions or vague standalone verbs.
The 12 tools are well-scoped for a documentation indexing and search server. Each tool earns its place across indexing, search/read, library/version discovery, job management, and removal, with no obvious redundancy or missing operational area.
The tool surface covers the full lifecycle: creating indexes (scrape_docs), updating them (refresh_version), reading/searching content (search_docs, read_page, list_pages), discovering libraries/versions (list_libraries, find_version), managing indexing jobs (list_jobs, get_job_info, cancel_job), deleting docs (remove_docs), and fetching arbitrary URLs (fetch_url). No significant gaps or dead ends are apparent for the stated domain.
Maintenance
Related MCP Connectors
MCP server for querying Forkast documentation
Versioned documentation registry and semantic search for AI tools and coding assistants.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.-
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables intelligent searching across documentation for 30+ programming libraries and frameworks, fetching relevant information from official sources.238MIT
- AlicenseNot gradedqualityBmaintenanceSelf-hosted MCP server that indexes documentation from various sources and makes it searchable by AI assistants via the Model Context Protocol and REST API.94Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for documentation search that automatically indexes web documentation sites and provides semantic, full-text, or hybrid search capabilities.8 npmMIT