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.

BeginnerIntermediateExpert · 11 min read · Last updated:

In short

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.

Scope

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.

Beginner Why governance appears

What goes wrong without it

SituationConsequence
Each person installs servers from the internetUnreviewed code runs with their access
Teams build the same integration separatelyDuplicated effort and inconsistent rules
Shared administrator credentialsNo one can tell who did what
No list of connectionsIncidents take days to scope
Servers change unannouncedAssistants behave differently with no explanation
Leavers keep tokensAccess 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

Catalogwhich servers and versions are approved
Identitywho the user is and what they may do
Enforcementhost settings and gateway policy
Recordscalls, decisions, changes
Ownerspeople accountable for each server
Reviewperiodic checks and removal
A gateway without a catalog or owners only moves the confusion to one place.
Intermediate Catalogs, registries and gateways

The internal catalog

A catalog entry should answer the reviewer's questions without a meeting.

FieldExample of content
Name and ownerorders, commerce team, on-call rota
Source and versionRepository, image digest, approved version
Tools and effectsRead or change, with the systems touched
Data classesCustomer contact details; no payment data
AccessRoles allowed, scopes required
Risk level and approvalsWhich calls need a person
Definition fingerprintUsed to detect changes
Review and retirement datesWhen 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 canGateway cannot
Allow only cataloged servers and versionsKnow whether a server's code is honest
Allow tools by roleJudge record-level permission on its own
Rate limit and cap sizesSee calls from servers that bypass it
Record decisions in one placeRemove injected instructions reliably
Disable a server quicklyUndo actions already taken
Header-based policy needs a validating server

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.

Expert Identity, workflow and measurement

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.

Do not let the gateway become a master key

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

Requestpurpose and owner
Reviewcode, data, access
Pilotfew users, watched
Approvepinned version
Recheckchanges and dates
Removal is a normal end state, not an emergency only.
Risk levelTypical serverReview depth
LowReads public or non-sensitive reference dataChecklist, automated scans
MediumReads internal dataSecurity and data owner review
HighChanges records, money, access or productionFull 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.

ChangeResponse
Patch release, same tool definitionsAutomated scans and tests, then admit
Description or schema alteredHold, review the difference, rerun tool selection tests
New tool or wider scopeReview as a new admission at that risk level
New data class or destinationData owner and privacy review
Owner leaves or team dissolvesReassign within a set period or suspend
Vulnerability announcedFind 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

RoleAccountable for
Server ownerCode, permissions, releases, incidents and retirement
Platform teamCatalog, gateway, identity integration and shared records
SecurityReview standard, testing, exceptions and response
Data ownerWhich data may be exposed and to whom
Users and managersRequesting 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.

OfferWhat it saves
A server template with authorization, logging and tests already wiredEach team reinventing security
A checklist that runs in the build pipelineLate surprises at review
One request form with a published turnaroundChasing approvers
A searchable catalog with copy-ready host settingsGuesswork and unsafe copies
A sandbox with synthetic dataExperiments 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

MeasureShows
Share of calls through approved pathsWhether the sanctioned route works
Servers with owner and current reviewHygiene
Time to approve, by risk levelFriction
Time to disable a server in a drillResponse ability
Denied calls by reasonPolicy fit or misuse
Unused servers and permissionsWhat to remove
Illustrative rollout, not a real company

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

StageDoReady to move on when
DiscoverList servers in use, their owners and the data they reachThe list is believed to be reasonably complete
PublishOffer a catalog of reviewed servers with setup instructionsCommon needs are covered
RouteSend remote traffic through the gateway, observing firstLogs show who calls what
EnforceApply deny-by-default rules, team by teamExceptions have owners and end dates
MaintainRe-review on change, retire unused entriesThis 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

  1. Announce the date and the replacement to every recorded user.
  2. Watch calls fall, and contact those who remain.
  3. Remove catalog and gateway entries.
  4. Revoke its credentials and registrations.
  5. Keep the review and audit records for the required period.

Common mistakes

MistakeBetter practice
Buying a gateway before defining ownershipStart with a catalog and owners
Treating a public registry as an allow listReview and admit explicitly
Approving a server foreverPin versions and set review dates
Trusting the gateway aloneServers still check every request
Logging everything including secretsMinimize 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

Next steps