Apifox MCP
Allows AI assistants to access and retrieve API documentation from Apifox projects, including extracting project and API IDs from URLs and fetching detailed API specifications in OpenAPI format.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Apifox MCP get API details from https://app.apifox.com/link/project/12345/apis/api-67890"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Apifox MCP
一个用于将 Apifox API 文档与 AI 助手集成的 Model Context Protocol (MCP) 服务器。
概述
本项目为 Apifox(一个 API 开发和测试平台)和支持 Model Context Protocol 的 AI 助手之间提供了桥梁。它允许 AI 助手从 Apifox API 文档中提取信息,使开发过程中理解和使用 API 变得更加容易。
Related MCP server: yapi-mcp-server
功能特点
从 Apifox URL 中提取项目 ID 和 API ID
使用提取的 ID 从 Apifox 获取详细的 API 信息
与支持 MCP 的 AI 助手无缝集成
前提条件
拥有访问令牌的 Apifox 账户
支持 Model Context Protocol 的 AI 助手
安装
# 全局安装
npm install -g mcp-apifox
# 或使用 pnpm
pnpm add -g mcp-apifox配置
方法一
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": [
"-y",
"mcp-apifox@latest"
],
"env": {
"APIFOX_ACCESS_TOKEN": ""
}
}
}
}方法二
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": [
"-y",
"mcp-apifox@latest",
"--token=xxxx"
]
}
}
}使用
通过下面这种协作链接就可以获取接口信息,需要维护者权限
https://app.apifox.com/link/project/${projectId}/apis/api-${apiId}可用工具
1. get-apifox-project-id-and-api-id-from-url
从 Apifox URL 中提取项目 ID 和 API ID。
输入:
text:包含 Apifox URL 或路径的字符串
输出:
包含
projectId和apiId的 JSON 对象
2. get-apifox-api-info
从 Apifox 获取详细的 API 信息。
输入:
projectId:Apifox 项目 IDapiId:Apifox API ID
输出:
请求的 API 的 OpenAPI 规范
Available Tools
2 toolsget_apifox_api_infoC
Get the info of Apifox API.
Inputs: apiId (required), projectId (required).
get_apifox_project_id_and_api_id_from_urlC
Get the project ID and API ID of Apifox from the URL.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one retrieves general API information, while the other extracts specific IDs from a URL. There is no overlap or ambiguity between them.
Both tools follow a consistent verb_noun pattern with 'get_' prefix and snake_case naming, making them predictable and easy to understand.
With only two tools, the server feels thin and under-scoped for an Apifox integration, lacking essential operations like creating, updating, or listing APIs, which limits its utility.
The toolset is severely incomplete for API management; it only provides retrieval and ID extraction, missing core CRUD operations (e.g., create_api, update_api, list_apis) and other typical API lifecycle functions.
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that crawls API documentation websites and exposes their content to AI models, enabling them to search, browse, and reference API specifications.1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables fetching YApi interface details via a tool, allowing AI assistants to generate API code based on YApi documentation.41 npmISC
- AlicenseBqualityCmaintenanceMCP server for executing MySQL SQL, managing Apifox API documentation, and parsing/executing curl commands.611 npmISC
- AlicenseAqualityDmaintenanceMCP server for reading, writing, and organizing API documentation in Apidog.1212 npmMIT