MCP Catalogs
首页apifox-mcp screenshot

apifox-mcp

by iwen-conf·33·综合分 43

MCP 服务器,让 AI 助手通过自然语言命令管理 Apifox API 项目

developer-toolsai-llmproductivity
8
Forks
1
活跃 Issue
5 个月前
最近提交
2 天前
收录于

概述

这个 MCP 服务器直接连接 AI 助手与 Apifox API 管理项目,提供全面的 API 端点和模式管理工具,通过自然语言交互实现创建、更新、审计和删除功能。服务器支持 uv 和 pip 安装方式,并能通过 Docker 或本地执行无缝集成到 Claude Desktop。

试试问 AI

装完之后,这里有 6 个你可以让 AI 做的事:

:通过 AI 助手命令自动化更新 Apifox 中的 API 文档
:批量审计 API 响应模式和完整性
:通过对话式 AI 界面直接创建新 API 端点
:如何获取 APIFOX_TOKEN?
:需要什么系统要求?
:我能否将此服务器用于除 Claude 外的 AI 助手?

什么时候选它

如果您已经在使用 Apifox 进行 API 管理,并希望将 AI 助手集成到您的工作流程中用于文档编写和 API 创建,请选择此 MCP 服务器。

什么时候不要选它

如果您需要在 Apifox 之外的 API 管理功能,或担心特定 API 文档平台的供应商锁定问题,请避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • list_api_endpoints

    List all API endpoints in the Apifox project

  • get_api_endpoint_detail

    Get detailed information about a specific API endpoint

  • create_api_endpoint

    Create a new API endpoint in the project

  • update_api_endpoint

    Update an existing API endpoint in the project

  • delete_api_endpoint

    Delete an API endpoint from the project

  • check_api_responses

    Check API responses for completeness and correctness

  • list_schemas

    List all data schemas in the Apifox project

  • get_schema_detail

    Get detailed information about a specific schema

  • create_schema

    Create a new data schema in the project

  • update_schema

    Update an existing data schema in the project

  • list_folders

    List all folders in the Apifox project

  • create_folder

    Create a new folder in the Apifox project

可对比工具

postman-mcpswagger-mcpapi-gateway-mcpopenapi-mcp

安装

安装

  1. **克隆项目**

``bash git clone <repository_url> cd <repository_name> ``

  1. **创建并激活虚拟环境(可选但推荐)**

``bash uv venv # 激活虚拟环境 # Windows .venv\Scripts\activate # macOS/Linux source .venv/bin/activate ``

  1. **安装依赖**

```bash # 使用 uv(推荐用于本地开发) uv sync

# 使用 pip(传统方式) pip install mcp[cli] requests ```

  1. **配置环境变量**

``bash export APIFOX_TOKEN="your_token_here" export APIFOX_PROJECT_ID="your_project_id_here" ``

  1. **运行 MCP 服务器**

``bash uv run python -m apifox_mcp.main # 或 python -m apifox_mcp.main ``

  1. **配置 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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。