Skip to main content
Comparison Last reviewed:

Do You Need a Proxy or Gateway to Secure AI Agents?

A proxy or gateway isn't required to secure AI agents, although it is a sound control for the traffic routed through it. Agent-native security attaches inside the environment where each agent runs, so it sees configuration, tool connections and decisions that never reach a gateway, and it adds no network hop and no chokepoint. Organizations that already run a gateway usually keep it and add agent-native coverage for what the gateway can't see.

What does a proxy or gateway do well for AI agents?

A gateway gives a security team one place to see and govern the agent traffic routed through it, and for agents standardized on a protocol such as MCP that is genuinely useful. Because every governed call arrives at the same point, the team can keep a registry of approved servers, broker credentials so individual agents don’t hold long-lived secrets, deny a server or a tool outright, and keep a record of what was requested.

The pattern is also familiar, since most security teams already run API gateways and web proxies and know how to operate them. Where the agents that matter are services running in infrastructure you control and calling a known set of tools, a gateway covers most of what they do, which is why the full case for one in MCP Gateways: What They Cover and What They Miss is worth reading before concluding that a gateway is the wrong tool.

What does a gateway see of a typical agent’s work?

Usually less than the team running it assumes, and following one agent through an ordinary session shows why. Consider a developer’s coding agent that has been given three capabilities: a skill that lets it run database migrations, an MCP server for the ticketing system that the developer configured on their own laptop, and a remote MCP server for internal documentation that the company routes through its gateway.

The developer asks the agent to pick up a ticket. It reads the ticket through the local MCP server, which never touches the gateway, then queries the documentation server, which does. It loads the migration skill from its own configuration, which produces no network traffic at all, and runs the migration through a shell using the developer’s database credentials. Four meaningful actions took place, and the gateway logged one of them.

Nothing in that session was misconfigured or malicious, and the gateway did exactly what it was built to do. The gap comes from where the gateway sits, because it can only see the calls that were routed to it, and an agent’s work increasingly happens through routes that weren’t.

Where does a gateway stop working?

A gateway stops at its own boundary, which is an architectural limit rather than a sign of an immature product, and the session above shows three of the ways it bites. Capabilities defined in configuration, such as skills, grant access without an outbound call for a proxy to intercept. Agents and servers configured locally, or agents nobody registered, never appear to it, so gateway coverage measures adoption, which is the very thing an organization with shadow AI and agent sprawl can’t vouch for. And even for the calls it does see, a gateway receives the request without the instruction, retrieved context or reasoning behind it, so a request from a prompt-injected agent looks identical at the chokepoint to the same request made in good faith.

These gaps show up in real estates as well as in examples. A British bank that had already deployed MCP gateways and surveyed its developers still had significantly more tool connections surfaced by a later assessment, concentrated in the tool types a gateway never sees.

The fourth limit is operational. Every governed call waits on a network hop, so latency and availability become properties of the gateway rather than of the agent, which matters little for a few hundred agents and a great deal at the volumes some enterprises already run, where one customer applies inline controls across tens to hundreds of thousands of agent operations a day. A hedge fund customer told us that downtime from a failed control could cost more than a security incident, which is what makes the choice between failing open and failing closed an operational decision rather than a configuration detail.

Is a gateway the right way to control AI agents?

It is the right way to control the traffic that reaches it, and on its own it can’t control agents whose work happens elsewhere. In most gateway products the component that intercepts a request is also the one that enforces policy on it, so the amount you can control is capped by the amount the chokepoint can see.

That coupling also limits what enforcement can do once a request does arrive, because a boundary can generally allow or deny and little in between. A finance agent legitimately handling financial data and a marketing agent that shouldn’t be touching it can send requests that look the same at the wire, so the gateway blocks both or permits both, when what the organization wanted was a decision that depended on which agent was asking and why.

What does agent-native security mean?

Agent-native security controls an agent from inside the environment where it runs, by reading its configuration and attaching to its execution path, rather than by inspecting traffic that has been re-routed to a central point. Nothing has to be pointed at the security layer before an agent can be seen, because discovery works from the artifacts agents already leave in code repositories, on endpoints, in cloud accounts and in browsers.

Applied to the session above, an agent-native view would have recorded the coding agent, its owner and all three of its capabilities before the developer typed anything, and would have seen each of the four actions as it happened. Because it sits beside the agent, it can also use the lifecycle hooks a harness exposes, such as the moment before a tool call executes, to act on a single action with the agent’s context available, so a policy can distinguish a migration against a test database from the same command pointed at production.

Gateway-based vs agent-native: which scales better?

Agent-native security scales better as the number and variety of agents grows, because its coverage doesn’t depend on routing and it introduces no shared chokepoint for traffic to queue at. Within the protocol it proxies, a gateway scales as well as any API gateway, and it remains the stronger tool for credential brokering and for holding a central registry of approved servers.

Gateway or proxyAgent-native
Where it sitsIn the network path, between agents and their toolsInside the environment where each agent runs
What it seesTraffic routed to itAgent configuration, tool connections and execution path
Coverage depends onEvery agent being configured to use itThe surfaces it reads: cloud, code, endpoint and browser
Skills and other configuration-defined capabilitiesNot visible, because there is no traffic to inspectVisible, read from the agent’s configuration
LatencyA network hop on every governed callNo added network hop
Credential brokering and server registryStrong, with secrets and approvals held in one placeReports which servers agents actually use, so a registry can be checked against reality
Failure modeAn outage affects every governed call at onceA failure is local to one agent’s environment
EnforcementAllow or deny at the boundaryPer agent and per action, with the agent’s context

The skills row is the one most easily missed, because the gap can’t be seen from inside a gateway deployment, whose logs show what arrived and have no way to show what never did.

Can you run a gateway and agent-native security together?

Yes, and where a gateway is already deployed that is usually the most sensible arrangement. The gateway keeps brokering credentials and enforcing its registry for the traffic it receives, while agent-native discovery answers a question no control can answer about itself, which is whether every agent is in fact routing through it.

Teams that are furthest along with gateways tend to ask for exactly that confirmation, often because they maintain an internal registry of pre-approved MCP servers and want evidence that coding agents on endpoints use it instead of pulling a server straight from a public repository. We make the longer version of this argument in Agentic AI Governance: Why MCP Gateways Fall Short.

How do you tell whether a gateway is enough for your agents?

Four questions will show how much of your agent estate a gateway covers and what happens at its edges.

  1. What share of your agents’ capabilities arrive through the protocol the gateway proxies? If skills, plugins and SaaS connectors are also in use, the gateway covers a slice, and it helps to know how large that slice is before anyone reports coverage upward.
  2. How do you know every agent is routed through it? If the answer depends on developers configuring it correctly, gateway coverage is a floor rather than a measurement.
  3. What happens when the gateway is slow or unavailable? Choose deliberately between failing open and failing closed, because otherwise the choice gets made for you during an incident.
  4. Can you act on one agent’s action without blocking every agent that sends a similar request? If the only lever is allow or deny at the boundary, you have access control without proportionate control.

Common questions

Which AI agent security platforms work without a proxy?

Platforms that discover and control agents from the environments they run in, rather than from a point their traffic passes through. In practice that means reading agent configuration in code repositories, on endpoints, in cloud accounts and in browsers, and attaching controls through the agent's own lifecycle hooks. Geordie, which publishes this Knowledge Center, works this way. When evaluating any platform, ask whether anything has to be pointed at it before an agent can be seen, because if the answer is yes, coverage depends on adoption.

Does agent-native security add latency?

It doesn't add a network hop, which is where most gateway latency comes from. A gateway puts a round trip into every governed call, and every call waits on the gateway being available. An agent-native control runs inside the agent's own execution path, so a check happens where the action is decided rather than at a separate point the request has to travel to and wait at.

Should we remove our MCP gateway if we adopt agent-native security?

No. A gateway that brokers credentials and holds an approved-server registry is doing useful work, and nothing about agent-native coverage makes that work redundant. The two answer different questions, since the gateway controls the MCP traffic it receives and agent-native discovery tells you whether every agent is actually sending its traffic there. Discovery that works independently of routing is how you test that, by comparing the agents it finds with the agents the gateway has seen.

Is a proxy ever the better choice?

For a narrow, well-defined estate it can be the simpler one, for example where every agent is a sanctioned service calling a small set of MCP servers from infrastructure you control. The trade-off changes as the estate widens to coding agents on laptops, skills defined in configuration, SaaS-hosted agents and browser agents, because each of those is a route the proxy doesn't sit on.

Keep reading

More from the Knowledge Center

Comparison Discovery & Posture

AI Agent Discovery, Inventory and Posture Management: What Each One Means

Three terms that are often used interchangeably, for three jobs that depend on each other. What each one means, the fields an inventory needs before it can support a decision, and how to build one across cloud, code, endpoint and browser.

Comparison Discovery & Posture

AI Agent Security vs Cloud Security

Cloud security secures the environment an agent runs in – not the agent's configuration, tools or decisions. What CSPM, CWPP and CIEM cover, and what they miss.

Comparison Observability & Detection

AI Agent Security vs NDR

NDR inspects the traffic an agent generates, but the riskiest part of what an agent does never crosses the wire. What network detection covers for AI agents, and what it can't.