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

yapi-mcp

v0.2.1

Published

Model Context Protocol server for yapi integration

Readme

Yapi MCP Server

serve 方式

pnpm install
pnpm run dev

环境配置

在项目根目录创建 .env 文件,并配置以下环境变量:

# YApi配置
YAPI_TOKEN=your_yapi_token_here    # YApi平台的访问令牌
YAPI_COOKIE=your_yapi_cookie_here  # YApi平台的cookie(和 token 二选一,支持私部服务)
YAPI_BASE_URL=your_yapi_base_url_here    # YApi平台的基础URL地址

# 服务器配置
PORT=3334    # MCP服务器监听端口

command 方式

# 配置对应 command
npx yapi-mcp --stdio --yapi-base-url your_yapi_base_url_here --yapi-token your_yapi_token_here

文档

Available Tools

YApi MCP 服务器提供以下工具:

get_api_desc

获取指定的 YApi 接口详细信息。

参数:

  • apiId (string): Yapi的接口ID

get_project_info

获取 YApi 项目的基本信息。

参数:

  • id (string): 项目ID

返回数据:

  • _id: 项目ID
  • name: 项目名称
  • desc: 项目描述
  • cat: 分类列表

get_cat_menu

获取 YApi 项目的菜单列表。

参数:

  • project_id (string): 项目ID

返回数据:

  • 分类列表数组,每个分类包含:
    • _id: 分类ID
    • name: 分类名称
    • desc: 分类描述
    • list: 接口列表

get_cat_interface_list

获取 YApi 中某个分类下的接口列表。

参数:

  • catid (string): 分类ID
  • page (number, 可选): 页码,默认为1
  • limit (number, 可选): 每页数量,默认为10

返回数据:

  • count: 当前页数量
  • total: 总数量
  • list: 接口列表

get_interface_list

获取 YApi 项目的接口列表数据。

参数:

  • project_id (string): 项目ID
  • page (number, 可选): 页码,默认为1
  • limit (number, 可选): 每页数量,默认为10

返回数据:

  • count: 当前页数量
  • total: 总数量
  • list: 接口列表

get_interface_menu

获取 YApi 项目的接口菜单列表。

参数:

  • project_id (string): 项目ID

返回数据:

  • 菜单列表数组,每个菜单包含:
    • _id: 菜单ID
    • name: 菜单名称
    • desc: 菜单描述
    • list: 接口列表

search_projects

搜索 YApi 项目和接口。

参数:

  • q (string): 搜索关键词

返回数据:

  • project: 匹配的项目列表
  • interface: 匹配的接口列表

基础框架参考

https://github.com/GLips/Figma-Context-MCP