YApi MCP server for querying API documentation

YApi MCP server for querying API documentation

mcp-yapi-server•bytstonelee

An MCP server that connects MCP-capable editors such as Cursor to YApi so users can look up YApi API documentation directly.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Lets users paste a YApi URL to query interface information.
  • •Retrieves full request and response parameters for an interface.
  • •Lists all interfaces in a project and supports keyword search.
  • •Supports AI-assisted generation of code and type definitions from YApi data.

BEST FOR

  • •Developers using Cursor who want to look up YApi API documentation inside the editor.
  • •Teams that want to search and list project interfaces by keyword while working with YApi.
  • •Generating code and type definitions with AI assistance from YApi interface details.

ABOUT MCP-YAPI-SERVER

YApi MCP server for querying API documentation is cataloged as an MCP server attributed to tstonelee. An MCP server that connects MCP-capable editors such as Cursor to YApi so users can look up YApi API documentation directly. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for YApi MCP server for querying API documentation are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server require a YApi token to work?

Yes, when a login is required, users set YAPI_TOKEN in the Cursor configuration.

What kind of interface information can I query?

The server provides full request and response parameters for an interface.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 089ce3eb3ce2 · 采集于 2026-11-13 11:06:01 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

mcp-yapi-server

npm version License: MIT GitHub stars GitHub forks

基于 Model Context Protocol (MCP) 的 YApi 集成服务器,在 Cursor 等支持 MCP 的编辑器中直接查询 YApi API 文档。

✨ 功能特性

  • 🔗 直接粘贴 URL - 最简单!粘贴 YApi 链接即可查询
  • 🔍 查询接口详情 - 完整的请求/响应参数
  • 📋 列出接口 - 查看项目所有接口
  • 🔎 搜索接口 - 按关键词搜索
  • 🤖 AI 辅助 - 自动生成代码、类型定义等

📦 安装

npm install -g mcp-yapi-server

或作为项目依赖:

npm install mcp-yapi-server

🚀 快速开始

1. 安装

npm install -g mcp-yapi-server

2. 配置 Cursor

在 Cursor 设置中添加 MCP 服务器配置:

推荐方式 - 本地安装:

# 在项目目录中安装
npm install mcp-yapi-server
{
  "mcpServers": {
    "yapi": {
      "command": "node",
      "args": ["./node_modules/mcp-yapi-server/dist/index.js"],
      "env": {
        "YAPI_BASE_URL": "https://yapi.example.com",
        "YAPI_TOKEN": "your_token_here"
      }
    }
  }
}

或全局安装:

npm install -g mcp-yapi-server
{
  "mcpServers": {
    "yapi": {
      "command": "mcp-yapi-server",
      "env": {
        "YAPI_BASE_URL": "https://yapi.example.com",
        "YAPI_TOKEN": "your_token_here"
      }
    }
  }
}

⚠️ 注意: 不推荐使用 npx 方式,因为依赖可能无法正确解析。请使用本地安装或全局安装。

3. 重启 Cursor

4. 开始使用

在 Cursor 中直接粘贴 YApi 链接:

https://yapi.example.com/project/100/interface/api/12345

📚 文档

🔧 常见问题

"No server info found"

原因: Node.js 版本 < 18
解决: nvm install 18 && nvm use 18

"请登录..."

原因: 需要配置 Token
解决: 在 Cursor 配置中设置 YAPI_TOKEN

详见 故障排除文档

🛠 开发

# 克隆项目
git clone https://github.com/TStoneLee/mcp-yapi-server.git
cd mcp-yapi-server

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建
npm run build

📄 许可证

MIT License

🔗 相关链接

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for YApi MCP server for querying API documentation from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-yapi-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools