Labsco
Timandes logo

MCP Gateway

1

from Timandes

A gateway to translate MCP tool calls into HTTP API requests, configurable via YAML.

🔥🔥🔥🔥✓ VerifiedFreeNeeds API keys

MCP Gateway

MCP (Model Context Protocol) Gateway can translate MCP tool callings to traditional HTTP API requests. It can provide a configurable way to get existing HTTP API to MCP territory.

Server Control

Change Port

Provide parameter --port=<port_no> in command line will change the port to SSE transport.

Launch gateway with port 3002:

Copy & paste — that's it
$ uv run mcp-gateway --port=3002
INFO:     Started server process [15400]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:3002 (Press CTRL+C to quit)

stdio Transport

Provide parameter --transport=stdio in command line will change the transport to stdio.

E.G.:

Copy & paste — that's it
$ uv run mcp-gateway --transport=stdio

It's meaningless to manually launch gateway in stdio transport. You can configure in Cursor or Cline like:

Copy & paste — that's it
{
    "mcpServers": {
        "mcp-gateway": {
          "command": "uv",
          "args": ["run", "mcp-gateway", "--transport=stdio"]
        }
      }
}

Or MCP Inspector with form values:

ItemValue
Transport TypeSTDIO
Commanduv
Argumentsrun mcp-gateway --transport=stdio

Contribution

All kinds of contribution are welcomed.