TokenToSeaMCP Hub
中文 Console

Yapi MCP Server

lzsheng

yapi mcp server

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add yapi --env YAPI_BASE_URL='<YAPI_BASE_URL>' --env YAPI_TOKEN='<YAPI_TOKEN>' --env YAPI_CACHE_TTL='<YAPI_CACHE_TTL>' -- node User/xxxx/dist/cli.js --stdio '--yapi-base-url={{config.YAPI_BASE_URL}}' '--yapi-token={{config.YAPI_TOKEN}}' '--yapi-cache-ttl={{config.YAPI_CACHE_TTL}}'

Environment variables

  • YAPI_BASE_URL
  • YAPI_TOKEN
  • YAPI_CACHE_TTL

Replace the placeholders with your own credentials and keep them out of version control.