
Apifox MCP Server
Enables AI assistants to fetch and understand API endpoint definitions from Apifox projects in real-time. Supports retrieving complete API specifications including request methods, parameters, headers, and response schemas to improve development efficiency and code generation quality.
README
Apifox MCP Server
一个基于 Stdio 实现的模型上下文协议 (Model Context Protocol) 服务器,旨在无缝桥接 AI 助手与 Apifox 平台的 API 数据。
允许 AI 助手通过标准化的协议直接、实时地获取和理解您在 Apifox 项目中定义的 API 接口详情,从而显著提升开发效率和代码生成质量。
✨ 功能特性
工具
get_api_endpoint_info
- 获取 Apifox 的接口定义信息- 请求参数
projectId
: Apifox 项目的唯一标识符。endpointId
: 目标 API 端点的唯一标识符。
- 返回数据
- 一个结构化的 JSON 对象,包含完整的 API 规约 (Specification),例如:
- HTTP 请求方法 (Method)
- 求头 (Request Headers)
- 路径、查询及请求体参数 (Parameters: Path, Query, Body)
- 响应体结构 (Response Body Schema)
- 响应头 (Response Headers)
- 一个结构化的 JSON 对象,包含完整的 API 规约 (Specification),例如:
- 请求参数
🚀 安装配置
要在 Cursor 中使用此服务器,请添加以下服务器配置:
{
"mcpServers": {
"Apifox-MCP": {
"command": "npx",
"args": ["@juzi965/apifox-mcp-server"],
"env": {
"APIFOX_AUTH": "..."
}
}
}
}
环境变量
该服务器需要以下环境变量:
APIFOX_AUTH
: Apifox 的认证令牌
💡 使用方法
<img width="337" alt="image" src="https://github.com/user-attachments/assets/9688b499-7774-4f06-bfa0-d4f80412156e" />
复制协作链接到 Cursor 中,让它帮你完成
- 入参的 TS 类型定义
- 出参的 TS 类型定义
- 接口调用方法的定义 <img width="1264" alt="Xnip2025-06-19_14-30-13" src="https://github.com/user-attachments/assets/801002bb-c529-47e7-b52c-a6f909bbcd10" />
🛠️ 调试
由于 MCP 服务器通过标准输入输出(stdio)通信,调试可能比较困难。我们推荐使用MCP Inspector,可通过以下命令启动:
npm run inspector
Inspector 将提供一个 URL,可在浏览器中访问调试工具。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.