About Yapi Auto
Yapi Auto is an MCP server published by lzsheng in the Documentation category: yapi mcp server. Conduid read 5 tools from its source: yapi_get_api_desc, yapi_get_categories, yapi_list_projects, yapi_save_api and yapi_search_apis. It is published to npm as yapi-auto-mcp and starts with npx.
The repository has 124 stars and 33 forks, is licensed MIT, and its last commit was on 4 Jul 2025. Conduid has no tagged release on record for it. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Tests present. Its topics include yapi, api-documentation, api-management, yapi-integration, interface-management and api-design.
Install
claude mcp add yapi-auto -- npx -y yapi-auto-mcpnpx -y yapi-auto-mcpgit clone https://github.com/lzsheng/Yapi-MCPTools (5)
yapi_get_api_desc获取YApi中特定接口的详细信息| Parameter | Type | Description |
|---|---|---|
| apiId * | string | YApi接口的ID;如连接/project/1/interface/api/66,则ID为66 |
| projectId * | string | YApi项目ID;如连接/project/28/interface/api/66,则ID为28 |
yapi_get_categories获取YApi项目下的接口分类列表,以及每个分类下的接口信息| Parameter | Type | Description |
|---|---|---|
| projectId * | string | YApi项目ID |
yapi_list_projects列出YApi的项目ID(projectId)和项目名称yapi_save_api新增或更新YApi中的接口信息| Parameter | Type | Description |
|---|---|---|
| api_opened | boolean | 开启API文档页面,默认true |
| catid * | string | 接口分类ID,新增接口时必填 |
| desc | string | 接口描述 |
| id | string | 接口ID,更新时必填,新增时不需要 |
| markdown | string | markdown格式的接口描述 |
| method * | string | 请求方法,如:GET, POST, PUT, DELETE等 |
| path * | string | 接口路径,如:/api/user |
| projectId * | string | YApi项目ID |
| req_body_form | string | 表单请求体,JSON格式数组 |
| req_body_is_json_schema | boolean | 是否开启JSON Schema,默认false |
| req_body_other | string | 其他请求体(通常是JSON格式) |
| req_body_type | string | 请求体类型,如:form, json, file, raw |
| req_headers | string | 请求头参数,JSON格式数组,如:[{"name":"Content-Type","value":"application/json"}] |
| req_params | string | 路径参数,JSON格式数组,如:[{"name":"id","desc":"用户ID"}] |
| req_query | string | 查询参数,JSON格式数组,如:[{"name":"page","desc":"页码","required":"1"}] |
| res_body | string | 返回数据,如果res_body_is_json_schema为true则用json schema格式 |
| res_body_is_json_schema | boolean | 返回数据是否为JSON Schema,默认false |
| res_body_type | string | 返回数据类型,如:json, raw |
| status | string | 接口状态,done代表完成,undone代表未完成 |
| switch_notice | boolean | 开启接口运行通知,默认true |
| tag | string | 接口标签列表 |
| title * | string | 接口标题 |
yapi_search_apis搜索YApi中的接口| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回结果数量限制,默认20 |
| nameKeyword | string | 接口名称关键字 |
| pathKeyword | string | 接口路径关键字 |
| projectKeyword | string | 项目关键字,用于过滤项目 |
| tagKeyword | string | 接口标签关键字 |
Security checks
- ✓README presentThe repository's README runs to about 526 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 9 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
README
The repository's README runs to about 526 words, fetched 12 days ago. The original in the repository is authoritative.
Read full README