Best for
- Individuals and teams who want to self-host and centrally manage multiple MCP backends or REST APIs.
- Users who want a smaller client tool-definition list while retaining access to a larger catalog.
This gateway aggregates or proxies other MCP servers; it only becomes useful once you connect real servers behind it.
Based on the supplied project material, MCP Gateway is a self-hosted router for MCP and REST tools, with on-demand discovery, centralized management, and security controls. It suits users consolidating a larger tool catalog; backend, credential, and HTTP access-control setup require operator configuration, and discovery can add task overhead.
Strongest · Documentation 14/20 Weakest · Reliability 9/20
Static review · not runReviewed 2026-11-30
Read the FMRS scoring method →Runtime:Rust · Docker
GATEWAY_ATTESTATION_SIGNING_KEY
Optional: HMAC-SHA256 signing key shared with bnaut-attestation for sandbox token verification.
MCP_GATEWAY_CONFIG_DIR
Optional: overrides the gateway data and configuration directory; defaults to ~/.mcp-gateway.
GATEWAY_ATTESTATION_MODE
Optional: sets sandbox attestation mode to observe (default, audits only) or off.
GATEWAY_ATTESTATION_KEY_ID
Optional: signing key ID for sandbox attestation tokens; defaults to gateway.
SYMPHONY_PLUS_ATTESTATION
Optional: set to 0 to disable boot-time sandbox attestation enforcement.
MCP_GATEWAY_FIREWALL_SKIP_KEYS
Optional: comma-separated JSON keys exempt from firewall free-text prompt-injection scanning.
NO_COLOR
Optional: set to any value to disable colored output in doctor diagnostics.
Install with Homebrew or Cargo; Docker and a Windows binary are also listed. Run mcp-gateway setup wizard --configure-client to import existing servers and configure clients, then run mcp-gateway serve and check with mcp-gateway doctor. The manifest provides OCI and Cargo packages using serve --stdio with stdio transport. A client can also be configured to connect to http://localhost:39400/mcp.
{"mcpServers":{"gateway":{"type":"http","url":"http://localhost:39400/mcp"}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"gateway": {
"type": "http",
"url": "http://localhost:39400/mcp"
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.gateway] url = "http://localhost:39400/mcp"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add --transport http gateway http://localhost:39400/mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm the client lists gateway_search_tools, gateway_invoke, gateway_list_servers, and gateway_list_tools. Call gateway_list_servers and check that it returns information about configured servers.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
MCP Gateway is a self-hosted Rust gateway that brings multiple MCP backends and REST API capabilities behind one entry point. AI clients search for and invoke backend tools through a compact meta-tool surface. The project describes more than 110 built-in REST capabilities and OpenAPI import. It is designed for centralized tool routing; the added discovery step can increase input tokens and add an interaction on completed tasks.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 9ba9d7a49a5e Data synced 2026-12-05 Read the FMRS scoring method Markdown