MCP directory
HM

HAPI MCP Server

by mcp.com.ai · v0.6.0 · updated Jan 7, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

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

Environment variables

  • HAPI_FQDN

    Fully Qualified Domain Name for the HAPI server (used in MCP tool URLs)

  • HAPI_HOME

    Directory path for HAPI configuration and specs. Should be mounted as a volume in Docker

  • PROJECT_NAME

    The name of the project/API (alternative to positional argument)

  • HAPI_OPENAPI

    OpenAPI spec URL or path (alternative to --openapi flag)

  • HAPI_URL

    Backend API base URL (alternative to --url flag)

  • HAPI_PORT

    Server port (alternative to --port flag) - this is the internal container port

  • HAPI_HEADLESS

    Enable headless mode (alternative to --headless flag)

  • HAPI_MCP

    Enable MCP mode (alternative to --mcp flag)

  • HAPI_DEV

    Enable development mode (alternative to --dev flag)

  • HAPI_CORS

    Comma-separated allowed CORS origins (alternative to --cors flag)

  • HAPI_CONFIG_FILES

    Comma-separated configuration files (alternative to --filename flag)

  • NODE_ENV

    Node environment (development, production). 'development' enables verbose logging and debugging features.

More from mcp.com.ai

More MCP servers