YAPI MCP Server

YAPI MCP Server

YYvanYang

Developer Tools
Visit Server

README

YAPI MCP Server

A Model Context Protocol (MCP) server for interacting with a YAPI instance. This server enables LLMs to retrieve API documentation details from your YAPI projects.

Features

  • List interface categories and basic interface info within a project.
  • Get detailed information for a specific interface by its ID.

Tools

  1. yapi_list_interfaces

    • Lists all interface categories and the interfaces within them for a specific YAPI project.
    • Input:
      • project_token (string): The token for the YAPI project (found in YAPI project settings -> Tokens).
    • Returns: A JSON string containing an array of categories, each with a list of simplified interface objects (id, title, path, method, status).
  2. yapi_get_interface_details

    • Gets detailed information for a specific YAPI interface by its ID.
    • Input:
      • project_token (string): The token for the YAPI project.
      • interface_id (number): The ID of the specific YAPI interface (you can find this ID in the URL when viewing an interface in YAPI).
    • Returns: A JSON string containing the detailed interface information (request/response parameters, headers, body schemas, etc.).

Setup

Prerequisites

  1. A running YAPI instance.
  2. Access to the project token(s) for the YAPI projects you want to interact with. You can find this in your YAPI project's "Settings" -> "Tokens" section.
  3. Node.js and npm installed on the machine where you'll run the server or build the Docker image.

Configuration

The server requires the base URL of your YAPI instance to be set via the YAPI_URL environment variable.

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

NPX

{
  "mcpServers": {
    "yapi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-yapi"
      ],
      "env": {
        "YAPI_URL": "http://your-yapi-instance.com"
        // If you want to hardcode a default token (less secure, prefer passing via tool):
        // "YAPI_PROJECT_TOKEN": "YOUR_DEFAULT_PROJECT_TOKEN"
      }
    }
  }
}

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python