DocsFetcher

搜索与获取

by cdugo

抓取 npm 包文档并以适合 LLM 理解的方式呈现,方便模型检索、引用和使用最新接口说明。

什么是 DocsFetcher

抓取 npm 包文档并以适合 LLM 理解的方式呈现,方便模型检索、引用和使用最新接口说明。

核心功能 (4 个工具)

fetch-url-docs
fetch-package-docs
fetch-library-docs
fetch-multilingual-docs

README

📚 DocsFetcher MCP Server

smithery badge npm version npm downloads

An MCP server that fetches package documentation from multiple language ecosystems for LLMs like Claude without requiring API keys.

<a href="https://glama.ai/mcp/servers/8yfwtryuc5"> <img width="380" height="200" src="https://glama.ai/mcp/servers/8yfwtryuc5/badge" alt="DocsFetcher Server MCP server" /> </a>

✨ Features

  • 🌐 Supports multiple programming languages (JavaScript, Python, Java, .NET, Ruby, PHP, Rust, Go, Swift)
  • 📦 Fetches documentation for packages by name or URL
  • 🔍 Crawls documentation sites to extract comprehensive information
  • 📄 Extracts README, API docs, code examples, and repository info
  • 🧠 Provides structured data for LLM summarization
  • 💬 Includes specialized prompts for documentation analysis
  • 🔑 No API key required - works natively with Claude Desktop and Cursor IDE

🚀 Installation

Claude Desktop

  1. Open Claude Desktop → Settings → Developer
  2. Click "Edit Config" and add:
json
{
  "mcpServers": {
    "docsFetcher": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "@cdugo/mcp-get-docs",
        "--config",
        "'{}'"
      ]
    }
  }
}

Cursor IDE Configuration

  1. Open Cursor IDE → Settings → MCP -> Add New MCP Servier
  2. Add:
json
    Name: docsFetcher
    Command: npx -y @smithery/cli@latest run @cdugo/mcp-get-docs --config "{}"

Prerequisites

  • 📋 Node.js 18 or later

🏃‍♂️ Running Locally

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

Once installed, you can run the server locally with:

bash
# From the project root directory
npm start

For development with auto-restart on file changes:

bash
npm run dev

The server will start on the default port (usually 3000). You should see output like:

code
🚀 DocsFetcher MCP Server running!
📋 Ready to fetch documentation

To specify a custom port:

bash
PORT=8080 npm start

🛠️ Available Tools

  1. fetch-url-docs: 🔗 Fetch docs from a specific URL
  2. fetch-package-docs: 📦 Fetch docs for a package with optional language specification
  3. fetch-library-docs: 🧠 Smart tool that works with either package name or URL
  4. fetch-multilingual-docs: 🌍 Fetch docs for a package across multiple language ecosystems

📝 Available Prompts

  1. summarize-library-docs: 📚 Create a comprehensive library summary
  2. explain-dependency-error: 🐛 Generate dependency error explanations

💡 Example Queries

Basic Library Information

  • "What is Express.js and how do I use it?"
  • "Tell me about the React library"
  • "How do I use requests in Python?"

Multi-language Support

  • "Show me documentation for lodash in JavaScript"
  • "Compare pandas in Python and data.table in R"

Using Tools

  • "@fetch-package-docs with packageName='express' and language='javascript'"
  • "@fetch-package-docs with packageName='requests' and language='python'"
  • "@fetch-multilingual-docs with packageName='http' and languages=['javascript', 'python', 'rust']"

Using Prompts

  • "@summarize-library-docs with libraryName='express'"
  • "@explain-dependency-error with packageName='dotenv'"

❓ Troubleshooting

Local Installation

  • Server not showing up: ✅ Verify absolute path in configuration
  • Connection errors: 🔄 Restart Claude Desktop or Cursor IDE
  • Fetch failures: ⚠️ Some packages may have non-standard documentation
  • Language support: 🌐 If a language isn't working, try using the package's direct URL

📄 License

MIT

常见问题

DocsFetcher 是什么?

抓取 npm 包文档并以适合 LLM 理解的方式呈现,方便模型检索、引用和使用最新接口说明。

DocsFetcher 提供哪些工具?

提供 4 个工具,包括 fetch-url-docs、fetch-package-docs、fetch-library-docs

相关 Skills

技能搜索

by daymade

Universal
热门

通过CCPM直接搜索、查看、安装、更新和卸载Claude Code Skill,适合查找PDF、代码审查等场景插件,也能列出已装Skill并自动执行命令返回结果。

想给Claude Code找对技能时,用它能一站式搜索、安装和管理CCPM注册表里的能力,省去到处翻找的时间。

搜索与获取
未扫描1.3k

深度研究

by daymade

Universal
热门

围绕既定模板拆题、多轮检索、整理证据表并交叉校验引用,产出格式严格、可追溯的研究报告,适合市场调研、竞品分析、政策追踪等高要求写作任务

把网页搜索、信息检索和研究分析串成一条链路,适合需要快速汇总线索、做深度判断的开发与研究工作。

搜索与获取
未扫描1.3k

标准研究员

by levnikolaevich

Universal

基于项目技术栈和 Epic/Story 需求,用 MCP Ref 检索相关 RFC、行业标准与架构模式,整理成可直接写入 Story Technical Notes 的研究结论与参考链接。

做技术方案时先让标准研究员帮你查标准与设计模式,基于 MCP Ref 产出可复用的技术注释研究,省下大量检索整理时间。

搜索与获取
未扫描539

相关 MCP Server

网页抓取

编辑精选

by Anthropic

热门

Fetch 是 MCP 官方参考服务器,让 AI 能抓取网页并转为 Markdown 格式。

这个服务器解决了 AI 直接处理网页内容时格式混乱的问题,适合需要让 Claude 分析在线文档或新闻的开发者。不过作为参考实现,它缺乏生产级的安全配置,你得自己处理反爬虫和隐私风险。

搜索与获取
89.7k

Brave 搜索

编辑精选

by Anthropic

热门

Brave Search 是让 Claude 直接调用 Brave 搜索 API 获取实时网络信息的 MCP 服务器。

如果你想让 AI 助手帮你搜索最新资讯或技术文档,这个工具能绕过传统搜索的限制,直接返回结构化数据。特别适合需要实时信息的开发者,比如查 API 更新或竞品动态。不过它依赖 Brave 的 API 配额,高频使用可能受限。

搜索与获取
89.7k

by Anthropic

热门

Puppeteer 是让 Claude 自动操作浏览器进行网页抓取和测试的 MCP 服务器。

这个服务器解决了手动编写 Puppeteer 脚本的繁琐问题,适合需要自动化网页交互的开发者,比如抓取动态内容或做端到端测试。不过,作为参考实现,它可能缺少生产级的安全防护,建议在可控环境中使用。

搜索与获取
89.2k

评论