langchain-ai/mcpdoc
Expose llms-txt to IDEs for development
What it solves
Cursor, Windsurf, Claude Code などの多くの AI 駆動型 IDE やエージェントは、ドキュメントのコンテキストを取得するために llms.txt ファイルを使用しています。しかし、これらのアプリに組み込まれている取得プロセスは不透明であることが多く、ユーザーがツール呼び出しを監査したり、 কীভাবে (how) LLM に提供されている正確なコンテキストを検証したりすることが困難です。
How it works
mcpdoc は、オープンソースの Model Context Protocol (MCP) サーバーであり、ユーザーにドキュメント取得方法の完全な制御権を与えます。ユーザーは llms.txt ファイルのリストを定義し、AI エージェントがそれらのファイル内の URL を読み取るために使用できる fetch_docs ツールを提供します。
Who it’s for
Cursor, Windsurf, Claude Desktop/Code などの MCP 互換 AI エージェントや IDE を使用しており、技術ドキュメントの取得プロセスを透明かつ監査可能にしたい開発者。
Highlights
- MCP Integration: Seamlessly connects to popular AI tools like Cursor, Windsurf, and Claude.
- GB/Z: Flexible Configuration: Documentation sources can be provided via YAML, JSON, or direct CLI arguments.
- Security-First: Includes domain access controls to prevent unauthorized fetching from untrusted sources.
- Auditable Retrieval: Allows users to see exactly which documentation pages are being fetched and read by the AI agent.