Allows integration with Apifox API testing platform for generating and testing APIs through MCP
Provides access to the MCP demo repository hosted on GitHub
Enables implementing API interfaces defined in Apifox within NestJS projects
Supports TypeScript implementation for API interfaces generated through the MCP integration
环境要求
- NodeJS >= 18
1. 准备 Apifox MCP 服务
1.1 克隆 Apifox MCP 项目
1.2 创建环境变量
1.3 在 Apifox 客户端中创建一个Access Token ,并写入到 .env 文件中
1.4 启动 Apifox MCP 服务
1.5 看到启动成功日志
2. 准备 Cursor
2.1 创建一个空白的 Nestjs 项目
2.2 添加一个 Cursor MCP 配置
从 apifox-mcp-demo
项目中复制 sse 的地址
,填到 Server URL
中。
可以看到MCP 服务连接成功
2.3 打开 Cursor Composer,并切换到 Agent 模式
2.4 复制一个 Apifox 接口的协作链接
2.5 粘贴到 Composer 中,并让其实现接口
2.6 Cursor Composer 实现完毕,并 Accepted 结果
2.7 启动 Nestjs服务,通过 Apifox 调用AI 写的接口,断言通过
3. 其他
分页也简单实现了
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
This server acts as a Message Communication Protocol (MCP) service for integrating Apifox and Cursor, enabling OpenAPI interface implementation through AI-driven interaction.
Related Resources
Related MCP Servers
- -securityAlicense-qualityThis tool creates a Model Context Protocol (MCP) server that acts as a proxy for any API that has an OpenAPI v3.1 specification. This allows you to use Claude Desktop to easily interact with both local and remote server APIs.Last updated -176641JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.Last updated -2PythonMIT License
- -security-license-qualityAn MCP server that integrates Apifox API documentation with AI assistants, allowing AI to extract and understand API information from Apifox projects.Last updated -91TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that loads multiple OpenAPI specifications and exposes them to LLM-powered IDE integrations, enabling AI to understand and work with your APIs directly in development tools like Cursor.Last updated -72927TypeScriptMIT License