DocsFetcher MCP Server

by cdugo
MIT License
5
10
  • Apple
  • Linux

Integrations

  • Crawls and extracts documentation for .NET packages, providing structured information about .NET libraries.

  • Can retrieve specific documentation for the Express.js framework, as explicitly mentioned in the example queries.

  • Fetches comprehensive documentation for JavaScript packages, including READMEs, API docs, and code examples to provide structured data for LLM summarization.

📚 DocsFetcher MCP 服务器

MCP 服务器可以从多种语言生态系统中为 Claude 等 LLM 获取包文档,而无需 API 密钥。

✨ 特点

  • 🌐 支持多种编程语言(JavaScript、Python、Java、.NET、Ruby、PHP、Rust、Go、Swift)
  • 📦 通过名称或 URL 获取包的文档
  • 🔍 爬取文档网站以提取全面的信息
  • 📄 提取 README、API 文档、代码示例和存储库信息
  • 🧠 为 LLM 摘要提供结构化数据
  • 💬 包含用于文档分析的专门提示
  • 🔑无需 API 密钥- 可与 Claude Desktop 和 Cursor IDE 原生兼容

🚀 安装

克劳德桌面

  1. 打开 Claude Desktop → 设置 → 开发者
  2. 点击“编辑配置”并添加:
{ "mcpServers": { "docsFetcher": { "command": "npx", "args": [ "-y", "@smithery/cli@latest", "run", "@cdugo/mcp-get-docs", "--config", "'{}'" ] } } }

游标 IDE 配置

  1. 打开 Cursor IDE → 设置 → MCP -> 添加新的 MCP 服务器
  2. 添加:
Name: docsFetcher Command: npx -y @smithery/cli@latest run @cdugo/mcp-get-docs --config "{}"
先决条件
  • 📋 Node.js 18 或更高版本

🏃‍♂️ 本地运行

git clone https://github.com/cdugo/package-documentation-mcp cd package-documentation-mcp npm install npm run build

安装完成后,您可以使用以下命令在本地运行服务器:

# From the project root directory npm start

对于文件更改时自动重启的开发:

npm run dev

服务器将在默认端口(通常为 3000)上启动。您应该看到如下输出:

🚀 DocsFetcher MCP Server running! 📋 Ready to fetch documentation

指定自定义端口:

PORT=8080 npm start

🛠️ 可用工具

  1. fetch-url-docs :🔗 从特定 URL 获取文档
  2. fetch-package-docs :📦 获取具有可选语言规范的包的文档
  3. fetch-library-docs :🧠 可与包名称或 URL 配合使用的智能工具
  4. fetch-multilingual-docs :🌍 获取跨多种语言生态系统的软件包文档

📝 可用提示

  1. 总结库文档:📚 创建全面的库摘要
  2. explain-dependency-error :🐛 生成依赖错误解释

💡 示例查询

图书馆基本信息

  • “什么是 Express.js 以及如何使用它?”
  • “告诉我有关 React 库的信息”
  • “如何在 Python 中使用请求?”

多语言支持

  • “向我展示 JavaScript 中 lodash 的文档”
  • “比较 Python 中的 pandas 和 R 中的 data.table”

使用工具

  • “@fetch-package-docs 的 packageName='express' 和 language='javascript'”
  • “@fetch-package-docs 的 packageName='requests' 和 language='python'”
  • “@fetch-multilingual-docs 的 packageName='http' 和 languages=['javascript', 'python', 'rust']”

使用提示

  • “@summarize-library-docs with libraryName='express'”
  • “@explain-dependency-error 软件包名称为‘dotenv’”

❓ 故障排除

本地安装

  • 服务器未显示:✅ 验证配置中的绝对路径
  • 连接错误:🔄 重新启动 Claude Desktop 或 Cursor IDE
  • 获取失败:⚠️ 某些软件包可能有非标准文档
  • 语言支持:🌐 如果某种语言无法使用,请尝试使用软件包的直接 URL

📄 许可证

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

从多种编程语言生态系统(JavaScript、Python、Java 等)中获取并提取全面的包文档,供 Claude 等 LLM 使用,无需 API 密钥。

  1. ✨ 特点
    1. 🚀 安装
      1. 克劳德桌面
      2. 游标 IDE 配置
    2. 🏃‍♂️ 本地运行
      1. 🛠️ 可用工具
        1. 📝 可用提示
          1. 💡 示例查询
            1. 图书馆基本信息
            2. 多语言支持
            3. 使用工具
            4. 使用提示
          2. ❓ 故障排除
            1. 本地安装
          3. 📄 许可证

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
              Last updated -
              11
              76
              60
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              Facilitates searching and accessing programming resources across platforms like Stack Overflow, MDN, GitHub, npm, and PyPI, aiding LLMs in finding code examples and documentation.
              Last updated -
              6
              25
              JavaScript
              AGPL 3.0
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables clients to extract LLM-friendly prompts from documentation in GitHub repositories or hosted websites.
              Last updated -
              Python
              Apache 2.0
            • -
              security
              F
              license
              -
              quality
              A customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.
              Last updated -
              Python
              • Linux
              • Apple

            View all related MCP servers

            ID: 8yfwtryuc5