drio
Open app

ApiFox MCP Server

Source

基于MCP协议的获取ApiFox接口信息的服务

Catalog onlyCatalog onlySTDIO

Overview

ApiFox MCP Server is a server based on the Model Context Protocol (MCP) designed to retrieve and manage ApiFox interface information.

To use ApiFox MCP Server, you can install it via npm and run it with your ApiFox API key and project ID. You can also configure it using environment variables or a JSON configuration file.

  • Supports retrieving ApiFox interface information via MCP protocol. - Provides both HTTP service and CLI command line usage. - Developed in TypeScript for type safety. - Supports environment variable configuration.
  1. Managing and retrieving API information for projects.
  2. Integrating with other services that require API data.
  3. Facilitating development workflows by providing easy access to API information.

Add to your AI client

Use these steps to connect ApiFox MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "apifox-mcp-server-wangmhaha": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apifox-mcp-server-wangmhaha"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "apifox-mcp-server-wangmhaha": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apifox-mcp-server-wangmhaha"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "apifox-mcp-server-wangmhaha": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apifox-mcp-server-wangmhaha"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "apifox-mcp-server-wangmhaha": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apifox-mcp-server-wangmhaha"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "apifox-mcp-server-wangmhaha": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apifox-mcp-server-wangmhaha"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "apifox-mcp-server-wangmhaha": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apifox-mcp-server-wangmhaha"
      ]
    }
  }
}

FAQ

What is the default port for the server?

The default port for the server is 3000.

Can I run the server locally?

Yes! You can run the server locally by installing dependencies and using the provided commands.

Is there a way to configure the server?

Yes! You can configure the server using environment variables or a JSON configuration file.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3706,"uuid":"00815c67-7543-4ce4-afa5-b7cd8789013b","name":"apifox-mcp-server","title":"ApiFox MCP Server","description":"基于MCP协议的获取ApiFox接口信息的服务","avatar_url":"https://avatars.githubusercontent.com/u/23375506?v=4","created_at":"2025-03-21T06:36:56.479Z","updated_at":"2025-03-21T07:19:37.850Z","status":"created","author_name":"wangmhaha","author_avatar_url":"https://avatars.githubusercontent.com/u/23375506?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/wangmhaha/apifox-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-03 14:52:45\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]