To run an MCP gateway on premises, place it between your agents and every MCP server, put it in a network zone that can reach both but is not open to the internet, tie it to your own identity provider, and send its logs to your own store. The gateway then becomes the one place where policy applies, so size it, secure it and make it redundant like any other control point.
This checklist is general practice built on the MCP specification. Products differ, and your network standards come first.
Placement
- One path: agents reach MCP servers only through the gateway. Block direct routes with network rules, or the gateway is optional.
- Zone: put the gateway in an internal application zone, with the MCP servers in the zones their data requires.
- Close to the servers: keep latency low and traffic inside your network where data must not leave.
- Model calls: if agents call external models, separate that path. It is a different control, covered by an AI gateway.
- Redundancy: run at least two instances behind a load balancer, since a gateway outage stops every agent.
- Environments: separate gateways, or at least separate policy sets, for dev, test and prod.
- Residency: if data must stay in a region or site, check where logs and caches live as well. See the data residency checklist.
Network
| Check | Detail |
|---|---|
| Inbound | Only from agent hosts and approved clients, over TLS |
| Outbound | Only to registered MCP servers and your identity provider |
| TLS | Use it on every hop; the specification requires HTTPS for authorization endpoints |
| Internal certificates | Issue from your own certificate authority and plan renewal |
| Egress to the internet | Denied by default, with exceptions for approved remote servers |
| Private ranges | Block discovery requests to internal address ranges unless required, to limit request forgery |
| Firewall rules | Documented and reviewed |
| Health checks | Separate from user traffic |
Remote MCP servers run by third parties are the exception. Decide whether they are allowed at all. If so, route them through a controlled egress path and list each in the registry. See our governance model.
Identity
The specification treats an MCP server as an OAuth resource server. It must accept only tokens issued for it and must not pass a client's token on to other services.
- Use your existing identity provider, such as Microsoft Entra ID or a corporate OIDC provider, as the authorization server.
- Use the user's identity and groups to decide which tools each agent may call.
- Give the gateway its own credentials for downstream systems. Do not forward the client's token.
- Keep tokens short-lived, and store secrets in a vault.
- Require strong authentication for administrators of the gateway.
- Give each agent its own identity so it can be revoked on its own.
See MCP authentication with OAuth for the flow and common mistakes.
Logging
- Log every call: user, agent, server, tool, arguments, result status and time.
- Send logs to your own store, with time sync across hosts.
- Protect the logs from change, and limit who can read them, since arguments may hold sensitive data.
- Decide what to redact before it is stored. See the audit logging runbook.
- Alert on denied calls, new servers and unusual volume.
- Test that you can answer "what did this agent do for this user last Tuesday".
Go-live checklist
- All agent traffic is forced through the gateway.
- At least two gateway instances run and failover was tested.
- TLS on all hops.
- Identity provider connected and token audience checks tested.
- Registry holds every server, with owners.
- Logs arrive in your store and a search works.
- Admin access is restricted and logged.
- A rollback plan exists.
- The first review date is set.
For the service, see MCP gateway. For a scenario, see MCP security review before go-live.
Common mistakes
- Leaving a direct route from agents to servers "for testing", then forgetting it.
- Running a single gateway instance and discovering the dependency during an outage.
- Using the internal network as the only trust boundary.
- Sending logs to a store the gateway's administrators can edit.
- Forgetting upgrades. A gateway is software you patch, so assign an owner and a window.
Capacity and upgrades
Estimate load from the number of agents, calls per task and peak concurrency, then test at twice that figure. A gateway adds a hop to every tool call, so measure the added latency with real tools. Schedule patching with the same care as for any security control, and rehearse a rollback. Keep a copy of the gateway configuration in version control, with reviews, so changes to policy leave a trail.
Questions we hear
Can we run an MCP gateway fully offline? Yes if every server and the identity provider are inside your network. Remote servers need controlled egress.
Do we need a gateway per environment? At minimum separate policy and credentials per environment. Separate instances are cleaner.
Where should the gateway run? In an internal zone that reaches agents and servers, with no direct internet exposure.
Sources checked November 27, 2026:




