ai.com.mcp/hapi-mcp
OfficialHAPI MCP Server
HAPI MCP server: Dynamically exposes OpenAPI REST APIs as MCP tools for AI assistants
Exposes OpenAPI REST APIs as MCP tools for AI assistants to dynamically interact with.
Could not list tools - the server may require authentication or be unreachable.
README not available yet.
Install
Configuration
HAPI_FQDNdefault localhostFully Qualified Domain Name for the HAPI server (used in MCP tool URLs)
HAPI_HOMEdefault /app/.hapiDirectory 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_PORTdefault 3030Server port (alternative to --port flag) - this is the internal container port
HAPI_HEADLESSdefault trueEnable headless mode (alternative to --headless flag)
HAPI_MCPdefault trueEnable 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_ENVdefault productionNode environment (development, production). 'development' enables verbose logging and debugging features.
-prequireddefault 3030:3030port
-vdefault ~/.hapi:/app/.hapivolume
serverequireddefault serveprojectNamepetstore
--portdefault 3030port
--headlessdefault true--mcpdefault true--dev--urlurl
--openapiopenapi
--corsorigins
--filenamefiles
--certpath
--keypath
claude_desktop_config.json
{
"mcpServers": {
"hapi-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hapimcp/hapi-cli:0.6.0",
"serve",
"<YOUR_PROJECTNAME>",
"--port",
"3030",
"--headless",
"true",
"--mcp",
"true",
"--dev",
"--url",
"--openapi",
"--cors",
"--filename",
"--cert",
"--key"
],
"env": {
"HAPI_FQDN": "localhost",
"HAPI_HOME": "/app/.hapi",
"PROJECT_NAME": "<YOUR_PROJECT_NAME>",
"HAPI_OPENAPI": "<YOUR_HAPI_OPENAPI>",
"HAPI_URL": "<YOUR_HAPI_URL>",
"HAPI_PORT": "3030",
"HAPI_HEADLESS": "true",
"HAPI_MCP": "true",
"HAPI_DEV": "<YOUR_HAPI_DEV>",
"HAPI_CORS": "<YOUR_HAPI_CORS>",
"HAPI_CONFIG_FILES": "<YOUR_HAPI_CONFIG_FILES>",
"NODE_ENV": "production"
}
}
}
}