A tool to retrieve API interface information from YApi, with authentication configurable via environment variables.
一个基于 Model Context Protocol (MCP) 的 YApi 接口信息获取工具
git clone https://github.com/twelve-web/yapi-mcp.git
cd yapi-mcp
npm install
npm run build
创建 .env
文件并添加 YApi 认证信息(可选):
YAPI_TOKEN=""
BASE_URL=""
node>18
npm 官方源
在 mcp.json 中添加:
{
"mcpServers": {
"auto-yapi-mcp": {
"command": "npx",
"args": ["-y", "auto-yapi-mcp"],
"env": {
"YAPI_TOKEN": "aa270a5a35f043540xxxxxxx5c908164f6fcae",
"BASE_URL": "https://fed.xxxx.com"
}
}
}
}
获取指定分类下的接口列表
参数:
url
(string): YApi 分类页面 URL,格式如 https://xxxxx.com/project/810/interface/api/cat_2783
示例:
工具: yapi_get_interfaces
参数: url = "https://xxxxx.com/project/810/interface/api/cat_2783"
获取指定接口的详细信息(请求体和响应体)
参数:
id
(string): 接口 ID,来自接口列表中的 _id
字段示例:
工具: yapi_get_interface_detail
参数: https://xxxxxxx/project/1219/interface/api/42726
yapi_get_interfaces
获取分类下的所有接口yapi_get_interface_detail
获取详细信息MIT
欢迎提交 Issue 和 Pull Request!
如有问题,请提交 Issue 或联系作者。
An MCP server for the gget bioinformatics library, enabling standardized access to genomics tools and databases.
Test web pages and HTML for accessibility issues and WCAG compliance using Axe-core and Puppeteer.
Implements Solana blockchain functionality for the LetsBonk launchpad.
A template for deploying a remote MCP server on Cloudflare Workers, allowing for custom tool integration.
A comprehensive toolkit for AI-driven development, offering file system operations, code analysis, execution, web searching, and system information retrieval.
Loads and validates LAML (YAML-based markup language) documents via the Model Context Protocol.
Finds relevant code snippets, developer articles, and blog posts based on your queries.
Reference / test server with prompts, resources, and tools
A moby-like random name generator for use with tools like Claude Desktop and VS Code Copilot Agent.
Integrates with Azure DevOps, allowing interaction with its services. Requires a Personal Access Token (PAT) for authentication.