MCP Documentation Server
MCP 文档服务器
MCP 文档服务器的定制版本,可通过模型上下文协议实现 LLM 应用程序(如 Cursor、Claude Desktop、Windsurf)和文档源之间的集成。
概述
该服务器为 MCP 主机应用程序提供:
访问特定文档文件(langgraph.txt 和 mcp.txt)
从这些文件中的 URL 获取文档的工具
Related MCP server: Documentation Retrieval MCP Server (DOCRET)
支持文档
目前设置为:
LangGraph 文档(来自https://raw.githubusercontent.com/esakrissa/mcp-doc/main/docs/langgraph.txt )
MCP 文档(来自https://raw.githubusercontent.com/esakrissa/mcp-doc/main/docs/mcp.txt )
快速入门
设置和运行
# Clone the repository
git clone https://github.com/esakrissa/mcp-doc.git
cd mcp-doc
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package in development mode
pip install -e .运行服务器
您可以使用已安装的命令运行服务器:
# Run the server with the config file
mcpdoc \
--json config.json \
--transport sse \
--port 8082 \
--host localhost或者如果您更喜欢使用 UV:
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Run the server with UV
uvx --from mcpdoc mcpdoc \
--json config.json \
--transport sse \
--port 8082 \
--host localhostIDE 集成
光标
添加到~/.cursor/mcp.json
{
"mcpServers": {
"mcp-doc": {
"command": "uvx",
"args": [
"--from",
"mcpdoc",
"mcpdoc",
"--urls",
"LangGraph:https://raw.githubusercontent.com/esakrissa/mcp-doc/main/docs/langgraph.txt",
"ModelContextProtocol:https://raw.githubusercontent.com/esakrissa/mcp-doc/main/docs/mcp.txt",
"--allowed-domains",
"*",
"--transport",
"stdio"
]
}
}
}然后将这些指令添加到 Cursor 的自定义指令中:
for ANY question about LangGraph and Model Context Protocol (MCP), use the mcp-doc server to help answer --
+ call list_doc_sources tool to get the available documentation files
+ call fetch_docs tool to read the langgraph.txt or mcp.txt file
+ reflect on the urls in langgraph.txt or mcp.txt
+ reflect on the input question
+ call fetch_docs on any urls relevant to the question
+ use this to answer the question要测试集成是否有效,请向 Cursor 询问有关 LangGraph 或 MCP 的问题,并检查它是否使用文档服务器工具来获取信息。
安全说明
出于安全原因,实施了严格的域访问控制:
远程文档文件:仅自动允许特定域
本地文档文件:不自动允许任何域名
使用
--allowed-domains明确添加域或--allowed-domains '*'允许所有域(谨慎使用)
参考
该项目基于LangChain AI 的原始 mcpdoc ,进行了修改,为 LangGraph 和 MCP 提供集中的文档访问。
This server cannot be deployed
Maintenance
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server for langchain documentation, generated by doc2mcp.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The CustomGPT.ai MCP server is a fully managed, RAG-powered endpoint that connects large language models with private knowledge bases and external data sources. It provides tools for retrieval-augmented generation queries (send_message), data ingestion (upload_file), and source listing, enabling AI agents to query private documents like PDFs with high accuracy and real-time citations.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that fetches real-time documentation for popular libraries like Langchain, Llama-Index, MCP, and OpenAI, allowing LLMs to access updated library information beyond their knowledge cut-off dates.13-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.1MIT
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol (MCP) server that implements AI-First Development framework principles, allowing LLMs to interact with context-first documentation tools and workflows for preserving knowledge and intent alongside code.336AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceA lightweight, zero-config MCP server that makes documentation and API specifications instantly accessible to AI models using the llms.txt standard. It enables searching and retrieving full documentation, OpenAPI, and AsyncAPI specs without requiring a complex RAG infrastructure or vector database.10 npm1Apache 2.0