mcp-gateway (OpenAPI to MCP)

v0.11.4
io.github.Fetch-Hive/mcp-gateway Checked 1 day ago Published 22 days ago

OpenAPI or local API to MCP server, with a public HTTPS tunnel.

Values you need

VariableWhat it is
MCP_GATEWAY_TOKENrequired secret Bearer token printed once by mcp-gateway init

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-gateway -e 'MCP_GATEWAY_TOKEN=<MCP_GATEWAY_TOKEN>' -- npx -y @fetch-hive/mcp-gateway@0.11.4 '<spec_name>'
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-gateway": {
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway@0.11.4",
        "<spec_name>"
      ],
      "command": "npx",
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-gateway": {
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway@0.11.4",
        "<spec_name>"
      ],
      "command": "npx",
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MCP_GATEWAY_TOKEN",
      "id": "mcp-gateway-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-gateway": {
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway@0.11.4",
        "<spec_name>"
      ],
      "command": "npx",
      "env": {
        "MCP_GATEWAY_TOKEN": "${input:mcp-gateway-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-gateway]
command = "npx"
args = ["-y", "@fetch-hive/mcp-gateway@0.11.4", "<spec_name>"]
env = { "MCP_GATEWAY_TOKEN" = "<MCP_GATEWAY_TOKEN>" }

For AI agents

  1. Ask the user for: MCP_GATEWAY_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json