An MCP gateway sits between Model Context Protocol (MCP) clients and upstream MCP servers. Clients connect to a gateway endpoint to discover and call tools. The gateway routes each call to the server that provides the tool and returns the result to the client.
What changes when you add a gateway?
Suppose your team uses two AI clients and three MCP servers for documentation, issue tracking, and internal search. With direct connections, each client maintains the three server configurations. With a gateway, you configure the upstream servers centrally and point each client at the gateway. If an upstream URL changes, you can update it once.
The gateway is also a place to enforce access policy. For example, a support group can receive documentation and issue tools, while internal search is available to a separate group. Per-user credentials let an upstream service apply each caller’s own permissions where the integration supports them.
MCP gateway vs. MCP proxy
The terms overlap. An MCP proxy can forward requests to an upstream server, for example to expose a local stdio server over HTTP. A gateway typically gives clients a shared endpoint for multiple servers and centralizes routing and access policy. If you only need transport conversion for one server, a proxy may be enough. If teams need different tool sets or credentials across several servers, evaluate a gateway.
How does tool routing work?
A gateway can expose a fixed tool set through a group endpoint. That makes sense when a team can describe the exact tools its agents need. As the catalog grows, MCPHub’s Smart Routing offers a separate discovery flow where clients search for tools by task and then call a selected tool. Review the gateway features for the available access and routing options.
When is a gateway worth running?
A single client with one stable server may be simpler to configure directly. A shared gateway starts to help when several clients need common server settings, teams need different tool sets, or credentials must remain under your control. Self-hosting means your team owns configuration, access policy, and upgrades.
To try the setup locally, follow the Docker self-hosting tutorial. To discover upstream servers, browse the MCP Server Registry.