Apifox
Apifox MCP 服务器 - 让 Claude 等 AI 助手通过自然语言管理你的 Apifox 项目,轻松创建、更新和审计 API 接口
What is Apifox?
Apifox is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to apifox mcp 服务器 - 让 claude 等 ai 助手通过自然语言管理你的 apifox 项目,轻松创建、更新和审计 api 接口
Apifox MCP 服务器 - 让 Claude 等 AI 助手通过自然语言管理你的 Apifox 项目,轻松创建、更新和审计 API 接口
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Apifox MCP 服务器 - 让 Claude 等 AI 助手通过自然语言管理你的 Apifox 项目,轻松创建、更
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @wangmhaha/apifox-mcp-serverManual Installation
npx -y @wangmhaha/apifox-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Apifox
The Apifox MCP Server connects AI assistants like Claude to the Apifox API design and documentation platform, enabling management of API endpoints, data schemas, folders, and tags through natural language. Using your Apifox Open API token, it can list, create, update, and delete API definitions within a project, and validate endpoint completeness against documentation standards. Teams that use Apifox for API lifecycle management can use this server to speed up documentation tasks and API audits without leaving their AI chat interface.
Prerequisites
- An Apifox account with an active project
- An Apifox Open API token (retrieved from Apifox client → Account Settings → Open API)
- The target project's ID (found in Apifox → Project Settings → Basic Configuration)
- Python 3.9+ with uv or pip, or Docker for containerized deployment
- An MCP-compatible client such as Claude Desktop
Clone the repository
Clone the Apifox MCP server repository and navigate into the project directory.
git clone https://github.com/iwen-conf/apifox-mcp.git
cd apifox-mcpInstall dependencies
Install Python dependencies using uv (recommended) or pip.
# Using uv (recommended)
uv sync
# Using pip
pip install mcp[cli] requestsGather your Apifox credentials
Open the Apifox desktop client, go to Account Settings → Open API to get your token, and go to your project's Settings → Basic Configuration to find the project ID.
Configure Claude Desktop with npm package
The server is also available as an npm package. Add it to your Claude Desktop config with your Apifox token and project ID as environment variables.
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": ["-y", "@wangmhaha/apifox-mcp-server"],
"env": {
"APIFOX_TOKEN": "your-apifox-open-api-token",
"APIFOX_PROJECT_ID": "your-project-id"
}
}
}
}Alternative: run locally with uv
If you prefer running from source rather than the npm package, start the server directly with uv.
APIFOX_TOKEN=your-token APIFOX_PROJECT_ID=your-project-id uv run python -m apifox_mcp.mainApifox Examples
Client configuration
Claude Desktop configuration using the published npm package for the Apifox MCP server.
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": ["-y", "@wangmhaha/apifox-mcp-server"],
"env": {
"APIFOX_TOKEN": "apifox-your-open-api-token",
"APIFOX_PROJECT_ID": "12345678"
}
}
}
}Prompts to try
Example prompts for managing API documentation in Apifox through the MCP server.
- "List all API endpoints in my Apifox project and show me which ones are missing response schemas."
- "Create a new POST endpoint called /users/register with a JSON body containing email and password fields."
- "Run an audit on all APIs in the project and flag any that are missing 4xx error responses."
- "List all data models (schemas) defined in the project."Troubleshooting Apifox
Authentication error: invalid token
Ensure APIFOX_TOKEN is set to your Apifox Open API token, not your account password. Regenerate the token in Apifox → Account Settings → Open API if needed, and update your MCP config.
Project not found or empty results
Verify APIFOX_PROJECT_ID matches the numeric ID shown in your Apifox project settings. Ensure your token belongs to an account that has access to that project.
npx command fails to download the package
Check your npm registry connection. Try running 'npm install -g @wangmhaha/apifox-mcp-server' first, then change the command to 'apifox-mcp-server' in your config.
Frequently Asked Questions about Apifox
What is Apifox?
Apifox is a Model Context Protocol (MCP) server that apifox mcp 服务器 - 让 claude 等 ai 助手通过自然语言管理你的 apifox 项目,轻松创建、更新和审计 api 接口 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Apifox?
Install via npm with the command: npx -y @wangmhaha/apifox-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Apifox?
Apifox works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Apifox free to use?
Yes, Apifox is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Apifox Alternatives — Similar Developer Tools Servers
Looking for alternatives to Apifox? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Apifox in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Apifox?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.