使用说明
YApi MCP服务器
用于访问YApi接口文档的MCP(模型上下文协议)服务器。
特性
- 📝 按ID获取接口详细信息
- 🔗 支持YApi URL自动解析
Claude桌面配置
{
"mcpServers": {
"yapi": {
"command": "npx",
"args": ["-y", "yapi-mcp-server@latest"],
"env": {
"YAPI_BASE_URL": "http://your-yapi-server.com",
"YAPI_TOKEN": "your-yapi-token"
}
}
}
}
环境变量
YAPI_BASE_URL:您的YApi服务器URLYAPI_TOKEN:YApi访问令牌
如何获取Token
登录YApi→ 配置文件设置→ 复制令牌
用法
直接URL
Please get the information for this interface: http://localhost:40001/project/11/interface/api/23
工具名称
Please use yapi-get-interface tool to get details for interface ID 789
许可证
麻省理工学院