[ Explainer ]

What is an MCP gateway?

An MCP gateway is the control point between AI agents and the Model Context Protocol servers that give them tools. This guide explains the protocol, what the gateway adds, how a tool call flows through it, and how the current options compare.

By Bifrost team at Maxim AI · Published · Updated · 9 min read

[ In short ]

The Model Context Protocol (MCP) is an open standard that lets an AI application discover and call tools exposed by a server: read a file, query a database, open a pull request, send a message. An MCP gateway is a service that sits between the applications and agents making those calls and the MCP servers answering them.

It gives a platform team one place to register servers, decide who may use which tools, authenticate to upstream systems, execute calls under policy and keep an audit trail. Without it, every agent connects to every server with its own credentials and nobody can say what the fleet of agents is doing.

[ How it works ]

How a tool call flows through an MCP gateway

The agent sees a single MCP endpoint. The gateway decides which tools that agent can see, authenticates to the real servers, executes approved calls and records each one.

MCP clients

  • Claude, ChatGPT, Cursor
  • Coding agents and CLIs
  • In-house agents
  • Automation pipelines

MCP gateway

  • Server registry
  • Identity and virtual keys
  • Tool allowlists per user, team, customer
  • Upstream auth
  • Guardrails on arguments and results
  • Audit log

MCP servers

  • GitHub, GitLab, Jira
  • Slack, Gmail, Calendar
  • Postgres, Snowflake
  • Internal services
  1. Step 01

    Connect and discover

    The client connects to the gateway as it would to any MCP server and asks for the tool list. The gateway returns only the tools the caller’s identity is allowed to see, merged from every registered server.

  2. Step 02

    Request a call

    The model decides to use a tool and the client sends the call with its arguments. The gateway resolves which upstream server owns the tool.

  3. Step 03

    Check policy

    Allowlists, rate limits, budgets and argument guardrails run. A call to a tool the caller cannot use, or with arguments that fail a check, is refused here.

  4. Step 04

    Execute upstream

    The gateway authenticates to the upstream server with the right credential for this caller, over STDIO, Streamable HTTP or SSE, and runs the call.

  5. Step 05

    Audit and return

    Who called what, with which arguments, how long it took and what came back are logged and traced. The result goes back to the client, optionally after output guardrails.

MCP in one paragraph

MCP standardises the conversation between an AI application (the client) and a source of tools or data (the server). A server advertises tools with names, descriptions and argument schemas; the client lists them, the model picks one, the client calls it and gets a result back. Transports are STDIO for local servers and Streamable HTTP or SSE for remote ones. The protocol is published and governed openly, and most AI products and frameworks now speak it.

The success of the standard is also the problem. Once a tool is one JSON schema away from any model, the number of servers in an organisation grows quickly: hundreds of community servers exist and teams write their own. Each one is a credential, a capability and a potential blast radius.

What an MCP gateway adds

An MCP gateway is itself an MCP server to the clients and an MCP client to the upstream servers. Being in the middle lets it do five things nothing else in the stack can.

  • A registry. Servers are registered once with their transport, command or endpoint and credentials. Clients get one URL instead of a configuration file per machine.
  • Identity. Callers authenticate to the gateway, usually with a virtual key or an SSO token, so every tool call has a user, team or customer attached.
  • Scoped tool access. Allowlists decide which tools each identity can see and call. A support agent can read tickets but not delete repositories, and the gateway enforces it rather than the prompt.
  • Upstream authentication. The gateway holds the credentials for the real servers and can map a caller to a per-user upstream identity, so audit trails in the upstream system name the person, not a shared bot.
  • Policy and audit. Rate limits, budgets, argument and result guardrails and an immutable log of every call, which is what security and compliance teams need before agents touch production systems.

Why not connect agents to servers directly?

For one developer on one laptop, direct connection is fine and is how MCP started. The failure modes appear at the organisation level. Credentials for the upstream systems end up in agent configuration on every machine. There is no inventory of which servers exist or who uses them. Any tool a server exposes is available to any model that can reach it, including destructive ones. And when something goes wrong there is no log that says which agent called which tool with which arguments.

These are the same problems API gateways solved for HTTP traffic twenty years ago, and the same problems AI gateways solve for model traffic. The MCP gateway applies the pattern to tool calls, which are the more dangerous half of what an agent does: a model call can produce a wrong answer, a tool call can delete the database.

Deployment patterns

Three patterns cover most deployments. A central gateway runs in the platform team’s cluster, fronts every approved server and is the only MCP endpoint developers are given; it suits regulated organisations. A per-environment gateway runs one instance per product or environment with its own registry, which keeps blast radius small at the cost of some duplication. A combined gateway runs the MCP gateway in the same process as the LLM gateway, so one identity, one set of budgets and one audit log cover both model calls and tool calls; this is the direction most vendors are converging on.

Endpoint coverage is the newest variable. Desktop AI apps, browser assistants and coding agents on employee laptops also speak MCP, and governing them means routing those clients through the gateway too, which is a device-management problem as much as a networking one. See Bifrost Edge for how we approach it.

Tool sprawl and token cost

A less obvious job of the gateway is keeping the model’s context small. Every tool a client lists costs tokens on every turn, and an agent with access to three hundred tools spends most of its context window on tool definitions. Gateways address this by scoping tool lists per identity, by grouping tools, and in some implementations by letting the model write small programs against the tool set instead of calling tools one by one, which reduces round trips and tokens. The naming differs by vendor; the problem is the same everywhere.

How to evaluate an MCP gateway

The checklist is short because the category is young. Weight the first three heavily.

  • Transports and compatibility: STDIO, Streamable HTTP and SSE upstream; the current protocol version; works with the clients your people actually use.
  • Identity model: how callers authenticate, whether per-user upstream credentials are supported, and whether it binds to your identity provider.
  • Policy granularity: tool allowlists per user, team and customer; rate limits; argument-level guardrails.
  • Audit: what is logged, where it is exported, and whether logs can be altered.
  • Operations: self-hosted or managed, clustering, how servers are registered and rotated.
  • Convergence: whether model calls and tool calls share identity, budgets and logs, or live in two products.

[ Differences ]

MCP gateway vs MCP server vs API gateway vs LLM gateway

Four things sit near a tool call. Only one of them governs it.

AspectMCP serverAPI gatewayLLM gatewayMCP gateway
RoleExposes tools from one systemFronts your HTTP APIsFronts model providersFronts MCP servers for agents
Speaks MCPYes, as a serverNoSometimes, as part of an AI gatewayYes, as server and client
Knows who the caller isRarelyYes, for HTTP callersYes, for model callsYes, for every tool call
Controls which tools an agent seesNo, it exposes all of its ownNoNoYes, per identity
Holds upstream credentialsIts own onlyFor backendsFor providersFor every registered server
Audit of tool callsLocal logs at bestHTTP access logsModel call logsPer-call log with caller, tool and arguments

[ When you need one ]

When you need an MCP gateway

A single developer with a few local servers does not. Organisations reach for one when any of these becomes true.

Agents touch production systems

Tools can write to repositories, databases or customer records and someone must decide which agent may do which.

Shared credentials

Several agents or people reach the same upstream system with one bot credential and the audit trail cannot name a person.

Server sprawl

Nobody can list the MCP servers in use, and the configuration lives on individual machines.

Compliance asks

Security or audit wants a log of every tool call an agent made, with arguments, that cannot be edited.

Employee AI tools

Desktop assistants and coding agents on laptops are connecting to internal servers outside any policy.

Context cost

Agents carry hundreds of tool definitions per turn and you need to scope what each one sees.

[ The options ]

The main MCP gateway options

Products and open-source projects that proxy MCP traffic and add registry, identity or policy. Alphabetical, including the one we build.

OptionLicense and modelDeploymentFocusNotes
Bifrost MCP GatewayThe one we buildOpen source (Apache-2.0) core, commercial enterprise tierSelf-hosted, in the same binary as the LLM gatewayOne identity, budget and audit log across model calls and tool callsSupports STDIO, Streamable HTTP and SSE upstream; details at MCP gateway.
Docker MCP GatewayOpen sourceLocal or containerised, part of the Docker MCP toolkitRunning and isolating MCP servers as containers for desktop and CI useStrong on packaging and isolation of servers; policy and identity are lighter.
IBM ContextForgeOpen sourceSelf-hostedRegistry and gateway that federates MCP servers and wraps REST APIs as toolsBroad feature set; an open-source project rather than a supported product.
Lasso MCP GatewayOpen sourceSelf-hostedSecurity plugins on MCP traffic: secret masking, injection detectionSecurity-first; pairs with a broader gateway for registry and identity.
Microsoft MCP GatewayOpen sourceKubernetesReverse proxy and lifecycle manager for MCP servers on KubernetesPlatform-team oriented; fits organisations standardised on Kubernetes and Azure.
Solo.io agentgatewayOpen source data plane, commercial Gloo platformKubernetesEnvoy-adjacent gateway for agent-to-tool and agent-to-agent trafficNatural choice where Envoy and Gloo already run.
TrueFoundry MCP GatewayCommercialSelf-hosted in your cloud or managedMCP registry and gateway alongside TrueFoundry’s AI gatewayStrong when the rest of the platform is TrueFoundry.

How this list was made

Options were taken from the projects and products ranking for "MCP gateway" in October 2026 and from the ones our customers evaluate alongside ours. License, deployment and focus come from each project’s public documentation at the time of writing. We build Bifrost; its row is a vendor description and should be tested like the others. The category changes monthly; tell us if a row is out of date.

FAQ

Frequently asked questions

Short answers about MCP gateways.

Spotted a mistake? Tell us. Contact us

To the clients, yes: they connect to it exactly as they would to any server and see a tool list. To the upstream servers it is a client. That dual role is what lets it merge, filter and govern tools from many servers behind one endpoint.

No. The agent connects to one URL instead of several, and sees a tool list that may be shorter than before because it is scoped to the agent’s identity. Tool calls are made the same way; the gateway executes them upstream and returns the result.

STDIO for servers that run as local processes, and Streamable HTTP for remote servers; SSE is the older remote transport that many servers still use. A gateway should speak all three upstream and expose Streamable HTTP to clients.

It can stop the agent from calling tools it is not allowed to call, and it can inspect arguments before execution. It cannot judge intent. The reliable control is to never expose a destructive tool to an identity that should not have it, which is exactly what per-identity allowlists are for.

You need both capabilities. Whether they are one product or two is a vendor choice; the advantage of one product is that identity, budgets and audit logs cover model calls and tool calls together, which is how incidents are actually investigated.

From vendors, from the community and from your own teams. Our [MCP server directory](https://www.getmaxim.ai/bifrost/mcp-servers) lists several hundred; the gateway is how you decide which of them your agents may use.