mcpField
M
mcp-gateway-go

mcp-gateway-go

Remote
github.com/zhengkunwang223Developer Tools4Updated 79w ago
Repository

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

  1. 01Converts stdio MCP servers to SSE
  2. 02Configurable port and endpoint paths
  3. 03Supports an optional Bearer token

Use cases

  1. 01Expose a stdio server to web browsers over HTTP
  2. 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.

Endpointhttp://localhost:7979/sse
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

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 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

Comments

Markdown supported

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.