Skip to content
MCP server

HAPI MCP Server

HAPI MCP server: Dynamically exposes OpenAPI REST APIs as MCP tools for AI assistants

Install
Pricing
Open source
Runs
Remotely
Version
0.6.0
Listing updated
5 days ago

About HAPI MCP Server

HAPI MCP Server is an open-source MCP server. It runs as a hosted remote server, so there is nothing to install locally.

Install

Run in a terminal

claude mcp add hapi-mcp -- docker run -i --rm docker.io/hapimcp/hapi-cli:0.6.0

Add to claude_desktop_config.json

{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "hapi-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}

Configuration

  • HAPI_FQDNFully Qualified Domain Name for the HAPI server (used in MCP tool URLs)
  • HAPI_HOMEDirectory path for HAPI configuration and specs. Should be mounted as a volume in Docker
  • PROJECT_NAMEThe name of the project/API (alternative to positional argument)
  • HAPI_OPENAPIOpenAPI spec URL or path (alternative to --openapi flag)
  • HAPI_URLBackend API base URL (alternative to --url flag)
  • HAPI_PORTServer port (alternative to --port flag) - this is the internal container port
  • HAPI_HEADLESSEnable headless mode (alternative to --headless flag)
  • HAPI_MCPEnable MCP mode (alternative to --mcp flag)
  • HAPI_DEVEnable development mode (alternative to --dev flag)
  • HAPI_CORSComma-separated allowed CORS origins (alternative to --cors flag)
  • HAPI_CONFIG_FILESComma-separated configuration files (alternative to --filename flag)
  • NODE_ENVNode environment (development, production). 'development' enables verbose logging and debugging features.

Pricing

Open source

Prices change. Check docs.mcp.com.ai before you buy.

HAPI MCP Server FAQ

Is HAPI MCP Server free?

Yes. HAPI MCP Server is open source, so you can use and self-host it for free.

How do I add HAPI MCP Server to Claude Code?

Run this command in your terminal: claude mcp add hapi-mcp -- docker run -i --rm docker.io/hapimcp/hapi-cli:0.6.0