What Is an MCP Gateway? Options, Controls, and Ownership
An MCP gateway gives your clients a controlled connection to one or more MCP servers. The product you choose and the settings you deploy determine how it routes requests, authenticates callers, limits tools, and records activity. You can use it to manage a growing collection of tools through a smaller number of connections.
You can run an open-source gateway, use a managed portal, or put a policy check inside an application you control. Choose around the servers you need to connect, the credentials they require, and the team that will operate the result.
Gateway, endpoint, and server
The endpoint is the connection address. The server implements MCP capabilities. A gateway can stand between a client and several upstream servers, exposing the selected capabilities through its own connection.
Vendors use “gateway” for products with different responsibilities. The MCP specification defines protocol behavior, rather than a standard gateway product or configuration format. Ask what a particular gateway enforces, and where it enforces it.
For connection URLs and transport migrations, use the MCP endpoint guide. This guide focuses on choosing and operating the layer behind that address.
Three approaches you can build with
| Approach | What you get | What your team owns |
|---|---|---|
| IBM ContextForge | An open-source gateway and registry for aggregating and managing tools and upstream services. | Hosting, deployment settings, identity-provider configuration, upgrades, and operational checks. |
| Cloudflare MCP server portals | A managed endpoint combining approved MCP servers with Cloudflare Access policies and activity logging. | Portal and upstream policies, credential choices, server selection, and log handling. |
| Microsoft Agent Governance Toolkit | Application-level gateway code for evaluating tool calls, scanning responses, and auditing decisions. | Integration into your application, enforcement, deployment, and maintenance. |
Choose the operating responsibility you want to take on. A toolkit tutorial gives you code to integrate. A managed portal supplies a hosted connection. A self-hosted gateway lets you operate the infrastructure and configuration directly.
ContextForge 1.1: check the protocol and catalog changes
IBM published ContextForge 1.1.0 on October 20, 2026. The release adds modern MCP negotiation by default in its configuration, federated completions, catalog pagination, tool-name collision detection, and configuration-import ownership checks.
Existing connections need attention during the upgrade. Test the protocol revision selected on both sides of the gateway, follow catalog pagination, and check how your automation handles a rejected duplicate tool name. Inspect the effective deployment settings too: the release notes identify a legacy default in the Compose configuration, so a version number alone doesn't establish which mode your installation runs.
The release also adds configurable Origin and Host enforcement. Set the allowed values for your deployment and test them; the existence of the setting does not configure your allowlist. The versioned repository provides the deployment instructions and configuration.
Cloudflare portals: connect machines as well as people
Cloudflare made MCP server portals generally available on September 24, 2026. The managed service provides one endpoint for approved servers, with Access activity logs, Gateway routing for HTTP logging and DLP scanning, Code Mode policies, service tokens, and Logpush export.
The portal configuration guide distinguishes user OAuth from machine access. A service-token connection needs a matching Service Auth policy at the portal and at each linked server it should reach.
Service-token requests use the configured admin credential upstream. Servers requiring per-user OAuth are excluded from those sessions. Choose this around the authority your unattended agent should have; a machine credential and a person's upstream grant represent different access.
Also test direct access to the upstream server. Hiding a server in a portal does not close its original URL. If your policy requires callers to pass through the controlled route, enforce that requirement at the receiving service.
Microsoft's toolkit: put the decision inside your application
The Agent Governance Toolkit MCP gateway tutorial shows how to evaluate a tool call before execution, handle sensitive tools, scan responses, wrap server configuration, and retain an audit record.
Use this approach when you control the application and want to integrate those checks into its call path. Decide which code must run before the tool executes, how denial reaches the caller, and which information the audit record retains. Your application still needs the deployment and access controls around that code.
Test the gateway with one real workflow
Imagine a purchasing assistant that searches supplier specifications and retrieves approved quotes. Connect those two services first. You want the client to find the right tools, call them with the right authority, and leave a record the operator can explain.
- Discover the complete catalog. Follow pagination and resolve duplicate names. Retain the upstream service alongside the tool name so two operations called
searchremain distinguishable. - Check both directions of access. Test an allowed supplier lookup and an unapproved quote lookup. Identify which caller the gateway authenticates and which credential the upstream service receives.
- Exercise the actual client versions. Confirm discovery, invocation, and any required completion or resource features across the gateway and upstreams.
- Follow a failure through the logs. Keep a request identifier, policy decision, upstream destination, and result without dumping credentials or customer records.
- Withdraw the connection. Remove the relevant grant or credential and check that calls stop under the deployment's rules, including any direct upstream path.
These are suggested rollout checks, not a comparative benchmark or a claim that every product enforces the same policy. The MCP security checklist covers the wider review.
The MCP security guidance remains relevant across gateway choices. Validate tokens for the receiving resource and use the appropriate upstream authorization, rather than forwarding a caller's unrelated bearer token through the stack.
Give the gateway an official public route
A partner may return months after the first connection, with an old configuration and a colleague who has never used your service. Give them one public place to find the current gateway, access instructions, and someone who can help. Put that information under a Headless Domains name you maintain.
Publish the gateway's current endpoint through the supported manifest format, alongside appropriate operator, documentation, and support references. Your service runs on the infrastructure you choose, and compatible agents can use CLI and API discovery to reach its published information.
Keep credentials and private policy details in the systems responsible for access. The MCP endpoint publishing guide covers the public record work without changing the gateway's enforcement duties.
Choose one gateway approach, connect the supplier workflow, and give the working service a name people can return to. Start with the HeadlessDomains.com setup instructions.