MCP Gateways, Catalogs and Governance
Connecting one server is easy. Knowing which servers are in use, by whom and with what access takes deliberate design.
Give people an approved catalog that is easier to use than the alternatives, enforce access at a gateway or in the host, tie every server to an owner and a risk level, keep authorization per user through your identity provider, record what was called, and be able to switch any server off quickly.
What you will learn: the problems that appear at scale, catalog and registry design, what a gateway can and cannot do, a runnable policy check, central authorization, approval workflows, audit and measures of success.
Prerequisites: MCP Authentication and Security and Responsible AI Principles and Governance Council.
Checked against the 2026-07-28 specification and the official registry documentation in November 2026. The policy script is plain Python that illustrates the logic; it is not a gateway product.
What goes wrong without it
| Situation | Consequence |
|---|---|
| Each person installs servers from the internet | Unreviewed code runs with their access |
| Teams build the same integration separately | Duplicated effort and inconsistent rules |
| Shared administrator credentials | No one can tell who did what |
| No list of connections | Incidents take days to scope |
| Servers change unannounced | Assistants behave differently with no explanation |
| Leavers keep tokens | Access outlives employment |
Banning the protocol tends to push use out of sight. The workable answer is a sanctioned path that is quick and safe.
The four parts of a managed setup
The internal catalog
A catalog entry should answer the reviewer's questions without a meeting.
| Field | Example of content |
|---|---|
| Name and owner | orders, commerce team, on-call rota |
| Source and version | Repository, image digest, approved version |
| Tools and effects | Read or change, with the systems touched |
| Data classes | Customer contact details; no payment data |
| Access | Roles allowed, scopes required |
| Risk level and approvals | Which calls need a person |
| Definition fingerprint | Used to detect changes |
| Review and retirement dates | When it is looked at again |
Public and private registries
The official MCP Registry is a public catalog of server metadata. A server.json file describes a server, its namespace and where to obtain it; the registry holds the description, while packages and services live elsewhere. Aggregators and subregistries can copy that data and add curation or their own fields, and a server's status can later change, for example to deprecated or deleted, so copies should keep it current.
An organization can run its own subregistry or catalog for internal and approved external servers. A public listing tells you that something exists and who published it. It is not an approval. Review before admitting any entry, and pin what you admit.
What a gateway does
A gateway sits between clients and servers. Since the 2026-07-28 revision, requests name their method and tool in headers, so a gateway can route and apply rules without parsing every body.
| Gateway can | Gateway cannot |
|---|---|
| Allow only cataloged servers and versions | Know whether a server's code is honest |
| Allow tools by role | Judge record-level permission on its own |
| Rate limit and cap sizes | See calls from servers that bypass it |
| Record decisions in one place | Remove injected instructions reliably |
| Disable a server quickly | Undo actions already taken |
Headers are claims until the server compares them with the body. The specification advises intermediaries that enforce policy on them to check that the protocol version requires that validation, and to reject older or unversioned requests instead of trusting the headers.
A policy decision, in code
"""Policy decisions a gateway can make from the MCP method and tool name."""
import fnmatch
CATALOG = { # server -> approved version and what each role may call
"orders": {"version": "2.3.1", "owner": "commerce-team", "roles": {
"support": ["list_orders"],
"supervisor": ["list_orders", "cancel_order"]}},
}
ALWAYS = {"server/discover", "tools/list"}
def decide(role, server, version, method, name=None):
entry = CATALOG.get(server)
if entry is None:
return False, "server not in catalog"
if version != entry["version"]:
return False, f"version {version} not approved"
allowed = entry["roles"].get(role)
if allowed is None:
return False, "role has no access"
if method in ALWAYS:
return True, "discovery"
if method != "tools/call":
return False, f"method {method} not enabled"
if not any(fnmatch.fnmatchcase(name or "", rule) for rule in allowed):
return False, "tool not allowed for role"
return True, "allowed"
REQUESTS = [
("support", "orders", "2.3.1", "tools/list", None),
("support", "orders", "2.3.1", "tools/call", "list_orders"),
("support", "orders", "2.3.1", "tools/call", "cancel_order"),
("supervisor", "orders", "2.3.1", "tools/call", "cancel_order"),
("supervisor", "orders", "2.4.0", "tools/call", "cancel_order"),
("supervisor", "orders", "2.3.1", "resources/read", "orders://all"),
("support", "free-search", "1.0.0", "tools/call", "search"),
]
for role, server, version, method, name in REQUESTS:
ok, why = decide(role, server, version, method, name)
verdict = "ALLOW" if ok else "DENY "
target = name or method
print(f"{verdict} {role:10} {server}@{version} {target:13} {why}")
Output:
ALLOW support orders@2.3.1 tools/list discovery
ALLOW support orders@2.3.1 list_orders allowed
DENY support orders@2.3.1 cancel_order tool not allowed for role
ALLOW supervisor orders@2.3.1 cancel_order allowed
DENY supervisor orders@2.4.0 cancel_order version 2.4.0 not approved
DENY supervisor orders@2.3.1 orders://all method resources/read not enabled
DENY support free-search@1.0.0 search server not in catalog
The rule set denies by default: unknown server, unapproved version, unknown role and unlisted method are all refused, each with a reason that can be recorded and shown. Version 2.4.0 stays blocked until someone approves it. In a real deployment the role comes from a validated token and the version from the route or deployment record, never from a value the caller can choose.
Authorization at scale
Asking every employee to authorize every server is tedious and hard to audit. The optional Enterprise-Managed Authorization extension makes your identity provider the decision point: the client obtains an identity assertion grant and exchanges it for a token from the server's authorization server. Administrators manage access in one place, and removing a person removes their access at the source. Check support in your identity provider, clients and servers before planning around it.
For machine-to-machine use, a separate extension covers the OAuth client credentials flow. Give each workload its own identity, narrow scopes and a human owner.
A gateway that holds one powerful credential for every backend recreates the confused deputy at larger scale. Exchange tokens per user and per audience, and never pass a client's token straight through.
Approval workflow
| Risk level | Typical server | Review depth |
|---|---|---|
| Low | Reads public or non-sensitive reference data | Checklist, automated scans |
| Medium | Reads internal data | Security and data owner review |
| High | Changes records, money, access or production | Full review, approval on calls, drills |
Set a target time for each level. A review that takes a quarter invites workarounds. Align the levels with Risk Tiers, Approvals and Human Oversight.
Managing change
Approval describes a moment. Servers, models and the data behind them keep moving, so define what triggers another look.
| Change | Response |
|---|---|
| Patch release, same tool definitions | Automated scans and tests, then admit |
| Description or schema altered | Hold, review the difference, rerun tool selection tests |
| New tool or wider scope | Review as a new admission at that risk level |
| New data class or destination | Data owner and privacy review |
| Owner leaves or team dissolves | Reassign within a set period or suspend |
| Vulnerability announced | Find affected versions from the catalog; patch or disable |
Pin the artifact itself, such as an image digest or package version with a hash, as well as the definitions. For third-party hosted servers you cannot pin the code, so rely on definition checks, contract terms, narrow scopes and monitoring, and give them a higher risk level than equivalent software you run.
Who does what
| Role | Accountable for |
|---|---|
| Server owner | Code, permissions, releases, incidents and retirement |
| Platform team | Catalog, gateway, identity integration and shared records |
| Security | Review standard, testing, exceptions and response |
| Data owner | Which data may be exposed and to whom |
| Users and managers | Requesting access and reporting odd behavior |
Allow exceptions, but give each one a named approver, a reason and an end date, and list them where reviewers will see them. An exception with no expiry is a policy change that nobody decided to make.
Records that answer questions
Record the time, user, client, server and version, method, tool, policy decision, outcome and trace identifier. Decide separately whether arguments and results are stored; they often contain personal data. Protect the records from alteration, set a retention period and test that you can answer "who called this tool last week?" in minutes. See Safe Logging, Sampling and Retention.
Finding unmanaged servers
- Use managed host settings that restrict which servers can be added, where the host supports it.
- Inventory host configuration files on managed devices.
- Watch outbound traffic for MCP headers and unknown endpoints.
- Offer an easy request form, and treat discoveries as demand to be met.
Make the approved path the easy one
Governance succeeds when following it takes less effort than avoiding it. Treat server builders and users as customers of the platform.
| Offer | What it saves |
|---|---|
| A server template with authorization, logging and tests already wired | Each team reinventing security |
| A checklist that runs in the build pipeline | Late surprises at review |
| One request form with a published turnaround | Chasing approvers |
| A searchable catalog with copy-ready host settings | Guesswork and unsafe copies |
| A sandbox with synthetic data | Experiments against production |
Test the policy itself
Rules are code and deserve review, version control and tests. For every role, assert both what is allowed and what is refused. Before changing a rule, replay recent recorded decisions through the new version and inspect every outcome that differs. Roll out stricter rules in a report-only mode first, so owners see what would break, but set a date when enforcement begins.
Measures worth tracking
| Measure | Shows |
|---|---|
| Share of calls through approved paths | Whether the sanctioned route works |
| Servers with owner and current review | Hygiene |
| Time to approve, by risk level | Friction |
| Time to disable a server in a drill | Response ability |
| Denied calls by reason | Policy fit or misuse |
| Unused servers and permissions | What to remove |
An organization starts with five reviewed read-only servers in a catalog, managed host settings and logging. After a month it adds role-based tool rules at a gateway, then identity provider integration, and only then admits servers that change records, each with approval steps and a practiced off switch.
Introducing it in stages
| Stage | Do | Ready to move on when |
|---|---|---|
| Discover | List servers in use, their owners and the data they reach | The list is believed to be reasonably complete |
| Publish | Offer a catalog of reviewed servers with setup instructions | Common needs are covered |
| Route | Send remote traffic through the gateway, observing first | Logs show who calls what |
| Enforce | Apply deny-by-default rules, team by team | Exceptions have owners and end dates |
| Maintain | Re-review on change, retire unused entries | This continues as routine work |
Observing before enforcing shows which rules would break real work. Say in advance when enforcement begins, and give teams a quick way to request what is missing.
Retiring a server
- Announce the date and the replacement to every recorded user.
- Watch calls fall, and contact those who remain.
- Remove catalog and gateway entries.
- Revoke its credentials and registrations.
- Keep the review and audit records for the required period.
Common mistakes
| Mistake | Better practice |
|---|---|
| Buying a gateway before defining ownership | Start with a catalog and owners |
| Treating a public registry as an allow list | Review and admit explicitly |
| Approving a server forever | Pin versions and set review dates |
| Trusting the gateway alone | Servers still check every request |
| Logging everything including secrets | Minimize and redact |
Checklist
- Every server has an owner, version and risk level
- Admission is deny by default
- Access follows the person through the identity provider
- Backends receive their own tokens
- Definition changes are detected and reviewed
- Decisions and calls are recorded with a retention rule
- Disabling a server has been rehearsed
Frequently asked questions
Do we need a gateway on day one?
Not necessarily. With few servers, managed host settings, per-server authorization and a catalog may be enough. Add a gateway when central rules, routing or records justify running it.
Can a gateway work with local stdio servers?
Not directly, since traffic stays on the machine. Govern them through allowed packages, device management and host settings, or host them centrally.
Who should own the catalog?
Usually a platform team runs it, security sets review rules and each server has its own accountable team. See Agent Fleets and Internal Platforms.
How do agents fit the same rules?
Give each agent an identity, list the servers it may use and apply the same records and limits. An automated caller needs at least as much control as a person.
References and further reading
- About the MCP Registry
- Registry aggregators and subregistries
- MCP authorization extensions
- Streamable HTTP request headers
Next steps
Agent Inventory, Policy-as-Code and Release Gates
Extend the inventory to agents.
Secure Agent Reference Architecture
Place the gateway in a wider design.
MCP Troubleshooting, Versions and Message Reference
Support your server owners.