Skip to main content
Glama
docs-mcp-server

docs-mcp-server

Grounded Docs: AIのための最新ドキュメントエキスパート

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

Docs MCP Server Web Interface

✨ なぜ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-hashes

2. インデックスの照会:

npx @arabold/docs-mcp-server@latest search react "useEffect cleanup" --output yaml

3. 単一ページを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@latest

2. 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@latest

Ollama、Gemini、Azureなどの設定については、**埋め込みモデル**を参照してください。


📚 ドキュメント

はじめに

ハッシュルーティングを使用するSPA

  • #/guideのようなURLでルーティングするドキュメントサイトに対してのみ、--preserve-hashes、MCPのpreserveHashes、またはWeb UIの「Preserve Hash Routes」チェックボックスを使用してください。

  • scrapeMode=fetchで有効にした場合、通常のfetchではクライアントサイドのハッシュルートを評価できないため、スクレイパーは自動的にPlaywrightにジョブをアップグレードします。

  • 更新時にはデフォルトで保存されたpreserveHashes設定が再利用されます。CLI/Webの更新エントリーポイントで明示的に上書きすることも可能です。

主要な概念とアーキテクチャ


🤝 コントリビューション

コントリビューションを歓迎します!開発ガイドラインとセットアップ手順については、**CONTRIBUTING.md**を参照してください。

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。詳細はLICENSEを参照してください。

Available Tools

12 tools
cancel_jobA
Destructive

Cancel a queued or running indexing job. Use the 'list_jobs' tool to find the job ID.

Inputs: jobId (required).

fetch_urlA
Read-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_versionB
Read-only

Find the best matching version for a library. Use to identify available or closest versions.

Inputs: library (required), targetVersion.

get_job_infoA
Read-only

Get details for a specific indexing job. Use the 'list_jobs' tool to find the job ID.

Inputs: jobId (required).

list_jobsB
Read-only

List all indexing jobs. Optionally filter by status.

Inputs: status.

list_librariesA
Read-only

List all indexed libraries and their versions. Use this to find the correct library name.

Inputs: no named parameters.

list_pagesB
Read-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_pageA
Read-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_docsA
Destructive

Remove indexed documentation for a library version. Use only if explicitly instructed.

Inputs: library (required), version.

scrape_docsA
Destructive

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_docsA
Read-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

    A4/5.0

    Scored across 12 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      A Model Context Protocol server that enables intelligent searching across documentation for 30+ programming libraries and frameworks, fetching relevant information from official sources.
      23
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Self-hosted MCP server that indexes documentation from various sources and makes it searchable by AI assistants via the Model Context Protocol and REST API.
      94
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for documentation search that automatically indexes web documentation sites and provides semantic, full-text, or hybrid search capabilities.
      8 npm
      MIT