home / mcp / apifox mcp server
Apifox MCP Server是一个MCP工具,它使 AI 助手能够直接、实时地解析 Apifox 中的 API 定义,从而实现 TypeScript 类型、接口和调用函数的自动化生成
Configuration
View docs{
"mcpServers": {
"juzisuan965-apifox-mcp": {
"command": "npx",
"args": [
"@juzi965/apifox-mcp-server"
],
"env": {
"APIFOX_AUTH": "..."
}
}
}
}You can bridge AI assistants with Apifox API data using a Stdio-based MCP server. This server lets your AI tools access API endpoint details defined in Apifox in real time, enabling accurate code generation and faster integration.
Install and run the MCP server alongside your AI tooling. You will connect your MCP client to this server to request API endpoint information, including methods, headers, parameters, and response schemas. Use the server to fetch endpoint specifications on demand and integrate them into your AI-driven workflows, such as generating client code, validating requests, or documenting API usage.
Prerequisites you need before starting are Node.js and npm. Ensure you have a working Node environment on your machine.
# If you don’t have Node.js and npm installed, install them from https://nodejs.org/
# Check versions
node -v
npm -vTo use the Apifox MCP Server, configure it as a stdio MCP server. The server runs via npx and requires an Apifox authentication token.
If you encounter communication difficulties, remember that this MCP server uses standard input/output. Use a debugging tool or inspector to monitor the data exchange during development.
Maintain your authentication token securely and refresh it as needed to keep API access uninterrupted.
Fetches the full API endpoint definition from Apifox, including HTTP method, headers, parameters, and response schema.