Supergateway
$ supergateway Official Med RiskSupergateway runs stdio-based MCP servers behind SSE, WebSocket, or Streamable HTTP endpoints (--stdio <cmd> --port <n>), or connects remote --sse / --streamableHttp endpoints back into local stdio clients. Supports --oauth2Bearer headers and --stateful HTTP sessions.
npm install -g supergateway supergateway is an infrastructure bridge daemon itself, converting transports between MCP clients and servers rather than acting as a domain MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic flag-driven CLI (--stdio, --port, --sse, --streamableHttp), though it runs as a long-lived bridge process without --json status output.
- Flag-based transport bridging via
--stdio,--sse,--streamableHttp,--port
Supports --oauth2Bearer and --cors, but spawns arbitrary --stdio shell commands and exposes network listeners when --port is opened.
- Executes arbitrary
--stdio <cmd>subprocesses and binds HTTP/SSE ports
Cross-platform Node.js package runnable immediately via npx -y supergateway or Docker.
- Published on npm (
supergateway) and Docker Hub
Solves MCP transport mismatches cleanly across stdio, SSE, WebSocket, and Streamable HTTP.
- Supports bidirectional stdio <-> SSE/WS/Streamable HTTP bridging
Maintained by Supercorp (supercorp-ai/supergateway) under MIT license.
- Active
supercorp-ai/supergatewayrepository
Clear README documenting all flags, header options, and Docker/npx usage examples.
- GitHub README lists every transport flag and example
Security, Auth & Guardrails
Accepts bearer tokens via --oauth2Bearer or custom --header flags and passes environment variables to child stdio processes.
100% free and MIT open-source.
# Supergateway Agent Rules - Run `supergateway` as a managed background service with explicit `--port` and loopback binding where possible. - Never pass raw secrets in CLI arguments if logs are captured; prefer environment variables.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx -y supergateway --help
Prints supported transport flags (--stdio, --sse, --streamableHttp, --port) without opening ports.
Controlled Writes & Previews
npx -y supergateway --stdio "npx -y @modelcontextprotocol/server-filesystem ." --port 8000 --stateful
Starts a stateful local HTTP MCP gateway wrapping a stdio server on port 8000.
Strengths for Agents
- + Bridges stdio, SSE, WebSocket, and Streamable HTTP transports in one
npxcommand. - + Supports
--statefulStreamable HTTP and--oauth2Bearerforwarding.
Caveats & Pitfalls
- ! Long-running daemon process blocks foreground terminals unless backgrounded.
- ! No
--jsoncontrol output or dry-run config validator; passing secrets via--oauth2Bearerexposes them in process listings.