AI gateway for MCP stdio servers over SSE/WS
Top 23.6% on sourcepulse
Supergateway bridges Model Context Protocol (MCP) stdio servers with web-based clients by acting as a transport layer. It allows users to expose local MCP stdio servers as Server-Sent Events (SSE) or WebSockets (WS) endpoints, or conversely, to connect to remote SSE/WS MCP servers and expose them locally via stdio. This is particularly useful for remote access, debugging, and integrating MCP services into web applications or other environments that don't directly support stdio.
How It Works
Supergateway leverages Node.js to manage the communication protocols. It can either spawn an MCP server process locally and pipe its stdio to an SSE or WS stream, or it can connect to a remote SSE/WS endpoint and pipe the data to a local stdio process. This dual functionality is achieved through command-line flags that specify the input (stdio or SSE URL) and output (stdio, SSE, or WS) transports, along with configuration for ports, paths, and authentication headers.
Quick Start & Requirements
npx -y supergateway
npx
), Docker (optional, for containerized execution).supercorp/supergateway
on Docker Hub and GHCR.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README notes a potential Cursor bug with spaces in command-line arguments when passing Authorization headers, recommending the --oauth2Bearer
flag as a workaround.
1 month ago
1 day