Token导航 LogoToken导航TokenDH.com
MCP Doc logo
搜索检索stdio官方级别未说明来源级核验

MCP Doc

MCP Server

Model Context Protocol documentation server for LangGraph and MCP.

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
开发工具PythonClaudeClaude DesktopClaudeCursorWindsurf

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

esakrissa

提供方

esakrissa

最后核验

2026/5/18 02:51

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python -m venv venv

详细介绍

MCP文档服务器

MCP文档服务器的定制版本,通过模型上下文协议实现LLM应用程序(如Cursor、Claude Desktop、Windsurf)和文档源之间的集成。

概述

此服务器为MCP主机应用程序提供:

  1. 访问特定文档文件(langgraph.txt和mcp.txt)
  2. 从这些文件中的URL获取文档的工具

支持的文档

目前设置为:

  • 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 localhost

IDE集成

光标

增添 ~/.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提供了集中的文档访问权限。

目录标签

目录标签

开发工具PythonClauderesearch-and-datamcp-docdocumentationMCP文档集成本地部署LLM应用模型上下文协议

支持客户端

Claude DesktopClaudeCursorWindsurf

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP