YAPI MCP Server

YAPI MCP Server

By YYvanYang GitHub

-

yapi mcp
Overview

what is YAPI MCP Server?

YAPI MCP Server is a Model Context Protocol (MCP) server designed to interact with a YAPI instance, allowing LLMs to retrieve API documentation details from YAPI projects.

how to use YAPI MCP Server?

To use YAPI MCP Server, set up a running YAPI instance, configure the server with the base URL of your YAPI instance, and use the provided tools to list interfaces or get details of specific interfaces.

key features of YAPI MCP Server?

  • Lists interface categories and basic information within a YAPI project.
  • Retrieves detailed information for specific interfaces by their ID.

use cases of YAPI MCP Server?

  1. Integrating API documentation retrieval into applications.
  2. Assisting developers in understanding API structures and details.
  3. Automating the documentation process for YAPI projects.

FAQ from YAPI MCP Server?

  • What is required to run YAPI MCP Server?

You need a running YAPI instance, access to project tokens, and Node.js installed.

  • How do I configure the server?

Set the base URL of your YAPI instance via the YAPI_URL environment variable.

  • Can I use YAPI MCP Server with Docker?

Yes, you can build the server as a Docker image.

Content

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"
      }
    }
  }
}
No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details