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.
-pArgument· requiredPort mapping for the host to container (e.g., '3030:3030'). Adjust second port if changing internal container port (HAPI_PORT)Default:3030:3030serveArgument· requiredCommand to start the HAPI MCP serverDefault:serveHAPI_FQDNEnv var· optionalFully Qualified Domain Name for the HAPI server (used in MCP tool URLs)Default:localhostHAPI_HOMEEnv var· optionalDirectory path for HAPI configuration and specs. Should be mounted as a volume in DockerDefault:/app/.hapiPROJECT_NAMEEnv var· optionalThe name of the project/API (alternative to positional argument)HAPI_OPENAPIEnv var· optionalOpenAPI spec URL or path (alternative to --openapi flag)
Show 20 moreShow fewer
HAPI_URLEnv var· optionalBackend API base URL (alternative to --url flag)HAPI_PORTEnv var· optionalServer port (alternative to --port flag) - this is the internal container portDefault:3030HAPI_HEADLESSEnv var· optionalEnable headless mode (alternative to --headless flag)Default:trueHAPI_MCPEnv var· optionalEnable MCP mode (alternative to --mcp flag)Default:trueHAPI_DEVEnv var· optionalEnable development mode (alternative to --dev flag)HAPI_CORSEnv var· optionalComma-separated allowed CORS origins (alternative to --cors flag)HAPI_CONFIG_FILESEnv var· optionalComma-separated configuration files (alternative to --filename flag)NODE_ENVEnv var· optionalNode environment (development, production). 'development' enables verbose logging and debugging features.Default:production-vArgument· optionalVolume mapping for HAPI configuration directoryDefault:~/.hapi:/app/.hapiprojectNameArgument· optionalThe name of the project/API to serve (e.g., 'petstore'). Optional when using HAPI_OPENAPI environment variable--portArgument· optionalThe port to listen on inside the containerDefault:3030--headlessArgument· optionalRun in headless mode (serve MCP-only, no business logic)Default:true--mcpArgument· optionalThe server provides REST API's business logic AND also exposes them as MCP toolsDefault:true--devArgument· optionalEnable development mode with verbose logging--urlArgument· optionalThe full URL for the backend API server (overrides OpenAPI spec servers). Uses OAS server URL if not provided--openapiArgument· optionalOpenAPI spec file path or URL to use instead of loading from HAPI_HOME--corsArgument· optionalComma-separated list of allowed origins for CORS (e.g., 'http://localhost:3000,https://example.com')--filenameArgument· optionalComma-separated list of OAS configuration files to apply (can be URLs)--certArgument· optionalPath 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--keyArgument· optionalPath to SSL key file for HTTPS. Volume mount required if using Docker
Links
Listed in the official MCP Registry since Jan 7, 2026. Mirrored daily; last checked Nov 26, 2026.