Apifox MCP Server
Official
by apifox
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Allows integration with Apifox via MCP Server, enabling AI code generation based on Apifox API definitions
Supports generating NestJS code implementations from Apifox API definitions
Enables generating TypeScript code implementations for APIs defined in Apifox
使用 Apifox Mcp Server
环境要求
- NodeJS >= 18
1. 前置准备
在 Apifox 客户端中创建一个Access Token
2. 在 不同的 MCP Client 中配置 Apifox Mcp Server
2.1 Cursor
2.2 Cline
3. 使用 Apifox Mcp Server 以 Cursor 为例
3.1 创建一个空白的 Nestjs 项目
Copy
3.2 打开 Cursor Composer,并切换到 Agent 模式
3.3 复制一个 Apifox 接口的协作链接
3.4 粘贴到 Composer 中,并让其实现接口
Copy
3.5 Cursor Composer 实现完毕,并 Accepted 结果
3.6 启动 Nestjs服务,通过 Apifox 调用AI 写的接口,断言通过
3.7 其他
分页也简单实现了
This server cannot be installed
A server that connects AI coding assistants like Cursor and Cline to Apifox API definitions, allowing developers to implement API interfaces through natural language commands.