ZM

zhengkunwang223/mcp-gateway-go

Developer tools
5 stars 3 forks Quality 32 Trend 13

A Go gateway that converts stdio-based MCP servers to SSE endpoints using mcp-go.

Overview

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. - : Port to listen on (default: 7979) - : Base URL for SSE - : Path for SSE subscriptions (default: /sse) - : Path for messages (stdio→SSE default: /message) - : Adds an Authorization header with the provided Bearer token

README

mcp-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 an Authorization header with the provided Bearer token

📚 Additional Resources

View the full README on GitHub

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →