The mcp-server-yapi serves as a smart bridge that allows developers to manage their API documentation and project structures using simple, natural language. Instead of manually clicking through complex dashboards to create or update API endpoints, this tool enables an AI assistant to handle those tasks directly. It essentially transforms the YApi platform into an interactive workspace where organizing technical interfaces feels like having a conversation with a helpful colleague. For those looking for deeper control, the server provides a comprehensive suite of specialized tools that cover the entire API lifecycle. It includes specific functions for retrieving project details, organizing interface categories, and listing existing menus. Developers can use it to programmatically add new interfaces, update existing ones, or even import large batches of server data. By exposing these backend capabilities to a Model Context Protocol (MCP) client, it ensures that an AI agent has the precise tools needed to manipulate API data accurately and efficiently. Integrating this server into AI-powered development environments like Cursor, Windsurf, or Claude Desktop significantly streamlines the coding workflow. Because the AI can "read" the existing API definitions and "write" new ones in real-time, it reduces the friction of context-switching between a code editor and a documentation portal. This automation ensures that project documentation stays perfectly in sync with the actual development process, making it an essential utility for teams that want to leverage the full power of large language models for automated interface management.
Category: CRM, ERP & E-commerce
Tags: api-documentation, api-lifecycle, interface-management, yapi
npx configuration method shown in the configuration section. Local Development Installation: If you prefer to run the server from source: 1. Clone the repository: git clone https://github.com/kales0202/mcp-server-yapi.git 2. Navigate to the directory: cd mcp-server-yapi 3. Install dependencies: npm install 4. Build the project: npm run build ---claude_desktop_config.json or Cursor's MCP settings). Option A: Using NPX (Recommended) json { "mcpServers": { "mcp-server-yapi": { "command": "npx", "args": ["-y", "mcp-server-yapi"], "env": { "YAPI_BASE_URL": "Your YApi service URL (e.g., https://xxx.yyy.com)", "YAPI_TOKEN": "Project TOKEN (Found in Project -> Settings -> Token configuration)", "MCP_DEBUG_CONSOLE": "false" } } } } Option B: Using Local Build json { "mcpServers": { "mcp-server-yapi": { "command": "node", "args": ["/absolute/path/to/your/mcp-server-yapi/dist/index.js"], "env": { "YAPI_BASE_URL": "Your YApi service URL", "YAPI_TOKEN": "Project TOKEN", "MCP_DEBUG_CONSOLE": "false" } } } } ---get_project: Get basic project information. * add_cat: Add a new interface category. * get_cat_menu: Retrieve the category menu list. * list_cat: Get a list of interfaces within a specific category. * list_menu: Get the interface menu list. * get_interface: Get detailed data for a specific interface. * list_interface: Get list data for interfaces. * save_interface: Add or update an interface. * add_interface: Create a new interface. * up_interface: Update an existing interface. * import_data: Import server-side data. ---save_interface or add_interface tool to automatically create or update the documentation in YApi. Example: "I've just finished the UserController.ts file. Please analyze the updateProfile method and update the corresponding interface in the 'User Management' category on YApi."list_interface and get_interface tools, a developer can search for functionality using natural language directly within their development environment. The AI can find the relevant endpoint and immediately provide the requestresponse structure. Example: "Find the API in YApi that handles user password resets. Once you find it, show me the required body parameters and generate a TypeScript interface for the response."
add_cat and add_interface to bulk-create the project structure based on a simple requirements list or a technical design document. Example: "Based on this project brief, create three categories in YApi: 'Auth', 'Orders', and 'Inventory'. Then, add empty interface stubs for 'Login', 'Register', 'CreateOrder', and 'GetStock' under their respective categories."OpenAPI JSON files) into YApi, or sync changes between different project environments, which usually involves manual file exports and imports. Solution: By using the import_data tool, the AI can facilitate the flow of data from external sources or raw JSON directly into the YApi project without the user navigating the "Settings" and "Import" menus.…
Part of MCP Servers