About mcp-gateway-go
mcp-gateway-go is a Go gateway for making stdio-based MCP servers available to HTTP clients through Server-Sent Events (SSE). It is suited to setups that need browser or AI agent access over HTTP.
Key features
- 01Converts stdio MCP servers to SSE
- 02Configurable port and endpoint paths
- 03Supports an optional Bearer token
Use cases
- 01Expose a stdio server to web browsers over HTTP
- 02Connect AI agents to a stdio MCP server
MCP support
It exposes a stdio-based MCP server through SSE endpoints for MCP clients.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
http://localhost:7979/sseclaude mcp add --transport http gateway-go http://localhost:7979/sse{"mcpServers":{"gateway-go":{"type":"http","url":"http://localhost:7979/sse"}}}Open in Cursor{"servers":{"gateway-go":{"type":"http","url":"http://localhost:7979/sse"}}}Open in VS Code{"mcpServers":{"gateway-go":{"type":"http","url":"http://localhost:7979/sse"}}}{"mcpServers":{"gateway-go":{"serverUrl":"http://localhost:7979/sse"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEmcp-gateway-go
mcp-gateway-go is a lightweight Go-based gateway that transforms a standard input/output (stdio) Model Context Protocol (MCP) server into a Server-Sent Events (SSE) endpoint. This enables real-time communication with clients such as web browsers or AI agents over HTTP.
Installation & Usage
go install github.com/zhengkunwang223/mcp-gateway-go@latest
mcp-gateway-go --port 7979 --baseUrl http://127.0.0.1:7979 --command "npx -y @modelcontextprotocol/server-filesystem /tmp"
--port 7979: Port to listen on (default:7979)--baseUrl "http://localhost:7979": Base URL for SSE--ssePath "/sse": Path for SSE subscriptions (default:/sse)--messagePath "/message": Path for messages (stdio→SSE default:/message)--oauth2Bearer "some-access-token": Adds anAuthorizationheader with the provided Bearer token
📚 Additional Resources
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.