Auto Api MCP Server

yapi-mcp - YApi接口信息获取工具,支持MCP协议

Local serverstdioTypeScript

What is the Auto Api MCP MCP server?

Auto api mcp mcp server lets Claude, Cursor and other MCP clients work with Auto Api MCP directly. yapi-mcp - YApi接口信息获取工具,支持MCP协议.

What Auto Api MCP does

  1. 获取接口列表: 使用 yapi_get_interfaces 获取分类下的所有接口 2. 获取接口详情: 使用 yapi_get_interface_detail 获取详细信息 3. 生成类型定义: 基于返回的请求/响应体生成 TypeScript 类型

Installing the auto api mcp mcp server

The server is distributed via npm as npm, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 3 environment variables: YAPI_TOKEN, BASE_URL, YAPI_COOKIE. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Auto Api MCP sits in that group. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by twelve-web, written in TypeScript.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the auto api mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the Auto Api MCP MCP server

{
  "mcpServers": {
    "auto-api": {
      "command": "npx",
      "args": ["-y", "npm"],
      "env": {
        "YAPI_TOKEN": "your-value",
        "BASE_URL": "your-value",
        "YAPI_COOKIE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
YAPI_TOKENCredential the server authenticates with.Yes
BASE_URLEndpoint or connection string the server talks to.Yes
YAPI_COOKIEConfiguration value read at startup.Optional

Frequently asked questions

It connects Auto Api MCP to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Auto Api MCP directly.