y

yapi-mcp

@abeixiaolu/yapi-mcp
0 Stars 324 次浏览 abeixiaolu 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "yapi": {
      "args": [
        "-y",
        "yapi-mcp-server@latest"
      ],
      "command": "npx",
      "env": {
        "YAPI_BASE_URL": "http://your-yapi-server.com",
        "YAPI_TOKEN": "your-yapi-token"
      }
    }
  }
}

服务介绍

YApi MCP Server

English
中文

A MCP (Model Context Protocol) server for accessing YApi interface documentation.

Features

  • Get interface details by ID
  • Support YApi URL auto-parsing

Claude Desktop Configuration

{
  "mcpServers": {
    "yapi": {
      "command": "npx",
      "args": ["-y", "yapi-mcp-server@latest"],
      "env": {
        "YAPI_BASE_URL": "http://your-yapi-server.com",
        "YAPI_TOKEN": "your-yapi-token"
      }
    }
  }
}

Environment Variables

  • YAPI_BASE_URL: Your YApi server URL
  • YAPI_TOKEN: YApi access token

How to Get Token

Login to YApi Profile Settings Copy Token

Usage

Direct URL

Please get the information for this interface: http://localhost:40001/project/11/interface/api/23

Tool Name

Please use yapi-get-interface tool to get details for interface ID 789

License

MIT

相关 MCP 服务