Apifox

v1.0.0Developer Toolsstable

Apifox MCP 服务器 - 让 Claude 等 AI 助手通过自然语言管理你的 Apifox 项目,轻松创建、更新和审计 API 接口

ai-toolsapi-documentationapifoxdockermcp
Share:
32
Stars
0
Downloads
0
Weekly
0/5

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

Manage API projects
Create and audit interfaces
Document API endpoints
iwen-conf

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 17, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @wangmhaha/apifox-mcp-server

Manual Installation

npx -y @wangmhaha/apifox-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-mcp
2

Install dependencies

Install Python dependencies using uv (recommended) or pip.

# Using uv (recommended)
uv sync

# Using pip
pip install mcp[cli] requests
3

Gather 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.

4

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"
      }
    }
  }
}
5

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.main

Apifox 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.

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.

Quick Config Preview

{ "mcpServers": { "apifox": { "command": "npx", "args": ["-y", "@wangmhaha/apifox-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides