protogrid

Search / ai.com.mcp/hapi-mcp

HAPI MCP Server

L0· runs locally

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

v0.6.0 · active · repository · website · descriptor JSON · versions

Runs on your machine: something must execute the package.Only local packages are published (npm, PyPI, OCI, …). The registry never executes them, so tools are unknown until you run it.
Quality–not scored
Trust76of 100
Packages1
Tools seen0

Connect

8 clients · secrets stay placeholders
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "-p",
        "3030:3030",
        "-v",
        "~/.hapi:/app/.hapi",
        "-e",
        "HAPI_FQDN",
        "-e",
        "HAPI_HOME",
        "-e",
        "HAPI_PORT",
        "-e",
        "HAPI_HEADLESS",
        "-e",
        "HAPI_MCP",
        "-e",
        "NODE_ENV",
        "docker.io/hapimcp/hapi-cli:0.6.0",
        "serve",
        "--port",
        "3030",
        "--headless",
        "true",
        "--mcp",
        "true",
        "--dev",
        "--url",
        "--openapi",
        "--cors",
        "--filename",
        "--cert",
        "--key"
      ],
      "env": {
        "HAPI_FQDN": "localhost",
        "HAPI_HOME": "/app/.hapi",
        "HAPI_PORT": "3030",
        "HAPI_HEADLESS": "true",
        "HAPI_MCP": "true",
        "NODE_ENV": "production"
      }
    }
  }
}
claude mcp add hapi-mcp -e "HAPI_FQDN=localhost" -e "HAPI_HOME=/app/.hapi" -e "HAPI_PORT=3030" -e "HAPI_HEADLESS=true" -e "HAPI_MCP=true" -e "NODE_ENV=production" -- docker -p 3030:3030 -v ~/.hapi:/app/.hapi -e HAPI_FQDN -e HAPI_HOME -e HAPI_PORT -e HAPI_HEADLESS -e HAPI_MCP -e NODE_ENV docker.io/hapimcp/hapi-cli:0.6.0 serve --port 3030 --headless true --mcp true --dev --url --openapi --cors --filename --cert --key
[mcp_servers.hapi-mcp]
command = "docker"
args = ["-p", "3030:3030", "-v", "~/.hapi:/app/.hapi", "-e", "HAPI_FQDN", "-e", "HAPI_HOME", "-e", "HAPI_PORT", "-e", "HAPI_HEADLESS", "-e", "HAPI_MCP", "-e", "NODE_ENV", "docker.io/hapimcp/hapi-cli:0.6.0", "serve", "--port", "3030", "--headless", "true", "--mcp", "true", "--dev", "--url", "--openapi", "--cors", "--filename", "--cert", "--key"]
env = { "HAPI_FQDN" = "localhost", "HAPI_HOME" = "/app/.hapi", "HAPI_PORT" = "3030", "HAPI_HEADLESS" = "true", "HAPI_MCP" = "true", "NODE_ENV" = "production" }
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "hapi-mcp": {
      "type": "local",
      "command": [
        "docker",
        "-p",
        "3030:3030",
        "-v",
        "~/.hapi:/app/.hapi",
        "-e",
        "HAPI_FQDN",
        "-e",
        "HAPI_HOME",
        "-e",
        "HAPI_PORT",
        "-e",
        "HAPI_HEADLESS",
        "-e",
        "HAPI_MCP",
        "-e",
        "NODE_ENV",
        "docker.io/hapimcp/hapi-cli:0.6.0",
        "serve",
        "--port",
        "3030",
        "--headless",
        "true",
        "--mcp",
        "true",
        "--dev",
        "--url",
        "--openapi",
        "--cors",
        "--filename",
        "--cert",
        "--key"
      ],
      "enabled": true,
      "environment": {
        "HAPI_FQDN": "localhost",
        "HAPI_HOME": "/app/.hapi",
        "HAPI_PORT": "3030",
        "HAPI_HEADLESS": "true",
        "HAPI_MCP": "true",
        "NODE_ENV": "production"
      }
    }
  }
}
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "-p",
        "3030:3030",
        "-v",
        "~/.hapi:/app/.hapi",
        "-e",
        "HAPI_FQDN",
        "-e",
        "HAPI_HOME",
        "-e",
        "HAPI_PORT",
        "-e",
        "HAPI_HEADLESS",
        "-e",
        "HAPI_MCP",
        "-e",
        "NODE_ENV",
        "docker.io/hapimcp/hapi-cli:0.6.0",
        "serve",
        "--port",
        "3030",
        "--headless",
        "true",
        "--mcp",
        "true",
        "--dev",
        "--url",
        "--openapi",
        "--cors",
        "--filename",
        "--cert",
        "--key"
      ],
      "env": {
        "HAPI_FQDN": "localhost",
        "HAPI_HOME": "/app/.hapi",
        "HAPI_PORT": "3030",
        "HAPI_HEADLESS": "true",
        "HAPI_MCP": "true",
        "NODE_ENV": "production"
      }
    }
  },
  "deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=hapi-mcp&config=eyJjb21tYW5kIjoiZG9ja2VyIiwiYXJncyI6WyItcCIsIjMwMzA6MzAzMCIsIi12Iiwifi8uaGFwaTovYXBwLy5oYXBpIiwiLWUiLCJIQVBJX0ZRRE4iLCItZSIsIkhBUElfSE9NRSIsIi1lIiwiSEFQSV9QT1JUIiwiLWUiLCJIQVBJX0hFQURMRVNTIiwiLWUiLCJIQVBJX01DUCIsIi1lIiwiTk9ERV9FTlYiLCJkb2NrZXIuaW8vaGFwaW1jcC9oYXBpLWNsaTowLjYuMCIsInNlcnZlIiwiLS1wb3J0IiwiMzAzMCIsIi0taGVhZGxlc3MiLCJ0cnVlIiwiLS1tY3AiLCJ0cnVlIiwiLS1kZXYiLCItLXVybCIsIi0tb3BlbmFwaSIsIi0tY29ycyIsIi0tZmlsZW5hbWUiLCItLWNlcnQiLCItLWtleSJdLCJlbnYiOnsiSEFQSV9GUUROIjoibG9jYWxob3N0IiwiSEFQSV9IT01FIjoiL2FwcC8uaGFwaSIsIkhBUElfUE9SVCI6IjMwMzAiLCJIQVBJX0hFQURMRVNTIjoidHJ1ZSIsIkhBUElfTUNQIjoidHJ1ZSIsIk5PREVfRU5WIjoicHJvZHVjdGlvbiJ9fQ%3D%3D"
}
{
  "servers": {
    "hapi-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "-p",
        "3030:3030",
        "-v",
        "~/.hapi:/app/.hapi",
        "-e",
        "HAPI_FQDN",
        "-e",
        "HAPI_HOME",
        "-e",
        "HAPI_PORT",
        "-e",
        "HAPI_HEADLESS",
        "-e",
        "HAPI_MCP",
        "-e",
        "NODE_ENV",
        "docker.io/hapimcp/hapi-cli:0.6.0",
        "serve",
        "--port",
        "3030",
        "--headless",
        "true",
        "--mcp",
        "true",
        "--dev",
        "--url",
        "--openapi",
        "--cors",
        "--filename",
        "--cert",
        "--key"
      ],
      "env": {
        "HAPI_FQDN": "localhost",
        "HAPI_HOME": "/app/.hapi",
        "HAPI_PORT": "3030",
        "HAPI_HEADLESS": "true",
        "HAPI_MCP": "true",
        "NODE_ENV": "production"
      }
    }
  }
}
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "-p",
        "3030:3030",
        "-v",
        "~/.hapi:/app/.hapi",
        "-e",
        "HAPI_FQDN",
        "-e",
        "HAPI_HOME",
        "-e",
        "HAPI_PORT",
        "-e",
        "HAPI_HEADLESS",
        "-e",
        "HAPI_MCP",
        "-e",
        "NODE_ENV",
        "docker.io/hapimcp/hapi-cli:0.6.0",
        "serve",
        "--port",
        "3030",
        "--headless",
        "true",
        "--mcp",
        "true",
        "--dev",
        "--url",
        "--openapi",
        "--cors",
        "--filename",
        "--cert",
        "--key"
      ],
      "env": {
        "HAPI_FQDN": "localhost",
        "HAPI_HOME": "/app/.hapi",
        "HAPI_PORT": "3030",
        "HAPI_HEADLESS": "true",
        "HAPI_MCP": "true",
        "NODE_ENV": "production"
      }
    }
  }
}
extensions:
  "hapi-mcp":
    enabled: true
    name: "hapi-mcp"
    type: stdio
    cmd: "docker"
    args:
      - "-p"
      - "3030:3030"
      - "-v"
      - "~/.hapi:/app/.hapi"
      - "-e"
      - "HAPI_FQDN"
      - "-e"
      - "HAPI_HOME"
      - "-e"
      - "HAPI_PORT"
      - "-e"
      - "HAPI_HEADLESS"
      - "-e"
      - "HAPI_MCP"
      - "-e"
      - "NODE_ENV"
      - "docker.io/hapimcp/hapi-cli:0.6.0"
      - "serve"
      - "--port"
      - "3030"
      - "--headless"
      - "true"
      - "--mcp"
      - "true"
      - "--dev"
      - "--url"
      - "--openapi"
      - "--cors"
      - "--filename"
      - "--cert"
      - "--key"
    envs:
      "HAPI_FQDN": "localhost"
      "HAPI_HOME": "/app/.hapi"
      "HAPI_PORT": "3030"
      "HAPI_HEADLESS": "true"
      "HAPI_MCP": "true"
      "NODE_ENV": "production"
    timeout: 300

This is a local package: the command runs on your machine.

Quality – / 100not scored

Not scored: fewer than three checks apply, usually because no remote answered a credential-free probe or the server is a local package.

protocoln/a · weight 25
  • n/a
    protocol.modern, protocol.stateless, protocol.transport, protocol.list_ttlno remote answered a protocol handshake (not probed yet, unreachable, or local-only)
authorizationn/a · weight 15
  • n/a
    auth.prm, auth.as_metadata, auth.cimdno remote uses OAuth
  • n/a
    auth.secret_in_urlno templated URL
tool hygienen/a · weight 30
  • n/a
    tools.descriptions, tools.description_length, tools.schemas, tools.annotations, tools.directory_hints, tools.token_cost, tools.api_dumptool list unknown (behind auth, not probed, or empty)
stabilityn/a · weight 15
  • n/a
    stability.changes, stability.rug_pulltool list unknown
dependenciesn/a · weight 15
  • n/a
    deps.known_vulns, deps.mcp_sdk_version, deps.resolvableno npm or PyPI package

Tool list unknown · checked 2026-10-20 11:08 UTC

Tool changes

No tool definition changes recorded. A server's first observation is its baseline; later probes record what changes.

Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.

Trust 76 / 100

provenance85
livenessn/a
freshness45
hygiene95

+repository +dns-namespace +website ~liveness-unmeasured -stale-286d -unpinned-packages(1)

Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.

Endpoints

packageregistryversionruntimesecrets
docker.io/hapimcp/hapi-cli:0.6.0ociunpinneddocker

Tools (0)

No tools observed. Local packages are never executed by the registry.

Schemas: list_tools.

Similar MCP servers

More from ai.com.mcp

And 2 more from this publisher.

Official server.json
{
  "name": "ai.com.mcp/hapi-mcp",
  "_meta": {
    "io.modelcontextprotocol.registry/publisher-provided": {
      "license": "MIT",
      "examples": [
        {
          "name": "Quick Start with a local API spec",
          "command": "docker run -p 3030:3030 -v ~/.hapi:/app/.hapi hapimcp/hapi-cli:0.6.0 serve petstore --port 3030 --headless --url https://petstore3.swagger.io/api/v3",
          "description": "Save specs in ~/.hapi/specs. Download example if not present: https://petstore3.swagger.io/api/v3/swagger.json"
        },
        {
          "name": "Custom OpenAPI with Environment Variables",
          "command": "docker run -p 3030:3030 -e HAPI_OPENAPI=https://api.example.com/openapi.json -e HAPI_URL=https://api.example.com hapimcp/hapi-cli:0.6.0 serve my-api --headless",
          "description": "Serve a custom API using environment variables"
        },
        {
          "name": "Docker Compose Setup",
          "config": "See https://docs.mcp.com.ai/deployment/docker#docker-compose-example",
          "description": "Run with persistent volumes and custom specs"
        }
      ],
      "keywords": [
        "openapi",
        "rest-api",
        "api-first",
        "headless",
        "docker"
      ],
      "publisher": "La Rebelion Labs",
      "documentation": "https://docs.mcp.com.ai/deployment/docker"
    }
  },
  "title": "HAPI MCP Server",
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "remotes": [
    {
      "url": "https://{HAPI_FQDN}:{HAPI_PORT}/mcp",
      "type": "streamable-http",
      "variables": {
        "HAPI_FQDN": {
          "format": "string",
          "default": "localhost",
          "description": "Fully Qualified Domain Name for the HAPI server"
        },
        "HAPI_PORT": {
          "format": "number",
          "default": "3030",
          "description": "Port for the HAPI server"
        }
      }
    }
  ],
  "version": "0.6.0",
  "packages": [
    {
      "transport": {
        "url": "https://{HAPI_FQDN}:{HAPI_PORT}/mcp",
        "type": "streamable-http",
        "headers": [
          {
            "name": "Authorization",
            "format": "string",
            "isSecret": true,
            "description": "Authorization token for accessing the MCP server"
          }
        ]
      },
      "identifier": "docker.io/hapimcp/hapi-cli:0.6.0",
      "runtimeHint": "docker",
      "registryType": "oci",
      "packageArguments": [
        {
          "name": "serve",
          "type": "positional",
          "format": "string",
          "default": "serve",
          "valueHint": "serve",
          "isRequired": true,
          "description": "Command to start the HAPI MCP server"
        },
        {
          "name": "projectName",
          "type": "positional",
          "format": "string",
          "valueHint": "petstore",
          "description": "The name of the project/API to serve (e.g., 'petstore'). Optional when using HAPI_OPENAPI environment variable"
        },
        {
          "name": "--port",
          "type": "named",
          "format": "number",
          "default": "3030",
          "valueHint": "port",
          "description": "The port to listen on inside the container"
        },
        {
          "name": "--headless",
          "type": "named",
          "format": "boolean",
          "default": "true",
          "description": "Run in headless mode (serve MCP-only, no business logic)"
        },
        {
          "name": "--mcp",
          "type": "named",
          "format": "boolean",
          "default": "true",
          "description": "The server provides REST API's business logic AND also exposes them as MCP tools"
        },
        {
          "name": "--dev",
          "type": "named",
          "format": "boolean",
          "description": "Enable development mode with verbose logging"
        },
        {
          "name": "--url",
          "type": "named",
          "format": "string",
          "valueHint": "url",
          "description": "The full URL for the backend API server (overrides OpenAPI spec servers). Uses OAS server URL if not provided"
        },
        {
          "name": "--openapi",
          "type": "named",
          "format": "string",
          "valueHint": "openapi",
          "description": "OpenAPI spec file path or URL to use instead of loading from HAPI_HOME"
        },
        {
          "name": "--cors",
          "type": "named",
          "format": "string",
          "valueHint": "origins",
          "description": "Comma-separated list of allowed origins for CORS (e.g., 'http://localhost:3000,https://example.com')"
        },
        {
          "name": "--filename",
          "type": "named",
          "format": "string",
          "valueHint": "files",
          "description": "Comma-separated list of OAS configuration files to apply (can be URLs)"
        },
        {
          "name": "--cert",
          "type": "named",
          "format": "string",
          "valueHint": "path",
          "description": "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"
        },
        {
          "name": "--key",
          "type": "named",
          "format": "string",
          "valueHint": "path",
          "description": "Path to SSL key file for HTTPS. Volume mount required if using Docker"
        }
      ],
      "runtimeArguments": [
        {
          "name": "-p",
          "type": "named",
          "format": "string",
          "default": "3030:3030",
          "valueHint": "port",
          "isRequired": true,
          "description": "Port mapping for the host to container (e.g., '3030:3030'). Adjust second port if changing internal container port (HAPI_PORT)"
        },
        {
          "name": "-v",
          "type": "named",
          "format": "string",
          "default": "~/.hapi:/app/.hapi",
          "valueHint": "volume",
          "isRepeated": true,
          "description": "Volume mapping for HAPI configuration directory"
        }
      ],
      "environmentVariables": [
        {
          "name": "HAPI_FQDN",
          "format": "string",
          "default": "localhost",
          "description": "Fully Qualified Domain Name for the HAPI server (used in MCP tool URLs)"
        },
        {
          "name": "HAPI_HOME",
          "format": "string",
          "default": "/app/.hapi",
          "description": "Directory path for HAPI configuration and specs. Should be mounted as a volume in Docker"
        },
        {
          "name": "PROJECT_NAME",
          "format": "string",
          "description": "The name of the project/API (alternative to positional argument)"
        },
        {
          "name": "HAPI_OPENAPI",
          "format": "string",
          "description": "OpenAPI spec URL or path (alternative to --openapi flag)"
        },
        {
          "name": "HAPI_URL",
          "format": "string",
          "description": "Backend API base URL (alternative to --url flag)"
        },
        {
          "name": "HAPI_PORT",
          "format": "number",
          "default": "3030",
          "description": "Server port (alternative to --port flag) - this is the internal container port"
        },
        {
          "name": "HAPI_HEADLESS",
          "format": "boolean",
          "default": "true",
          "description": "Enable headless mode (alternative to --headless flag)"
        },
        {
          "name": "HAPI_MCP",
          "format": "boolean",
          "default": "true",
          "description": "Enable MCP mode (alternative to --mcp flag)"
        },
        {
          "name": "HAPI_DEV",
          "format": "boolean",
          "description": "Enable development mode (alternative to --dev flag)"
        },
        {
          "name": "HAPI_CORS",
          "format": "string",
          "description": "Comma-separated allowed CORS origins (alternative to --cors flag)"
        },
        {
          "name": "HAPI_CONFIG_FILES",
          "format": "string",
          "description": "Comma-separated configuration files (alternative to --filename flag)"
        },
        {
          "name": "NODE_ENV",
          "format": "string",
          "default": "production",
          "description": "Node environment (development, production). 'development' enables verbose logging and debugging features."
        }
      ]
    }
  ],
  "repository": {
    "url": "https://github.com/larebelion/hapimcp",
    "source": "github"
  },
  "websiteUrl": "https://docs.mcp.com.ai/components/hapi-server/hapi-cli",
  "description": "HAPI MCP server: Dynamically exposes OpenAPI REST APIs as MCP tools for AI assistants"
}