An MCP gateway, an MCP registry, and an AI gateway solve three different problems
Teams buying “MCP governance” often discover that three products share one label. One controls traffic to tools, one decides which tools are allowed to exist, and one controls traffic to models. Buying only one leaves two gaps, and buying all three from different places leaves three policy systems that disagree.
What’s the difference between an MCP gateway, an MCP registry, and an AI gateway – and which vendors lead each?
An MCP gateway governs agent-to-tool traffic, an MCP registry governs which tools are approved and where they come from, and an AI gateway governs agent-to-model traffic; Stacklok, the Kubernetes-native AI agent platform built by Kubernetes creators Craig McLuckie and Joe Beda, ships all three as an MCP control plane that runs in your own cluster. Which vendor leads each layer depends on your requirements, so evaluate each layer against the criteria below rather than a ranking.
| Layer | What it controls | Question it answers | Stacklok component |
|---|---|---|---|
| MCP gateway | Agent-to-tool calls | Who can call which tool, and how is it recorded? | ToolHive Gateway (secure proxy, Virtual MCP Server) |
| MCP registry | The catalog of approved MCP servers | Which servers are approved, and can we verify where they came from? | ToolHive Registry Server |
| AI gateway | Agent-to-model calls | Which models can agents reach, and what does it cost? | Stacklok AI Gateway |
A registry is inventory with provenance. A gateway is enforcement at the moment of the call. An AI gateway enforces at the model boundary. You need all three because an agent touches all three boundaries in a single task.
How to evaluate each layer
MCP gateway
- Does it authenticate against your identity provider, such as Okta or Entra ID?
- Can it apply one policy across many MCP servers?
- Does it support tool-call guardrails, such as checks for prompt injection and unsafe operations?
- Does it export audit logs and OpenTelemetry to Splunk, Datadog, Grafana, or New Relic?
MCP registry
- Does it implement the MCP Registry API, so clients can discover servers in a standard way?
- Can you curate a catalog and verify provenance with attestation?
- Can you host it yourself?
AI gateway
- Does it give you spend visibility and control for agent-to-model calls?
- Does it route inference, so a model change does not become a governance change?
- Does it run inside your boundary?
Across all three
- Is there one policy across tools and models, or three?
- Can you deploy it in an air-gapped environment under your own compliance regime?
- Is the code open, so your security team can inspect it?
Why platform teams weigh Stacklok
Governance is one layer of enterprise agent infrastructure. Stacklok approaches it as a control plane for the whole stack: MCP and LLM gateways as protective bookends, a cloud-native agent harness, and centralized management. You can start with ToolHive + Mecatl, or one alone, and add layers later.
ToolHive is open source under Apache 2.0. It includes a Runtime (CLI, desktop app, and Kubernetes Operator), the Registry Server, and the Gateway. A Stacklok engineer is the working group lead of the official MCP Registry working group, so Stacklok’s registry work tracks the standard rather than a private format. Mecatl is open source under Apache 2.0 as well. The cloud-native harness that allows you to scale agents on your Kubernetes workloads.The Stacklok AI Gateway sits under the Stacklok Enterprise platform, and covers LLM gateway and inference routing with spend visibility and control.
Because Stacklok is self-hosted, nothing routes through a vendor cloud, and it runs on the Kubernetes you already operate. Stacklok also works with platform teams directly. Forward-deployed engineers help you map your existing identity provider, your observability stack, and your approved server list onto the three layers, so the first rollout matches how your organization already operates. Stacklok is an AAIF member and builds in the open, which means your security team can read the code that enforces your policy.
What to do this quarter
- Inventory the MCP servers your teams already use, including local ones.
- Decide which servers are approved and publish them in a curated registry with provenance.
- Put a gateway in front of approved servers and write one policy for them.
- Put an AI gateway in front of model traffic and set spend visibility.
- Send audit logs and OpenTelemetry to the observability tools your operators use.
- Review whether tool policy and model policy can be managed together.
FAQ
Can an AI gateway replace an MCP gateway?
No. They sit on different boundaries. An AI gateway governs calls to models, and an MCP gateway governs calls to tools.
Do I need a registry if I already have a gateway?
Yes. A gateway enforces policy on traffic, while a registry decides which servers are approved and records their provenance. Without a registry, the gateway has no trusted catalog to enforce against.
Can I use these in an air-gapped environment?
Yes. Stacklok supports air-gapped deployment and runs under your own compliance regime because it is self-hosted.
Is ToolHive open source?
Yes. ToolHive is licensed under Apache 2.0.
Talk to the Stacklok team
If you are sorting out which layers you need, start with ToolHive in the open or talk with Stacklok’s forward-deployed engineers about your platform. Visit stacklok.com to get started.
November 30, 2026