---
title: "Agent gateway vs AI gateway vs MCP gateway"
source: "https://www.tigera.io/learn/guides/ai-agent-security/agent-gateway-vs-ai-gateway-vs-mcp-gateway/"
description: "AI gateways govern model calls, MCP gateways govern tool calls, and agent gateways govern both plus agent-to-agent calls. See what each enforces and misses"
---

## Guides: Agent gateway vs AI gateway vs MCP gateway

# Agent gateway vs AI gateway vs MCP gateway: what is the difference?

By [Alister Baroi](https://www.tigera.io/blog/author/alister-baroi/), Technical Evangelist at Tigera | Published: Dec 03, 2026 | Last updated: Dec 03, 2026 | 11 min read

- [AI Agent Security](https://www.tigera.io/learn/guides/ai-agent-security/)

- [eBPF for AI agent security](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/)

- [Shadow AI agents](https://www.tigera.io/learn/guides/ai-agent-security/shadow-ai-agents/)

- [Agent gateway vs AI gateway vs MCP gateway](https://www.tigera.io/learn/guides/ai-agent-security/agent-gateway-vs-ai-gateway-vs-mcp-gateway/)

- [MCP security](https://www.tigera.io/learn/guides/ai-agent-security/mcp-security/)

- [Cedar policy for AI agents](https://www.tigera.io/learn/guides/ai-agent-security/cedar-policy-ai-agents/)

- [AI Agent Security Platforms for Cloud-native Deployments](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-security-platforms-for-cloud-native-deployments/)

- [AI Agent Security Platforms for Kubernetes](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-security-platforms-for-kubernetes/)

- [AI Agent Observability](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-observability/)

- [AI Agent Governance](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-governance/)

- [Agentic AI Security](https://www.tigera.io/learn/guides/ai-agent-security/agentic-ai-security/)

- [AI Gateway](https://www.tigera.io/learn/guides/ai-agent-security/ai-gateway/)

- [AI Agent Security Providers](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-security-providers/)

**An AI gateway governs an application’s calls to model providers. An MCP gateway governs an agent’s calls to tools over the Model Context Protocol. An agent gateway governs the calls an agent makes to models, tools and other agents, and checks the identity of the agent and of the user it acts for on each one. All three see only the traffic routed through them, so none replaces runtime visibility underneath the agent.**

Capability
AI gateway
MCP gateway
Agent gateway

Traffic it governs
Calls to model providers
Calls to MCP tool servers over HTTP
Calls an agent makes to models, tools and other agents

Who it identifies
An application, by its gateway key
An agent or user, by OAuth token
The agent itself, by identity provider credential or workload certificate

Knows the user the caller acts for
No
Partly, from the OAuth grant
Yes, when the agent presents a delegated token from token exchange

Policy granularity
Model, provider, token budget, prompt and response content
Server, tool and sometimes arguments
Agent, user, destination, tool, arguments and model in one rule

Credential handling
Holds provider keys centrally
Holds OAuth credentials for each server
Issues short-lived, per-destination tokens and injects provider keys

Audit record
Model, tokens and latency per call
Tool calls per agent
Agent, user, policy, decision, tool, model and trace per call

What it cannot see
Anything not routed through it
Anything not routed through it, including stdio servers
Anything not routed through it, including unregistered agents

## Key takeaways

- A gateway is defined by the traffic it sits in front of: model providers, MCP tool servers, or the full set of destinations an agent calls

- The question an agent gateway adds is “on whose behalf”: which agent is calling, for which user, and whether that combination may make this call

- Gateways differ in what they understand about the calls they see. They share the same blind spot for calls that go around them

**In this article:**

- Why did AI need a new kind of gateway?

- What is an AI gateway?

- What is an MCP gateway?

- What is an agent gateway?

- What does an agent gateway do to a call before it runs?

- Which gateway do you need?

- What does no gateway see?

- Frequently asked questions

- How Lynx approaches this

- Related guides

## Why did AI need a new kind of gateway?

API gateways were built for inbound, request-response traffic with known paths and payloads, and AI workloads broke both assumptions. An API gateway sits at the edge of a system and handles routing, TLS termination, authentication, rate limits and logging for clients calling services inside it.

The calls that matter for AI run the other way. They go outbound from workloads to model providers, and east-west from agent to tool and agent to agent. The payloads are prompts, tool arguments and model responses, and the caller is software that decides at runtime which call to make next.

## What is an AI gateway?

An AI gateway is a proxy between applications and the large language model providers they call. It typically provides:

- One endpoint in front of many providers, with routing and failover

- Central storage of provider API keys, so applications do not hold them

- Token budgets and rate limits per team or application

- Controls on prompts and responses, such as redaction or content filtering

Its boundary is that it understands model calls and little else. It usually knows an application by the key it presented, not which agent inside that application was acting or for which user, and it has no view of the tool the agent calls next.

## What is an MCP gateway?

An MCP gateway is a proxy between AI agents and the tool servers they reach over the Model Context Protocol. [MCP standardizes](https://modelcontextprotocol.io/specification/2026-07-28/server/tools) how an agent lists tools with `tools/list` and invokes one with `tools/call`, so a gateway that speaks the protocol can present one catalog of approved servers, handle OAuth to each, allow or deny individual tools and log tool calls.

The specification explains the appeal. Over HTTP, a protected MCP server [acts as an OAuth 2.1 resource server](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), must validate that tokens were issued for it, and must not pass a client’s token through to upstream APIs. Getting that right once in a gateway is easier than in each server.

The boundary is the transport. An MCP server launched over stdio [runs as a subprocess](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports) and [takes credentials from its environment](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), so it never produces a network request for a gateway to see.

## What is an agent gateway?

An agent gateway is a proxy in the path of an agent’s calls to models, MCP servers and other agents that decides, before each call, whether this agent acting for this user may make it. Three things distinguish it:

- It identifies the agent itself, with an identity provider credential or workload certificate, not the application or a shared key

- It carries the identity of the user the agent acts for, so policy can depend on who asked

- It applies one policy across models, tools and agents

The standard mechanism for carrying the user is [OAuth 2.0 token exchange](https://datatracker.ietf.org/doc/html/rfc8693). The caller’s token is exchanged for one that keeps the user as the subject and names the agent as the actor. Issuing that token for a single destination with a short lifetime limits what a captured token can do.

![Four gateways by traffic: API for services, AI for models, MCP for tools, agent gateway for the calls an agent makes](https://www.tigera.io/app/uploads/2026/12/four-gateways-four-kinds-of-traffic.png)Figure 1. Four gateways, four kinds of traffic. Each one governs the calls routed through it, and none of them sees a call that went around it.

An agent gateway is less a fourth category than a superset. It fronts the model calls an AI gateway fronts and the tool calls an MCP gateway fronts, and adds agent-to-agent calls and per-call identity.

## What does an agent gateway do to a call before it runs?

An agent gateway makes six decisions in the time it takes to forward a request, and each produces a fact the audit record keeps.

![Six steps inside an agent gateway: identify the caller, resolve the user, decide, swap credentials, apply limits, record](https://www.tigera.io/app/uploads/2026/12/what-an-agent-gateway-does-to-a-call.png)Figure 2. What an agent gateway does to a call before it runs. A call denied at step three stops at the gateway, and the denial is recorded too.

- Identify the caller: which agent is this, from its credential, its workload certificate or the Kubernetes workload it runs as

- Resolve the user: read the user from a delegated token, obtained by token exchange, that keeps the user as subject and names the agent as actor

- Decide: a default-deny policy answers whether this agent, for this user, may call this destination with these arguments

- Swap credentials: replace the inbound token with a short-lived one for this destination, and inject the provider key for model calls

- Apply limits: rate limits, token budgets, payload and timeout caps

- Record: agent, user, policy, decision, tool and argument names, model and trace ID

These records can be emitted as OpenTelemetry, whose [GenAI semantic conventions](https://opentelemetry.io/blog/2026/genai-observability/) define spans for agent invocations, model calls and tool executions. Note that each step happens before the call executes. The gateway says nothing about what the agent does afterwards with the response.

## Which gateway do you need?

Four questions, asked in order, settle it for most environments.

![Decision guide: AI gateway for models, MCP gateway for HTTP tools, agent gateway for agent calls, runtime layer for bypasses](https://www.tigera.io/app/uploads/2026/12/which-gateway-do-you-need-decision-guide.png)Figure 3. Do you need a gateway, and which kind? Questions one to three can be answered by one agent gateway. Question four is not answered by a gateway.

- Do your agents call model providers? You need AI gateway capability: provider keys out of the agents, token budgets, routing and failover

- Do your agents call MCP servers over HTTP? You need MCP gateway capability: one catalog, OAuth to each server, per-tool allow-lists and a tool call log

- Do agents call other agents, or act on behalf of a user? You need an agent gateway, because the first two do not carry both identities through each hop

- Could an agent reach a model, tool or agent without going through the gateway? If yes, you also need a runtime layer under the agents

One gateway that answers the first three questions is preferable to three. Separate AI, MCP and agent gateways mean three policy languages, three identity integrations and three audit formats that someone has to join later.

## What does no gateway see?

No gateway sees a call that was not routed through it. Four kinds of agent activity commonly go around one:

- An agent configured with a provider key that calls the provider directly

- An MCP server launched over stdio, which runs as a subprocess inside the agent’s pod

- An agent delegating to another agent in the same cluster over pod-to-pod traffic

- An agent nobody registered, which has no credential for the gateway

There is a second limit that applies even to routed calls: the gateway decides before the call runs. After it says yes, a prompt injection in a tool result or a leaked key can turn an authorized agent into a compromised one, which is why the [OWASP Top 10 for Agentic Applications](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/) lists tool misuse and rogue agents as risks.

Both limits are addressed underneath the agent, not in front of it. See [What is eBPF, and how does it secure AI agents at runtime?](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/) for the kernel-level view and [how to find shadow AI agents](https://www.tigera.io/learn/guides/ai-agent-security/shadow-ai-agents/) for the unregistered ones.

## Frequently asked questions

### Do I need an MCP gateway if I have an API gateway?

Usually yes, if your agents call MCP servers over HTTP. An API gateway can route the traffic and check a token, but it does not understand tools/list and tools/call. It cannot allow one tool and deny another, and it cannot log which tool an agent invoked.

### Can a gateway see MCP servers that run over stdio?

No. Over the stdio transport the MCP server is a subprocess of the agent and communicates over standard input and output, so there is no network request to intercept. Only observation inside the pod or from the kernel sees those tool calls.

### Does a gateway replace network policy or a service mesh?

No. Network policy and a mesh control which pods may reach which others and encrypt the connection. A gateway reasons about what the call means: which agent, for whom, which tool, allowed or not. Keep both, because they answer different questions.

### What happens to agent traffic if the gateway goes down?

Calls routed through it fail, unless the gateway is set to fail open. For a security control, failing closed is the safer default, because a gateway that fails open forwards calls without checking them. Run several replicas behind one service, and make sure agents handle a refused or timed-out call.

## How Lynx approaches this

Lynx by Tigera covers the first three questions in the decision guide with one gateway and part of the fourth with a node-level detector and sandbox policies. The Lynx gateway sits in the path of the calls a registered agent makes to a model, an MCP server or another agent. It verifies the caller with an OIDC token, a SPIFFE certificate or, for an unmodified agent, the Kubernetes workload that owns the pod.

A default-deny Cedar policy is evaluated on each request. For MCP it can match the JSON-RPC method, the tool name, the arguments, the resource URI and the prompt name.

Model calls use the same checkpoint, and provider keys stay with the gateway. LLM routes let agents call one model name while the gateway chooses the provider behind it, by weight, condition or failover, and a provider can carry a token rate limit. An allowed call to an agent or MCP server is forwarded with a short-lived token addressed to it, unless the destination has opted in to receive the caller’s own token. The decision is recorded in the Agent Trail as OpenTelemetry.

The gateway fails closed, so production installs run several replicas. Underneath, an eBPF agent detector, when enabled, reports workloads that call a model without going through the gateway and enforces sandbox policies, which limit what any workload can reach, including the calls that go around the gateway.

[Explore the AI agent security guides](https://www.tigera.io/learn/guides/ai-agent-security/) or [learn more about Lynx by Tigera](https://www.tigera.io/tigera-products/lynx/).

## Related guides

- [AI agent security: the complete guide (hub)](https://www.tigera.io/learn/guides/ai-agent-security/)

- [What is eBPF, and how does it secure AI agents at runtime?](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/)

- [MCP security: how to control which AI agents can call which tools](https://www.tigera.io/learn/guides/ai-agent-security/mcp-security/)

- [Cedar policy for AI agents: how to write default-deny rules that scale](https://www.tigera.io/learn/guides/ai-agent-security/cedar-policy-ai-agents/)

[Previous: Shadow AI: how to find the AI agents already running in your environment](https://www.tigera.io/learn/guides/ai-agent-security/shadow-ai-agents/) | [Next: AI agent governance: a working framework for platform teams](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-governance/)

Add Tigera as a preferred source on Google to see more of our content in your search results.

[![Add as a preferred source on Google](https://www.tigera.io/app/themes/tigera2021/dist/img/google-preferred-source-light.png)](https://www.google.com/preferences/source?q=tigera.io)

<!-- plugin=object-cache-pro client=phpredis metric#hits=6884 metric#misses=55 metric#hit-ratio=99.2 metric#bytes=3694756 metric#prefetches=417 metric#store-reads=30 metric#store-writes=14 metric#store-hits=423 metric#store-misses=44 metric#sql-queries=27 metric#ms-total=458.25 metric#ms-cache=17.70 metric#ms-cache-avg=0.4116 metric#ms-cache-ratio=3.9 sample#redis-hits=219545434 sample#redis-misses=8071243 sample#redis-hit-ratio=96.5 sample#redis-ops-per-sec=17 sample#redis-evicted-keys=0 sample#redis-used-memory=120231296 sample#redis-used-memory-rss=108724224 sample#redis-memory-fragmentation-ratio=0.9 sample#redis-connected-clients=1 sample#redis-tracking-clients=0 sample#redis-rejected-connections=0 sample#redis-keys=108706 -->
