langchain-ai/mcpdoc
Expose llms-txt to IDEs for development
What it solves
許多 AI 驅動的 IDE 和 agent (例如 Cursor, Windsurf, 和 Claude Code) 使用 llms.txt 檔案來獲取文檔上下文。然而,這些應用程式內建的檢索過程通常是不透明的,使得使用者很難稽核工具呼叫或驗證提供給 LLM 的確切上下文。
How it works
mcpdoc 是一個開源的 Model Context Protocol (MCP) 伺服器,讓使用者可以完全控制文檔是如何被檢索的。它允許使用者定義一個 llms.txt 檔案列表,並提供一個 fetch_docs 工具,讓 AI agent 可以使用它來讀取這些檔案中的 URL。
Who it’s for
使用 MCP 相容的 AI agent 或 IDE (例如 Cursor, Windsurf, 和 Claude Desktop/Code) 的開發者,他們想要為技術文檔獲取過程提供透明且可稽核的檢索過程。
Highlights
- MCP Integration: Seamlessly connects to popular AI tools like Cursor, Windsurf, and Claude.
- 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.