apifox-mcp
by iwen-conf·★ 33·综合分 43
MCP 服务器,让 AI 助手通过自然语言命令管理 Apifox API 项目
概述
这个 MCP 服务器直接连接 AI 助手与 Apifox API 管理项目,提供全面的 API 端点和模式管理工具,通过自然语言交互实现创建、更新、审计和删除功能。服务器支持 uv 和 pip 安装方式,并能通过 Docker 或本地执行无缝集成到 Claude Desktop。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
如果您已经在使用 Apifox 进行 API 管理,并希望将 AI 助手集成到您的工作流程中用于文档编写和 API 创建,请选择此 MCP 服务器。
什么时候不要选它
如果您需要在 Apifox 之外的 API 管理功能,或担心特定 API 文档平台的供应商锁定问题,请避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具list_api_endpointsList all API endpoints in the Apifox project
get_api_endpoint_detailGet detailed information about a specific API endpoint
create_api_endpointCreate a new API endpoint in the project
update_api_endpointUpdate an existing API endpoint in the project
delete_api_endpointDelete an API endpoint from the project
check_api_responsesCheck API responses for completeness and correctness
list_schemasList all data schemas in the Apifox project
get_schema_detailGet detailed information about a specific schema
create_schemaCreate a new data schema in the project
update_schemaUpdate an existing data schema in the project
list_foldersList all folders in the Apifox project
create_folderCreate a new folder in the Apifox project
可对比工具
安装
安装
- **克隆项目**
``bash git clone <repository_url> cd <repository_name> ``
- **创建并激活虚拟环境(可选但推荐)**
``bash uv venv # 激活虚拟环境 # Windows .venv\Scripts\activate # macOS/Linux source .venv/bin/activate ``
- **安装依赖**
```bash # 使用 uv(推荐用于本地开发) uv sync
# 使用 pip(传统方式) pip install mcp[cli] requests ```
- **配置环境变量**
``bash export APIFOX_TOKEN="your_token_here" export APIFOX_PROJECT_ID="your_project_id_here" ``
- **运行 MCP 服务器**
``bash uv run python -m apifox_mcp.main # 或 python -m apifox_mcp.main ``
- **配置 Claude Desktop**
添加到你的 claude_desktop_config.json: ``json { "mcpServers": { "apifox": { "command": "uv", "args": [ "run", "--directory", "/path/to/apifox-mcp", "python", "-m", "apifox_mcp.main" ], "env": { "APIFOX_TOKEN": "your_token_here", "APIFOX_PROJECT_ID": "your_project_id_here" } } } } ``
FAQ
- 如何获取 APIFOX_TOKEN?
- 可以从 Apifox 客户端获取:账号设置 → API 访问令牌
- 需要什么系统要求?
- 需要 Python 3.10+ 和具有 API 访问权限的 Apifox 账户
- 我能否将此服务器用于除 Claude 外的 AI 助手?
- 是的,任何兼容 MCP 的 AI 助手都应该能够连接到此服务器
apifox-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。