MCP LLMS-TXT Documentation Server - MCP服务,MCP服务器,MCP教程

基本能力

产品定位

MCP LLMS-TXT Documentation Server 是一个开源MCP服务器,旨在为开发者提供对LLMs(大型语言模型)相关文档的完全控制。

核心功能

  1. 用户定义的llms.txt文件列表:允许用户指定和管理多个llms.txt文件。
  2. fetch_docs工具:读取llms.txt文件中的URL内容。
  3. 多平台支持:支持Cursor、Windsurf、Claude Code/Desktop等IDE和应用程序。
  4. 审计功能:用户可以审计每个工具调用和返回的上下文。
  5. 多种配置方式:支持YAML、JSON配置文件和直接指定URL。

适用场景

  1. 开发者在IDE中查询LLMs相关文档:如Cursor、Windsurf等。
  2. 自动化文档检索:通过Claude Code/Desktop等应用程序自动获取文档内容。
  3. 文档审计:开发者需要审计工具调用和返回的上下文。

工具列表

  1. fetch_docs工具:读取llms.txt文件中的URL内容。
  2. list_doc_sources工具:获取可用的llms.txt文件列表。

常见问题解答

  1. 如何安装uv:请参考官方文档
  2. 如何测试MCP服务器?:使用uvx命令启动服务器,并通过MCP inspector连接。
  3. 如何配置Cursor?:在Cursor Settings的MCP标签中更新~/.cursor/mcp.json文件。

使用教程

使用依赖

安装uv
bash
curl -LsSf https://astral.sh/uv/install.sh | sh

安装教程

  1. 选择一个llms.txt文件,例如LangGraph的llms.txt
  2. 测试MCP服务器:
    bash
    uvx --from mcpdoc mcpdoc \
    --urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt \
    --transport sse \
    --port 8082 \
    --host localhost
  3. 运行MCP inspector:
    bash
    npx @modelcontextprotocol/inspector

调试方式

  1. 在Cursor中配置MCP服务器:
    json
    {
    "mcpServers": {
    "langgraph-docs-mcp": {
    "command": "uvx",
    "args": [
    "--from",
    "mcpdoc",
    "mcpdoc",
    "--urls",
    "LangGraph:https://langchain-ai.github.io/langgraph/llms.txt",
    "--transport",
    "stdio",
    "--port",
    "8081",
    "--host",
    "localhost"
    ]
    }
    }
    }
  2. 在Cursor中测试工具调用:
    ```
    use the langgraph-docs-mcp server to answer any LangGraph questions --
  3. call list_doc_sources tool to get the available llms.txt file
  4. call fetch_docs tool to read it
  5. reflect on the urls in llms.txt
  6. reflect on the input question
  7. call fetch_docs on any urls relevant to the question
  8. use this to answer the question

what are types of memory in LangGraph?
```

点击访问

搜索工具

DependencyMCP Server - MCP服务,MCP服务器,MCP教程

2025-4-29 16:22:43

搜索工具

MCP Chain of Draft (CoD) Prompt Tool - MCP服务,MCP服务器,MCP教程

2025-4-29 16:22:50

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索