tiandashu/yapi-mcp-server
If you are the rightful owner of yapi-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This is a Model Context Protocol (MCP) server designed for integration with the YApi interface management platform, supporting automatic generation of TypeScript type definitions, Mock data, and API request code.
Tools
Functions exposed to the LLM to take actions
yapi_workflow
A recommended tool for automating the entire workflow from configuration to code generation.
read_config
Reads the configuration file from the project directory.
get_yapi_data
Fetches complete interface information from the YApi project.
generate_types
Generates TypeScript type definitions from API response schemas.
generate_mock_from_yapi
Generates Mock data based on API response schemas.
generate_api_code
Generates API request code using Axios or Fetch.
save_yapi_files
Saves the generated files to the specified project directory.
Prompts
Interactive templates invoked by user choice
No prompts
Resources
Contextual data attached and managed by the client