一个不需要 API 密钥即可为像 Claude 这样的大语言模型从多种编程语言生态系统中获取包文档的 MCP 服务器。
{
"mcpServers": {
"docsFetcher": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@cdugo/mcp-get-docs",
"--config",
"'{}'"
]
}
}
}

Name: docsFetcher
Command: npx -y @smithery/cli@latest run @cdugo/mcp-get-docs --config "{}"

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
MIT