Yapi Fetch Mcp MCP Server

用于读取 YApi 接口元数据的 MCP server。你可以通过 YApi 页面 URL、接口 ID 或项目 ID 获取接口路径、请求参数、请求体、响应结构等信息。

Local serverstdioMIT

What is the Yapi Fetch Mcp Server?

Yapi Fetch Mcp is an MCP project maintained in the xiaozhi666666/yapi-mcp repository. The maintainer describes its purpose as “用于读取 YApi 接口元数据的 MCP server。你可以通过 YApi 页面 URL、接口 ID 或项目 ID 获取接口路径、请求参数、请求体、响应结构等信息。”. Read the project documentation for the complete scope.

Installation

The documented npm package is yapi-fetch-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares YAPI_HOST, YAPI_TOKEN. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Yapi Fetch Mcp Server

{
  "mcpServers": {
    "yapi": {
      "command": "npx",
      "args": [
        "-y",
        "yapi-fetch-mcp"
      ],
      "env": {
        "YAPI_HOST": "https://yapi.example.com",
        "YAPI_TOKEN": "YOUR_YAPI_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
YAPI_HOSTDeclared in the maintainer’s client configuration.Check documentation
YAPI_TOKENDeclared in the maintainer’s client configuration.Check documentation