Sign in
mcp server · mcp.com.ai

HAPI MCP Server

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

What it says

The record the registry holds

Where it answers
https://{HAPI_FQDN}:{HAPI_PORT}/mcp · streamable-http
How you get it

It also ships as a package you run yourself.

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

Draft an Agent Plugin from this

An MCP server is raw capability: some tools, wired to something. An Agent Plugin is the packaging that says what job it does, what it leaves behind and where it stops. The prompt below carries this record and asks for the packaging; your own assistant writes it, and nothing here is sent anywhere.

Make it installable

Draft an Agent Plugin from HAPI MCP Server

Paste it into your assistant. It asks for the manifest, the server wiring and the skills, and for an honest account of what this record does not say. Read that second file first.

342 lines · the record is inside it, so nothing else is needed
Draft an Agent Plugin (agent-plugins.org, specification 1.1.0) that wraps the
MCP server described below, so that somebody could install one thing and have
an assistant that knows when and how to use it.

An Agent Plugin is one installable unit: a `plugin.json` manifest, an
`mcp.json` that wires up the servers it needs, and a `skills/` directory
where each skill is a folder holding a `SKILL.md`. Hand back every file in
full, each under its own path, ready to save.

1. Write `plugin.json` with `$schema` exactly `https://agent-plugins.org/schemas/1.1.0/plugin.schema.json`. The name is
   1 to 64 characters of a-z, 0-9, `-` and `.`, alphanumeric at both ends, with
   no `--` and no `..` in it.

2. Write `mcp.json` wiring THIS server exactly as its record declares it. A
   remote keeps the URL and the transport type as written. A package keeps the
   registry, the identifier and the version as written. Do not invent a command,
   a port, a flag or an argument that is not in the record.

3. Every secret stays an input. No key, token, password or connection string
   belongs in either file. Declare what has to be supplied, name it, and say what
   it is for.

4. Do not invent tools. The record lists the tools it lists, and if it lists
   none then the honest plugin says the tool list was not published rather than
   guessing one from the description.

5. Skills are jobs, not tools. Write one skill per thing somebody would actually
   ask for, and inside each one say when to reach for this server, what a good
   result looks like, and what to do when it comes back empty. A skill per tool
   is a manual page with a different filename.

6. Say where it stops. Name what this plugin will not do — what it has no tool
   for, what needs a person, and what it must not be pointed at. A plugin with no
   stated edge reads as one with no edge.

7. Keep the author's own words for the description. If you would rather say it
   differently, say yours somewhere else and leave theirs where it is.

8. Record which version of the server you wrapped, and where the record came
   from, at the top of `plugin.json`'s description or in the readme. A plugin
   nobody can trace back to a version is one nobody can update.

Produce a second file alongside them, `LIMITS.md`, and treat it as the more
important of the two. The plugin is for whoever installs it. This is for
whoever has to decide whether installing it is a good idea, and that is
usually a different person who will never read the manifest.

It has three parts.

**What this is built from.** One paragraph: whose server it is, what the
record says it does, which version, and the fact that the record is all you
had. Say plainly that nobody ran it.

**What the record does not say.** One entry per gap. Whether the tool list was
published. What the server does with what it reads. What it costs. Whether it
writes anything anywhere. What credentials it will ask for and what those
credentials can reach. An unanswered question stays an unanswered question:
do not fill one in from the description or from what similar servers usually do.

**What a person has to check before trusting it.** The specific things
somebody should verify for themselves, in the order that would stop them
soonest if the answer is bad.

Write it in plain English, and do not soften it. A plugin drafted from a
directory record is a starting point to argue with, not something to install
into anything that matters.

The server record follows, exactly as the public index holds it. It is
everything I have: nobody has run this server, called a tool on it, or checked
that the address answers.

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

The server is listed as "HAPI MCP Server".
What this is

MCP server

application/mcp-server-record+jsonhosted · an address you calllocal · you run it yourselfversion 0.6.0last seen 2026-08-23

These are the publisher's own words, filed by them with the official MCP registry and mirrored here. This catalog did not read them from the publisher and has not run, called or installed anything.

Where it lives

The publisher's own address

https://docs.mcp.com.ai/components/hapi-server/hapi-cli

The address the publisher put in their registry record, printed as they wrote it. Nobody here has opened it.