YApi MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YAPI_TOKEN | Yes | YApi 项目级 Token,在项目设置中获取 | |
| YAPI_BASE_URL | Yes | YApi 服务根地址,如 http://127.0.0.1:3000 | |
| YAPI_PROJECT_ID | No | 默认项目 ID,可选,可避免每次调用时手动传入 | |
| RUN_MCP_TIMEOUT_MS | No | MCP 运行超时时间(毫秒) | |
| START_MCP_TIMEOUT_MS | No | MCP 启动超时时间(毫秒) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_api_listA | 获取指定 YApi 项目的完整接口列表。如果不传 projectId,则优先使用环境变量 YAPI_PROJECT_ID。 |
| yapi_list_interfacesB | 获取指定 YApi 项目的完整接口列表。如果不传 projectId,则优先使用环境变量 YAPI_PROJECT_ID。 |
| get_api_detailA | 根据接口 ID 获取 YApi 接口详情,包含请求信息、响应结构等完整内容。 |
| yapi_get_interface_detailB | 根据接口 ID 获取 YApi 接口详情,包含请求信息、响应结构等完整内容。 |
| search_apiB | 根据关键字搜索 YApi 接口,使用 YApi 内置搜索 API,匹配接口名称和路径。 |
| yapi_search_interfacesB | 根据关键字搜索 YApi 接口,使用 YApi 内置搜索 API,匹配接口名称和路径。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |