mcp-gateway-go

by zhengkunwang223

4 163 downloads Not rated yet
GitHub

About

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

Explore

- Converts stdio MCP servers to SSE endpoints.
- Configurable SSE and message paths.
- Optional OAuth2 Bearer token authentication.
- Lightweight, single Go binary.
- Uses standard HTTP for real-time client communication.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-gateway-go
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


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

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-gateway-go": {
            "mcp-gateway-go": {
                "type": "http",
                "url": "http://localhost:7979/sse"
            }
        }
    }
}

McpServers

{
    "mcp-gateway-go": {
        "type": "http",
        "url": "http://localhost:7979/sse"
    }
}

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

- mcp-go

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.