Skip to main content

HAPI MCP Server

ai.com.mcp/hapi-mcp

v0.6.0Updated Jan 7, 2026local · Dockerremote · http

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

Install

Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add --transport http hapi-mcp 'https://<your-hapi-fqdn>:<your-hapi-port>/mcp'

Configuration

26 settings.

  • -p
    Argument· required
    Port mapping for the host to container (e.g., '3030:3030'). Adjust second port if changing internal container port (HAPI_PORT)Default: 3030:3030
  • serve
    Argument· required
    Command to start the HAPI MCP serverDefault: serve
  • HAPI_FQDN
    Env var· optional
    Fully Qualified Domain Name for the HAPI server (used in MCP tool URLs)Default: localhost
  • HAPI_HOME
    Env var· optional
    Directory path for HAPI configuration and specs. Should be mounted as a volume in DockerDefault: /app/.hapi
  • PROJECT_NAME
    Env var· optional
    The name of the project/API (alternative to positional argument)
  • HAPI_OPENAPI
    Env var· optional
    OpenAPI spec URL or path (alternative to --openapi flag)
Show 20 more
  • HAPI_URL
    Env var· optional
    Backend API base URL (alternative to --url flag)
  • HAPI_PORT
    Env var· optional
    Server port (alternative to --port flag) - this is the internal container portDefault: 3030
  • HAPI_HEADLESS
    Env var· optional
    Enable headless mode (alternative to --headless flag)Default: true
  • HAPI_MCP
    Env var· optional
    Enable MCP mode (alternative to --mcp flag)Default: true
  • HAPI_DEV
    Env var· optional
    Enable development mode (alternative to --dev flag)
  • HAPI_CORS
    Env var· optional
    Comma-separated allowed CORS origins (alternative to --cors flag)
  • HAPI_CONFIG_FILES
    Env var· optional
    Comma-separated configuration files (alternative to --filename flag)
  • NODE_ENV
    Env var· optional
    Node environment (development, production). 'development' enables verbose logging and debugging features.Default: production
  • -v
    Argument· optional
    Volume mapping for HAPI configuration directoryDefault: ~/.hapi:/app/.hapi
  • projectName
    Argument· optional
    The name of the project/API to serve (e.g., 'petstore'). Optional when using HAPI_OPENAPI environment variable
  • --port
    Argument· optional
    The port to listen on inside the containerDefault: 3030
  • --headless
    Argument· optional
    Run in headless mode (serve MCP-only, no business logic)Default: true
  • --mcp
    Argument· optional
    The server provides REST API's business logic AND also exposes them as MCP toolsDefault: true
  • --dev
    Argument· optional
    Enable development mode with verbose logging
  • --url
    Argument· optional
    The full URL for the backend API server (overrides OpenAPI spec servers). Uses OAS server URL if not provided
  • --openapi
    Argument· optional
    OpenAPI spec file path or URL to use instead of loading from HAPI_HOME
  • --cors
    Argument· optional
    Comma-separated list of allowed origins for CORS (e.g., 'http://localhost:3000,https://example.com')
  • --filename
    Argument· optional
    Comma-separated list of OAS configuration files to apply (can be URLs)
  • --cert
    Argument· optional
    Path to SSL certificate file for HTTPS. Volume mount required if using Docker. https://docs.mcp.com.ai/components/hapi-server/hapi-cli#running-with-tls-https
  • --key
    Argument· optional
    Path to SSL key file for HTTPS. Volume mount required if using Docker

Listed in the official MCP Registry since Jan 7, 2026. Mirrored daily; last checked Nov 26, 2026.