Provides access to ApiFox API interface information through the MCP protocol, allowing retrieval and management of API specifications from ApiFox projects.
ApiFox MCP Server
这是一个基于 Model Context Protocol (MCP) 的 ApiFox 接口服务器,用于获取和管理 ApiFox 的接口信息。通过在 Cursor 中配置 MCP 服务,获取对应接口模块信息返回给大模型,让 Cursor 通过接口信息帮助你实现业务逻辑。
功能特点
- 支持通过 MCP 协议获取 ApiFox 接口信息
- 提供 HTTP 服务和 CLI 命令行两种使用方式
- 使用 TypeScript 开发,提供类型安全
- 支持环境变量配置
快速安装使用
配置 cursor 通过 sse 连接到 MCP 服务器
服务器将在配置的端口上启动(默认 3000)。
推荐通过使用配置文件 JSON 配置
可以通过在 cursor mcp 配置文件中添加以下内容来配置 apifox-mcp-server 服务器:
或者从本地源运行
拉取代码安装依赖
打包
运行
配置:
也可通过 command 模式运行
如在不在 MCP 配置文件中配置 env 环境变量,请在本地环境变量配置
在项目根目录下修改.evn.example
文件为.env
文件,配置以下环境变量:
技术栈
- Node.js
- TypeScript
- Express.js
- Model Context Protocol SDK
- Zod(数据验证)
许可证
ISC License
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A server that enables accessing and managing ApiFox API information through the Model Context Protocol, supporting both HTTP services and CLI commands.
Related MCP Servers
- -securityFlicense-qualityThis server acts as a Message Communication Protocol (MCP) service for integrating Apifox and Cursor, enabling OpenAPI interface implementation through AI-driven interaction.Last updated -7TypeScript
- -securityFlicense-qualityA server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.Last updated -
- AsecurityFlicenseAqualityAn MCP server that integrates Apifox API documentation with AI assistants, allowing AI to extract and understand API information from Apifox projects.Last updated -2560TypeScript
- -securityFlicense-qualityA Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.Last updated -1Python