Apifox MCP Server
Overview
Apifox Mcp Server is a tool designed for managing APIs, allowing developers to create, test, and collaborate on API projects efficiently.
To use Apifox Mcp Server, you need to create an Access Token in the Apifox client, configure it in different MCP Clients, and then implement APIs based on the provided OpenAPI definitions.
- Easy API management and collaboration - Integration with various clients like Cursor and Cline - Support for NestJS and TypeScript for backend development
- Developing and testing APIs in a collaborative environment.
- Implementing APIs based on OpenAPI definitions.
- Managing API projects with multiple clients.
Add to your AI client
Use these steps to connect Apifox MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"apifox-mcp-server-apifox": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-apifox-mcp-server-apifox"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"apifox-mcp-server-apifox": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-apifox-mcp-server-apifox"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"apifox-mcp-server-apifox": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-apifox-mcp-server-apifox"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"apifox-mcp-server-apifox": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-apifox-mcp-server-apifox"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"apifox-mcp-server-apifox": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-apifox-mcp-server-apifox"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"apifox-mcp-server-apifox": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-apifox-mcp-server-apifox"
]
}
}
}FAQ
What are the environment requirements for Apifox Mcp Server?
NodeJS version 18 or higher is required.
Can I use Apifox Mcp Server with any programming language?
Yes, it can be integrated with various programming languages, but examples are provided for NestJS and TypeScript.
Is there a graphical interface for managing APIs?
Yes, Apifox provides a user-friendly interface for managing and testing APIs.