Tutorial
Compare an MCP Gateway With Direct Connections
Two Deployment Shapes
Two arrangements connect agents to business systems, and the difference is who owns the seam between them.
Direct connections. Each client is configured against each server. Three clients and four systems means twelve relationships, each with its own credential, its own scope list and its own failure mode.
A gateway. One endpoint that clients connect to, which routes to many servers behind it. Clients hold one credential and see one tool list; the gateway holds the credentials for everything behind it.
Neither is newer or better. They fail differently, cost differently and demand different skills, and most organisations end up with a mixture.
Shape One: Direct Connections
Each server is a small deployment owned by whoever owns the system behind it. The client configuration lists them all.
What this shape does well is keep responsibility local. The team that owns the help desk owns the help desk connector, its scopes, its rotation and its upgrades. No central component sits in the path, so a failure is always attributable to one server.
It scales badly on configuration. Every new client multiplies the number of connections, and each one has to be provisioned with credentials. The credential count is the operational cost, and it grows faster than the team.
Shape Two: A Gateway
Clients connect to one endpoint. The gateway authenticates the caller, resolves which servers that caller may use, and either proxies the tool list or aggregates several servers into one surface.
Four things change immediately.
One credential per client replaces one per client per server, which is the largest single reduction in operational work available.
One audit trail replaces a log per server. Every call is recorded in one place with the same fields, which is what a review actually needs.
One policy layer enforces which tools a caller may see. Scope decisions become configuration in one place rather than code in several.
One failure domain. The gateway is now in the path of everything, and its availability is the availability of the whole surface.
That last point is the honest cost. A gateway that goes down takes every connector with it, and a gateway bug affects every caller rather than one.
The Comparison That Matters
| Question | Direct | Gateway | | --- | --- | --- | | Who owns the connection | The system's team | A platform team | | Credential count | Clients multiplied by servers | One per client, plus upstream | | Audit | One log per server | One log for everything | | Failure domain | One server | The gateway and one server | | Latency | One hop | Two hops | | Change to add a system | New client configuration | New upstream registration |
Read the table as a trade rather than a verdict. The two middle rows are the ones that decide it in practice: a single audit trail is often the requirement that forces a gateway, and a single point of failure is often the objection that stops one.
Where Direct Wins
Direct connections are the better answer when the number of clients is small and stable, when each system has a clear owner who will operate the connector, and when a failure in one connector must not affect the others.
They are also better when latency matters. One fewer hop is a real difference for a tool called several times in a conversation, and a gateway adds its own cold start.
And they are better early. A team with one client and two systems gains nothing from a gateway except a component to operate.
Where a Gateway Wins
A gateway earns its place when clients multiply. Five clients against six systems is thirty credential relationships, and no team maintains thirty credentials well.
It also wins when governance is the point: when someone must be able to answer which tools a given caller used last week, or when a tool must be withdrawn from one team without touching the others.
And it wins when the systems behind it are operated by different teams with different standards. A gateway lets one team enforce a minimum, such as a required scope or a mandatory log field, without negotiating with every connector owner.
The Hybrid Most Teams Reach
A gateway in front of shared systems, and direct connections where latency or isolation dominates.
The common shape is a gateway for the read-only systems that many clients use, plus direct connections for the one or two servers that carry sensitive writes and need their own boundary. Clients then hold two configurations rather than twelve.
The important discipline is the same in both shapes: the tool surface should be identical whether a call arrives directly or through the gateway. If the gateway changes names or reshapes results, it has become a second implementation and will drift.
A Way to Decide
Answer four questions.
How many clients will exist in a year. How many systems. Whether a single audit trail is a requirement. And who will operate the component in the middle.
If the first two multiply past a handful and the third is yes, build the gateway. If the fourth has no answer, do not: an unowned gateway is worse than twelve direct connections, because it concentrates the risk without concentrating the responsibility.
What a Gateway Should Not Do
The failure mode of a gateway is scope creep. It starts as a router and ends as a second implementation, with per-tool logic, cached results and a mapping layer that translates between two schemas that were supposed to be identical.
Three rules keep it a router. It does not interpret arguments. It does not reshape results beyond adding envelope fields. And it does not rename tools, because a name that differs behind the gateway is a name that will eventually differ in front of it.
A gateway that follows those rules can be replaced in an afternoon. One that does not becomes the system nobody can change, which is the opposite of the reason it was introduced.
Migration in Practice
Moving from direct connections to a gateway is a configuration change for clients, not a code change for servers, if the tool surface stays identical.
Do it in two steps. Stand up the gateway with the same tool names in front of one server, and point one client at it. Once that client behaves identically for a week, move the rest, then add the remaining servers as upstreams.
Two steps rather than a cutover, because the interesting failures are in the gateway's own credentials to upstreams, and those are easier to find one server at a time.
Next step
Read the security review checklist before adopting either shape with a vendor, or contact us to compare them against your own client count.
FAQ
Question: Does a gateway need to understand every tool?
No. A gateway can proxy the tool list and forward calls without interpreting arguments, which keeps it simple and keeps tool logic in the servers. Interpretation is what makes a gateway expensive to maintain.
Question: Can we start direct and move to a gateway later?
Yes, and most teams should. The move is easier when tool names and schemas are already stable, which is the same discipline that makes any change safe.
Question: What breaks first in a gateway?
Its own credentials to the upstream servers. A gateway holds several, so a rotation that misses one takes out a subset of tools and looks like a partial outage rather than a credential problem.
A worked case
WhatsApp is the clearest example of the split. A read-only connection gives an agent context with no send path, which is the direct connection done properly, while the sending side stays behind a gateway. See what a WhatsApp MCP server is.