Labsco
yyykf logo

Yapi

โ˜… 1

from yyykf

An MCP server for the Yapi API management platform.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Yapi MCP Server

Recommended: If you only need to search Yapi interfaces or get interface details, use the lightweight Yapi Skill first. It calls Yapi through local Python scripts and does not require starting the Java/Docker MCP server. Use this project when you need a full MCP server integration.

A Model Context Protocol (MCP) Server for Yapi API management platform. This project provides seamless integration between AI assistants and Yapi, allowing you to query API documentation, search interfaces, and manage API information through natural language.

For the Chinese version of this document, please see README_zh.md.

Features

This MCP server provides the following tools for interacting with Yapi:

ToolDescription
listProjectsList all configured Yapi projects with their IDs and names
listCategoriesGet interface categories for a specific Yapi project
listCatInterfacesList interfaces within a specific category
searchInterfacesSearch API interfaces by project name, keyword, or path
getInterfaceDetailGet detailed information about a specific API interface
refreshCacheManually refresh the Yapi cache
clearProjectCacheClear cache for a specific project
getCacheStatsGet cache statistics information

Building Multi-Architecture Docker Images

If you need to build and push multi-architecture Docker images manually, use the provided script:

./build-and-push.sh <version> <docker-username> <docker-password>

Example:

./build-and-push.sh 1.0.0 myusername mypassword

This script will build images for both amd64 and arm64 architectures and create a multi-architecture manifest.

Documentation

For more detailed project documentation and insights, you can explore the project using DeepWiki:

Integration with Cursor

Method 1: One-Click Install

Click the button below to automatically install the MCP server in Cursor:

Install MCP Server

Method 2: Manual Configuration

Add the following configuration to your Cursor MCP settings file (mcp.json):

{
  "mcpServers": {
    "yapi": {
      "url": "http://127.0.0.1:8888/sse"
    }
  }
}

Health Check

Once the application is running, you can check its health status:

curl http://localhost:8888/actuator/health

Or visit http://localhost:8888/actuator/health in your browser.