Yapi MCP Server

MCP server for YAPI interface details

Local serverstdio

What is the Yapi MCP server?

Yapi becomes available to MCP clients through the yapi mcp server. MCP server for YAPI interface details.

What Yapi does

This is a Model Context Protocol (MCP) server that provides access to YAPI interface details.

Installing the yapi mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

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

Requirements

  • Node.js (v14 or higher) - npm or yarn - YAPI instance - YAPI project ID and token

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. Yapi 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 devilMing.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the yapi 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 Yapi MCP server

{
  "mcpServers": {
    "yapi": {
      "type": "SSE",
      "url": "http://localhost:${your .env PORT}/sse"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js (v14 or higher) - npm or yarn - YAPI instance - YAPI project ID and token
VariableDescriptionRequired
YAPI_BASE_URLEndpoint or connection string the server talks to.Yes
YAPI_TOKENCredential the server authenticates with.Yes
YAPI_PROJECT_IDConfiguration value read at startup.Optional

Frequently asked questions

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