mcp-gateway (OpenAPI to MCP)
v0.11.4OpenAPI or local API to MCP server, with a public HTTPS tunnel.
Values you need
| Variable | What it is | |
|---|---|---|
MCP_GATEWAY_TOKEN | required 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
- Ask the user for: MCP_GATEWAY_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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