devilMing/yapi-mcp-server
If you are the rightful owner of yapi-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
YAPI MCP Server provides access to YAPI interface details through a Model Context Protocol server.
YAPI MCP Server
This is a Model Context Protocol (MCP) server that provides access to YAPI interface details.
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- YAPI instance
- YAPI project ID and token
Installation
- Clone this repository
- Install dependencies:
npm install
- Create a
.env
file in the root directory with the following variables:
YAPI_BASE_URL=http://your-yapi-instance.com
YAPI_TOKEN=your-token-here
YAPI_PROJECT_ID=your-project-id
Usage
Start the server:
npm start
The server can be configured in your Claude Desktop config file:
{
"mcpServers": {
"yapi": {
"type": "SSE",
"url": "http://localhost:${your .env PORT}/sse"
}
}
}