让智能体管理 Apifox 中的 API 文档。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add apifox -- npx -y apifox-openapi-mcp@latest --token '你的-APIFOX-TOKEN' --project-id '你的-项目-ID'~/.codex/config.toml
[mcp_servers.apifox]
command = "npx"
args = ["-y", "apifox-openapi-mcp@latest", "--token", "你的-APIFOX-TOKEN", "--project-id", "你的-项目-ID"]
# codex mcp add apifox -- npx -y apifox-openapi-mcp@latest --token '你的-APIFOX-TOKEN' --project-id '你的-项目-ID'~/.cursor/mcp.json
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": [
"-y",
"apifox-openapi-mcp@latest",
"--token",
"你的-APIFOX-TOKEN",
"--project-id",
"你的-项目-ID"
]
}
}
}.vscode/mcp.json
{
"servers": {
"apifox": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"apifox-openapi-mcp@latest",
"--token",
"你的-APIFOX-TOKEN",
"--project-id",
"你的-项目-ID"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": [
"-y",
"apifox-openapi-mcp@latest",
"--token",
"你的-APIFOX-TOKEN",
"--project-id",
"你的-项目-ID"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": [
"-y",
"apifox-openapi-mcp@latest",
"--token",
"你的-APIFOX-TOKEN",
"--project-id",
"你的-项目-ID"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"apifox": {
"command": "npx",
"args": [
"-y",
"apifox-openapi-mcp@latest",
"--token",
"你的-APIFOX-TOKEN",
"--project-id",
"你的-项目-ID"
]
}
}
}