CP

cdugo/package-documentation-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

15 stars 10 forks 质量 65 趋势 21MIT

MCP 磁共振 获取软件包文档的服务器

概览

一个MCP服务器,从多语言生态系统获取克洛德等LLMS的软件包文档而不需要API密钥. - 支持多种编程语言(JavaScript, Python, Java,.NET, Ruby, PHP, Rust, Go, Swift) - 按名称或URL获取软件包的文档 - Crawls文档站点提取综合信息 - QQ提取 README, API docs, 代码示例,和寄存器信息 - 提供 LLM 汇总的结构化数据 - 包括文档分析的专业提示 - QQ - 与 Claude Desktop and Cursor IDE 本地工作 1. 打开 Claude 桌面 设置 开发者 2. 点击"编辑配置"并添加: 1. 开放光标 IDE − 设置 → MCP - > 添加新的 MCP Servier 2. 添加: 安装后,您可以在本地运行服务器 : 对于文件更改时自动重新启动的开发 : 服务器将在默认端口(通常是3000)上启动. 您应该看到输出像 : 1. : QQ从特定的 URL 2 中获取文件 .

概述(AI 翻译)

一个MCP服务器,从多语言生态系统获取克洛德等LLMS的软件包文档而不需要API密钥.

□ * * * * 特点

  • 支持多种编程语言(JavaScript, Python, Java,.NET, Ruby, PHP, Rust, Go, Swift)
  • QQ按名称或 URL 获取软件包的文档
  • 爬行记录网站,以获取全面信息
  • 摘录 README、API 文档、代码示例和寄存器信息
  • 提供结构化的LLM汇总数据
  • 包括文件分析专用提示
  • ** 无 API 密钥 ** - 与 Claude桌面和光标 IDE 本地工作

□ 安装

克劳德桌面

  1. 打开 Claude 桌面 设置 开发者
  2. 点击"编辑配置"并添加:

QQ 光标 IDE 配置

  1. 开放光标 IDE − 设置 → MCP - > 添加新的 MCP 服务器
  2. 加上:

· 先决条件

  • 18号或以后

# # 运行本地

安装后,您可以在本地运行服务器 :

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

服务器将在默认端口(通常是3000)上启动. 您应该看到输出像 :

要指定自定义端口 :

# # # 可用的工具

  1. 联合国.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

📚 DocsFetcher MCP Server

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

✨ 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:
{
  "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:
    Name: docsFetcher
    Command: npx -y @smithery/cli@latest run @cdugo/mcp-get-docs --config "{}"

Prerequisites

  • 📋 Node.js 18 or later

🏃‍♂️ Running Locally

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:

# From the project root directory
npm start

For development with auto-restart on file changes:

npm run dev

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

🚀 DocsFetcher MCP Server running!
📋 Ready to fetch documentation

To specify a custom port:

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

在 GitHub 查看完整 README

安装

npx -y @smithery/cli@latest run @cdugo/mcp-get-docs --config '{}'
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "docsFetcher": { "command": "npx", "args": [ "-y", "@smithery/cli@latest", "run", "@cdugo/mcp-get-docs", "--config", "'{}'" ] } } }