文档MCP服务器
一个用于访问流行库最新文档的MCP服务器。
快速入门
使用安装脚本
- 克隆仓库:
git clone https://github.com/SubaashNair/documentation-mcp-server.git
- 进入目录:
cd documentation-mcp-server
- 设置权限:
chmod +x install.sh
- 执行安装:
./install.sh
使用 Docker
- 克隆仓库并进入目录。
- 复制环境变量文件:
cp .env.example .env
- 启动服务:
docker-compose up -d
手动安装
详见安装指南。
使用方法
- 访问Web界面:打开
http://localhost:3000
- API示例:
- 搜索文档:
curl -X GET "http://localhost:3000/api/search?q=useState&library=react"
- 获取库文档:
curl -X GET "http://localhost:3000/api/libraries/react/hooks/useState"
- 搜索文档: