# HAPI MCP Server

> HAPI MCP Server is an open-source MCP server. HAPI MCP server: Dynamically exposes OpenAPI REST APIs as MCP tools for AI assistants. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://docs.mcp.com.ai/components/hapi-server/hapi-cli
- **Repository:** https://github.com/larebelion/hapimcp
- **MCP Registry name:** ai.com.mcp/hapi-mcp
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add hapi-mcp -- docker run -i --rm docker.io/hapimcp/hapi-cli:0.6.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "hapi-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hapi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapimcp/hapi-cli:0.6.0"
      ]
    }
  }
}
```

## FAQ

### Is HAPI MCP Server free?

Yes. HAPI MCP Server is open source, so you can use and self-host it for free.

### How do I add HAPI MCP Server to Claude Code?

Run this command in your terminal: claude mcp add hapi-mcp -- docker run -i --rm docker.io/hapimcp/hapi-cli:0.6.0

---
Source: https://ai-powered.com/mcp/hapi-mcp-server
