# YApi MCP Server 这是一个 Model Context Protocol (MCP) 服务器,用于与 YApi 接口管理平台集成,支持自动生成 TypeScript 类型定义、Mock 数据和 API 请求代码。 ## ✨ 功能特性 ### 🔧 核心功能 -
yapi.config.json 配置文件 - YApi 数据获取: 通过配置的 remoteUrl 获取 YApi. That is what the yapi mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.// 方式二 使用了 fnm、nvm 等 node 管理器,子进程中可能没有初始化 node 环境导致报错,使用下面的配置 { "mcpServers": { "yapi-cli": { "command": "/bin/zsh", "args": [ "-lic", "exec npx -y -p @vtian/yapi-cli yapi-mcp" ], "cwd": "${workspaceFolder}" } } } ```
Installation goes through your MCP client rather than a global install: point it at @vtian/yapi-cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Configuration is passed through the environment: YAPI_SKILLS_ZIP_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by tiandashu; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
//方式一
{
"mcpServers": {
"yapi": {
"command": "node",
"args": ["/absolute/path/to/yapi-cli/dist/mcp/index.js"]
}
}
}
//方式二
{
"mcpServers": {
"yapi2": {
"command": "npm",
"args": [
"exec",
"--prefix",
"/absolute/path/to/yapi-cli",
"--",
"yapi-mcp"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| YAPI_SKILLS_ZIP_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.