Skip to content
MCP server

mcp-gateway (OpenAPI to MCP)

Open-source Rust CLI that turns an OpenAPI spec or local server into a public MCP URL

Runs locallyStatus and history
Install
Pricing
Freemium
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.11.4
Listing updated
3 days ago

About mcp-gateway (OpenAPI to MCP)

mcp-gateway (OpenAPI to MCP) is a freemium MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Two situations drive this tool: an API with an OpenAPI document that has no MCP interface yet, and an MCP server running on a laptop that a remote client needs to reach. For the first, the CLI compiles the spec so each operation becomes a tool. For the second, it wraps a Streamable HTTP URL or a stdio server.

Adding --tunnel gives a public HTTPS address of the form <name>.mcp.fetchhive.com/mcp while the process stays on loopback with only an outbound connection and no inbound port. A bearer token is required by default, checked by both the relay and the local CLI, and outbound requests go through an SSRF-hardened dialer. An anonymous URL needs no account and is released 30 minutes after the CLI exits; logging in keeps a persistent name, and the free plan includes one.

Loopback and private-network specs need explicit opt-in flags, --allow-private-networks and --insecure-http. A hosted variant at mcp.fetchhive.com publishes an endpoint that stays online, with readiness reports, access tokens, rate limits and request logs. The CLI is Apache 2.0 and installs by Homebrew, npx, curl or Docker.

Install

Run in a terminal

claude mcp add mcp-gateway --env MCP_GATEWAY_TOKEN='<MCP_GATEWAY_TOKEN>' -- npx -y @fetch-hive/mcp-gateway

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway"
      ],
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway"
      ],
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-gateway": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway"
      ],
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway"
      ],
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@fetch-hive/mcp-gateway"
      ],
      "env": {
        "MCP_GATEWAY_TOKEN": "<MCP_GATEWAY_TOKEN>"
      }
    }
  }
}

Configuration

  • MCP_GATEWAY_TOKENBearer token printed once by mcp-gateway initRequired

What it does

OpenAPI to tools
Compiles a spec from a file or URL so each operation becomes an MCP tool.
Public tunnel
Gives remote clients an HTTPS URL while your process stays on loopback.
Bearer auth by default
The relay and the local CLI both check the token before a request reaches your API.
Wrap existing MCP servers
Tunnels a Streamable HTTP URL or a stdio server the CLI did not compile.
Client config helper
An inspect command prepares settings for Cursor, Codex, Claude Code, VS Code or Claude.
Hosted option
Fetch Hive can host the gateway with tokens, quotas and a playground.

Good for

  • Expose a branch API on localhost to a coding agent
  • Give ChatGPT or Claude a temporary URL for a local MCP server
  • Check how well an OpenAPI spec converts before hosting it
  • Publish a stable MCP endpoint for an internal API

Pricing

Freemium, from $24 a month

CLI free and open source; hosted Developer plan free, Growth $24/mo, Pro $66/mo

Prices change. Check fetchhive.com before you buy.

mcp-gateway (OpenAPI to MCP) FAQ

Do I need an account?

Not for a temporary anonymous URL. A login keeps a persistent name.

What licence is the CLI?

Apache 2.0.

Does the tunnel need an open port?

No. It uses an outbound connection, with no inbound port.

What does the hosted plan cost?

Fetch Hive lists a free Developer plan, Growth at $24 USD a month and Pro at $66 USD a month.

How long does an anonymous URL last?

It is released 30 minutes after the CLI exits.

Is mcp-gateway (OpenAPI to MCP) free?

mcp-gateway (OpenAPI to MCP) has a free plan, with paid plans for more usage or features. Paid plans start at $24 a month.

How do I add mcp-gateway (OpenAPI to MCP) to Claude Code?

Run this command in your terminal: claude mcp add mcp-gateway --env MCP_GATEWAY_TOKEN='<MCP_GATEWAY_TOKEN>' -- npx -y @fetch-hive/mcp-gateway

What are the best alternatives to mcp-gateway (OpenAPI to MCP)?

The closest alternatives to mcp-gateway (OpenAPI to MCP) are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to mcp-gateway (OpenAPI to MCP)

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools