AgentHubAgentHub

HAPI MCP Server

MCP ServerMCP Registry官方收录

ai.com.mcp/hapi-mcp · v0.6.0

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

概览

HAPI MCP Server 是一个MCP Server,收录自 官方 MCP Registry。支持 streamable-http 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

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

环境变量

HAPI_FQDN可选

Fully Qualified Domain Name for the HAPI server (used in MCP tool URLs)

HAPI_HOME可选

Directory path for HAPI configuration and specs. Should be mounted as a volume in Docker

PROJECT_NAME可选

The name of the project/API (alternative to positional argument)

HAPI_OPENAPI可选

OpenAPI spec URL or path (alternative to --openapi flag)

HAPI_URL可选

Backend API base URL (alternative to --url flag)

HAPI_PORT可选

Server port (alternative to --port flag) - this is the internal container port

HAPI_HEADLESS可选

Enable headless mode (alternative to --headless flag)

HAPI_MCP可选

Enable MCP mode (alternative to --mcp flag)

HAPI_DEV可选

Enable development mode (alternative to --dev flag)

HAPI_CORS可选

Comma-separated allowed CORS origins (alternative to --cors flag)

HAPI_CONFIG_FILES可选

Comma-separated configuration files (alternative to --filename flag)

NODE_ENV可选

Node environment (development, production). 'development' enables verbose logging and debugging features.

相关资源

统一 Manifest

{
  "id": "ai.com.mcp/hapi-mcp",
  "type": "mcp-server",
  "version": "0.6.0",
  "displayName": "HAPI MCP Server",
  "description": "HAPI MCP server: Dynamically exposes OpenAPI REST APIs as MCP tools for AI assistants",
  "repository": {
    "url": "https://github.com/larebelion/hapimcp",
    "source": "github"
  },
  "homepage": "https://docs.mcp.com.ai/components/hapi-server/hapi-cli",
  "distribution": {
    "packages": [
      {
        "registryType": "oci",
        "identifier": "docker.io/hapimcp/hapi-cli:0.6.0",
        "runtimeHint": "docker",
        "transport": "streamable-http",
        "environmentVariables": [
          {
            "name": "HAPI_FQDN",
            "description": "Fully Qualified Domain Name for the HAPI server (used in MCP tool URLs)"
          },
          {
            "name": "HAPI_HOME",
            "description": "Directory path for HAPI configuration and specs. Should be mounted as a volume in Docker"
          },
          {
            "name": "PROJECT_NAME",
            "description": "The name of the project/API (alternative to positional argument)"
          },
          {
            "name": "HAPI_OPENAPI",
            "description": "OpenAPI spec URL or path (alternative to --openapi flag)"
          },
          {
            "name": "HAPI_URL",
            "description": "Backend API base URL (alternative to --url flag)"
          },
          {
            "name": "HAPI_PORT",
            "description": "Server port (alternative to --port flag) - this is the internal container port"
          },
          {
            "name": "HAPI_HEADLESS",
            "description": "Enable headless mode (alternative to --headless flag)"
          },
          {
            "name": "HAPI_MCP",
            "description": "Enable MCP mode (alternative to --mcp flag)"
          },
          {
            "name": "HAPI_DEV",
            "description": "Enable development mode (alternative to --dev flag)"
          },
          {
            "name": "HAPI_CORS",
            "description": "Comma-separated allowed CORS origins (alternative to --cors flag)"
          },
          {
            "name": "HAPI_CONFIG_FILES",
            "description": "Comma-separated configuration files (alternative to --filename flag)"
          },
          {
            "name": "NODE_ENV",
            "description": "Node environment (development, production). 'development' enables verbose logging and debugging features."
          }
        ]
      }
    ],
    "remotes": [
      {
        "transport": "streamable-http",
        "url": "https://{HAPI_FQDN}:{HAPI_PORT}/mcp"
      }
    ]
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "ai.com.mcp/hapi-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/ai.com.mcp%2Fhapi-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
HAPI MCP Server — MCP Server 安装与配置 · AgentHub