Back to Home
lianekai icon

mcp-apifox-server

Verified Safe

by lianekai

Overview

Integrates Apifox API management and testing capabilities with MCP-compatible clients, enabling automated OpenAPI synchronization from code and execution of Apifox CLI tests.

Installation

Run Command
npx -y mcp-apifox-server

Environment Variables

  • APIFOX_ACCESS_TOKEN
  • APIFOX_PROJECT_ID
  • APIFOX_API_VERSION
  • APIFOX_API_BASE_URL
  • APIFOX_LOCALE
  • APIFOX_CLI

Security Notes

The server handles sensitive Apifox Access Tokens and Project IDs, which are securely read from environment variables or CLI arguments and are not hardcoded. The `apifox_run_cli_test` tool executes an external `apifox-cli` command. While command arguments are constructed internally, the `cliExecutable` path is configurable; if a user configures this to point to a malicious binary, it poses a significant risk. However, `child_process.spawn` is used, which is generally safer for external command execution as it does not inherently parse shell commands. Code scanning (`controllerScanner.ts`) involves reading and parsing local project files, which is an expected and core functionality handled via TypeScript's AST parser. No direct `eval` or code obfuscation was identified.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens5000
Stars0
Forks0
Last Update2025-11-27

Tags

ApifoxOpenAPIAPI ManagementCode GenerationTest Automation