npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

criller-yapi-mcp-server

v1.0.0

Published

MCP Server for YAPI API Platform Integration

Readme

YAPI MCP Server

A Model Context Protocol (MCP) server for YAPI API Platform integration. Enable AI assistants to interact with YAPI seamlessly.

中文文档

🚀 Quick Start

Recommended: Use with npx (No installation required)

  1. Get your YAPI Token: Login to your YAPI platform and get the token from project settings

  2. Configure Claude Desktop: Add the following to your MCP settings file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "yapi": {
      "command": "npx",
      "args": [
        "-y",
        "criller-yapi-mcp-server",
        "--yapi-base-url=http://your-yapi-server.com",
        "--yapi-token=your-token-here"
      ]
    }
  }
}
  1. Start using: Restart Claude Desktop and you're ready to go!

✨ Features

This MCP server provides 11 tools covering all YAPI Open APIs:

Project Management (1 tool)

  • yapi_get_project - Get project information

Category Management (2 tools)

  • yapi_add_category - Add interface category
  • yapi_get_category_menu - Get category menu list

Interface Management (7 tools)

  • yapi_get_interface - Get interface details
  • yapi_list_interfaces_by_cat - List interfaces by category
  • yapi_add_interface - Add new interface
  • yapi_update_interface - Update interface
  • yapi_get_interface_list - Get interface list
  • yapi_update_interface_basic - Update interface basic info
  • yapi_get_interface_cat_list - Get interface menu tree

Data Import (1 tool)

  • yapi_import_data - Import data (Swagger, HAR, Postman, etc.)

📖 Usage Examples

Once configured, you can interact with YAPI using natural language:

  • "Show me the details of project 123"
  • "List all categories in project 456"
  • "Get the interface with ID 789"
  • "Add a new category called 'User Management' to project 123"
  • "Import this Swagger file to project 456"

🔧 Alternative Configuration Methods

Method 1: Using Environment Variables

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

Method 2: Local Development

For development or debugging:

git clone https://github.com/criller/yapi-mcp-server.git
cd yapi-mcp-server
npm install
cp .env.example .env
# Edit .env and set your YAPI_BASE_URL and YAPI_TOKEN
npm run dev

Then configure Claude Desktop:

{
  "mcpServers": {
    "yapi": {
      "command": "node",
      "args": ["/absolute/path/to/yapi-mcp-server/dist/index.js"],
      "env": {
        "YAPI_BASE_URL": "http://your-yapi-server.com",
        "YAPI_TOKEN": "your-token"
      }
    }
  }
}

🛠️ Development

Type Check

npm run typecheck

Build

npm run build

Testing with MCP Inspector

npx @modelcontextprotocol/inspector npx -y criller-yapi-mcp-server

📁 Project Structure

yapi-mcp-server/
├── src/
│   ├── index.ts              # MCP Server entry point
│   ├── config.ts             # Configuration management
│   ├── types.ts              # TypeScript types
│   ├── yapi-client.ts        # YAPI API client
│   └── tools/                # MCP tools
│       ├── project-tools.ts  # Project management
│       ├── category-tools.ts # Category management
│       ├── interface-tools.ts# Interface management
│       └── import-tools.ts   # Data import
├── package.json
├── tsconfig.json
└── README.md

🤝 Contributing

Contributions are welcome! Please check CONTRIBUTING.md for details.

📄 License

MIT