Join our Newsletter — 33% off our NHI Course

Why do MCP gateways matter if we already have API gateways?

API gateways manage fixed application traffic, but MCP gateways govern tool discovery, agent context, and action selection. That difference matters because agents can choose what to call at runtime, which means security must evaluate the request in context, not just the endpoint. Existing API controls help, but they do not fully govern agent behaviour.

Why MCP gateways change the control point

MCP gateways matter because they move security from a fixed endpoint mindset to an interaction mindset. With API gateways, the main question is whether a request is allowed to reach an endpoint. With MCP, the harder question is whether an agent should discover a tool, receive context, and invoke that tool for this specific task, under this specific identity and policy state.

That shift is important because the risk is not just traffic volume or endpoint exposure, it is delegated action. An MCP gateway can sit in the path of tool registration, server selection, token handling, and request shaping, so it can enforce policy before an agent ever reaches the backing tool. That is why MCP security is usually about constraining what the agent is permitted to know and do, not only about protecting the upstream service.

API gateways still matter, especially for transport controls, authentication, schema enforcement, throttling, and routing. But they generally see a request after the agent has already decided what to call. MCP gateways are useful when the governance problem includes tool choice, scoped context, and whether a runtime action is appropriate in the current session.

What API gateways can cover, and where they stop

API gateways are strongest when the integration is already known and the API surface is relatively stable. They can centralise auth, rate limits, request validation, and logging for traffic that maps cleanly to an endpoint contract. That makes them good at controlling access to an API, but not sufficient on their own for governing an agent that can dynamically choose among tools or contexts.

For teams already using a mature API control plane, the mistake is to assume that the same controls automatically govern agent behaviour. An API gateway can verify that a call is authenticated, but it usually does not reason about whether the agent should have selected that tool, whether the call matches the current task, or whether the request is safe in the broader conversation state.

That gap is why gateway strategy should be layered. Use API controls to protect the service boundary, then use MCP controls to govern tool exposure, context mediation, and delegated action. The two are complementary, but they answer different security questions.

Why runtime context is the real control boundary

MCP changes the security question because the agent is not just sending a request, it is making a choice. The decision to discover a tool, load a server, or invoke an action can depend on prompt content, session state, retrieved context, and the permissions attached to the agent’s current credentials. That makes context part of the trust boundary.

In practice, the important control is whether the gateway can limit which tools are visible, whether it can mediate token use, and whether it can prevent the agent from treating one trusted context as if it applied everywhere. MCP Security Guide is useful here because it frames the gateway as part of the broader MCP authorization model, not just as a traffic filter.

This also explains why MCP deployments often need stronger review around confused deputy conditions, token passthrough, and overly broad tool exposure. The relevant question is not simply “can the endpoint be reached?” It is “can this agent, in this session, with this context, perform this action safely?”

Risk and Threat Considerations

The main risk is that an agent can be steered into selecting a tool or action the operator did not intend, especially when discovery and invocation happen dynamically. That increases the blast radius of a single prompt injection, compromised tool, or overly permissive credential path.

Failure mechanism: If the gateway only checks transport-level access, an attacker can abuse tool choice, token reuse, or context confusion to reach an action that appears legitimate at the API layer but is unsafe at the agent layer.

Impact: The result can be unauthorized data access, secret exposure, unsafe side effects, or privileged actions executed by a trusted agent on the attacker’s behalf.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 ASI03 — Identity & Privilege Abuse MCP gateways govern agent tool choice and delegated authority.
Recommendation — Restrict agent tool and privilege scope to prevent runtime abuse.
OWASP API Security Top 10 API5 — Broken Function Level Authorization API gateways still matter for controlling which functions a caller can reach.
Recommendation — Enforce function-level authorization on every exposed API action.
NIST SP 800-53 Rev 5 AC-6 — Least Privilege Gateway policy should limit what an agent may discover and invoke.
IA-9 — Identification and Authentication (Service Accounts) MCP and API calls may be made by non-human runtimes that need strong authentication.
Recommendation — Limit tool and API access to the minimum privileges needed. Authenticate service-to-service and agent-to-service access with strong mechanisms.
NIST Zero Trust (SP 800-207) 2 — Zero Trust Architecture Principles The answer depends on evaluating each request in context, not trusting the network boundary.
Recommendation — Verify context and policy for each agent action before granting access.

Practitioner Guidance

What to verify: Confirm that your gateway policy can distinguish between endpoint access and tool authorization. If every allowed API call is also implicitly an allowed agent action, the control boundary is too coarse.

Decision rule: If the agent can choose tools at runtime, treat tool discovery and invocation as a governed security decision, not as a simple routing problem.

Common mistake: Teams often harden the API perimeter and assume the agent is now safe. That leaves context misuse, overbroad tool visibility, and delegated authority paths unaddressed.

Practitioner takeaway: Use API gateways to protect services, but use MCP gateways to constrain what an agent can discover, decide, and do, because the security problem shifts once runtime selection becomes part of the workflow.