# mcp-gateway (OpenAPI to MCP)

> mcp-gateway (OpenAPI to MCP) is a freemium MCP server for developer tools. Open-source Rust CLI that turns an OpenAPI spec or local server into a public MCP URL. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $24 a month
- **Platforms:** CLI, macOS, Linux, Windows, API
- **Website:** https://www.fetchhive.com/mcp
- **Repository:** https://github.com/fetch-hive/openapi-mcp
- **MCP Registry name:** io.github.Fetch-Hive/mcp-gateway
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

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

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-gateway-openapi-to-mcp
