Trusted By · Proven with Industry Leaders





PartnersWhat an MCP gateway does that an API gateway does not
An MCP gateway sits between AI agents and the MCP servers that expose your tools. It checks who the agent is, who it acts for, whether the token was issued for that server, which tool may be called with which scope, and it logs the result. It uses the same enforcement ideas as an API gateway, applied to tool calls instead of requests from applications.
| Question | API gateway | AI gateway (model traffic) | MCP gateway (tool access) |
|---|---|---|---|
| What it fronts | Structured API calls from applications. | Calls from applications and agents to language models. | Calls from agents to tool servers: the tools, resources and prompts an MCP server exposes. |
| Who the caller is | An application or a user, identified by key or token. | An application, team or agent, identified so tokens and cost can be attributed. | An agent acting for a user. The gateway must tell the agent, the user and the tool apart. |
| Main risk | Abuse, overload, stolen credentials. | Sensitive data in prompts, runaway cost, unsafe output. | Over-broad tool access, tokens reused across servers, poisoned tool descriptions. |
| What to log | Caller, route, status, latency. | Prompt, response, model version, tokens, policy applied. | Agent, user, server, tool, arguments, scope used, decision. |
| Our page | WSO2 API Manager, Apigee | AI gateway | This page |
Exception: one agent calling one internal tool needs no gateway. The need starts when a second team, a second server or an auditor appears. Our view on MCP and authorization and the data residency checklist cover the policy side.
MCP server security: threats and the gateway control for each
Most MCP incidents come from a handful of patterns. The current MCP specification (version 2026-07-28, checked November 24, 2026) names six of them in its security best practices. We add a seventh from practice. Each row says what the gateway can do about it.
| Threat | What happens | Gateway control | Where it comes from |
|---|---|---|---|
| Token passthrough | A server accepts a token that was issued for another service and forwards it downstream. Audit trails blur and rate limits are bypassed. | The spec says a server must not accept tokens not issued for it. Validate the audience at the gateway and exchange tokens instead of forwarding them. | Spec: security best practices |
| Confused deputy on an MCP proxy | A proxy with one static client ID and open client registration lets an attacker reuse a consent cookie and steal an authorization code. | Per-client consent stored server-side, exact redirect URI match, state checked after consent, no wildcard URIs. | Spec: security best practices |
| SSRF during OAuth discovery | A malicious server points discovery URLs at internal addresses or the cloud metadata endpoint. | Require HTTPS, block private and link-local ranges with a tested library, validate redirects, send discovery through an egress proxy. | Spec: security best practices |
| Scope inflation | A client asks for every scope the server lists, so one stolen token reaches every tool. | Start with a low-risk scope. Raise it with an insufficient_scope challenge when a privileged tool is first used. Log each elevation. | Spec: security best practices |
| State handle hijacking | A guessed or leaked handle lets another user act on someone else's workflow state. | Treat a handle as data, never as proof of identity. Bind it to the verified user on the server. | Spec: security best practices |
| Local server compromise | A one-click local server runs a malicious start-up command with the user's rights. | Show the exact command, require consent, run servers in a sandbox, prefer stdio or restricted sockets. | Spec: security best practices |
| Tool description tampering | A tool's description or schema changes and steers the model to a harmful call. Not in the spec's own list. | Allow-list servers, review and pin tool descriptions, alert on change, and let the gateway block any call not on the allow-list. | Our practice view |
Checklist version: MCP server security checklist.
MCP authentication: what the specification requires
Authorization is optional in MCP, but an HTTP server that offers it should follow the specification. The specification builds on OAuth 2.1. An MCP server must publish protected resource metadata (RFC 9728) so clients can find its authorization server. Clients must send the resource parameter (RFC 8707) with every authorization and token request, and servers must accept only tokens issued for them. Tokens go in the Authorization header, never in the URL. Servers that use stdio should take credentials from the environment instead.
Walkthrough with the common mistakes: MCP authentication with OAuth. For identity for the agent itself, see agent identity and governance.
A deny-by-default policy for MCP tool access
Write the policy as a short list of rules, then enforce it in the gateway so a flagged call is blocked whatever the model says. This is the shape we start from.
| Rule | What it says |
|---|---|
| Default | Deny every call from every agent to every server and tool. |
| Allow list | Allow named (agent, server, tool) triples, each with an owner and a review date. |
| Identity | Require a token whose audience is the MCP server. Reject anything else, including tokens meant for downstream APIs. |
| Scope | Map each tool to one scope. A read tool never needs a write scope. |
| Argument limits | Reject calls whose arguments fall outside the schema or the size limit. |
| Human step | Route calls that change money, access or records to an approval header from a person. |
| Log | Write agent, user, server, tool, scope and decision for every call, allowed or denied. |
Exception: a read-only tool on public data can sit in a lighter tier. Decide that per tool, not per server.
MCP gateway on Choreo Labs, Apigee or Azure API Management
You may not need a new product. Three API platforms we run already publish APIs as MCP servers. Each is also an enforcement point for the controls above.
| Platform | What it offers for MCP | Our page |
|---|---|---|
| WSO2 API Manager | 4.6 added the MCP gateway. 4.7 added MCP governance and analytics. You can create an MCP server from an OpenAPI definition, from an existing API, or by proxying an existing MCP server. | Choreo AI Gateway |
| Apigee | Publish an existing API as an MCP server. MCP in Apigee hybrid arrived in 1.17.0 on September 14, 2026 as an optional feature. | Apigee |
| Azure API Management | Expose a REST API as an MCP server, pass through to an existing MCP server, and register MCP servers in Azure API Center. | Azure API Management |
WSO2 versions from the vendor release notes as recorded on our WSO2 API Manager page. Open source and specialist MCP gateways also exist. We pick by where the gateway must run and how it ties to your identity provider.
Start with an MCP gateway review
The first engagement is a review of the MCP servers your agents already reach. It ends with a policy and a design you can build or hand to your own team.
| Stage | What we do | What you keep |
|---|---|---|
| Inventory | Every MCP server in use, including ones teams run on laptops, with owner, tools and the systems each reaches. | A server and tool register. |
| Trace | How a token travels from the agent to the tool and on to the backend. | A token map that shows where audience checks are missing. |
| Design | Policy set, scopes, consent and the place the gateway sits. | A deny-by-default policy and a target design. |
| Prove | A test that a blocked call stays blocked and that every call leaves a record. | A test log your risk team can read. |
Who this is not for: teams with no agent in or near production. Read the checklist first.
Scope, duration and fee are set after a short scoping call.
Worked scenarios and guides
- Scenario: governing MCP tool access for internal agents at a bank.
- Scenario: MCP security review before go-live for a health system.
- Guide: MCP server security checklist.
- Guide: MCP authentication with OAuth.
- Guide: MCP gateway vs API gateway.
- Guide: MCP gateway vs AI gateway.
- Guide: Open source MCP gateways compared.
- Guide: MCP server governance model.
- Guide: MCP gateway on premises checklist.
- Guide: MCP audit logging runbook.
MCP gateway, answered plainly
What is an MCP gateway?
A gateway between AI agents and MCP servers. It authenticates the agent, checks that the token was issued for that server, limits which tools each agent may call, and logs every call.
What is the difference between an MCP gateway and an API gateway?
An API gateway fronts calls from applications. An MCP gateway fronts calls from agents to tools and has to handle delegation, per-tool scopes and tool descriptions that can change. Many API gateways now publish APIs as MCP servers, so one product can do both.
How do we secure an MCP server?
Require OAuth with a token issued for that server, validate the audience, give each tool the smallest scope, block private network ranges in discovery, sandbox local servers and log every call. The checklist article lists the checks in order.
Does MCP require OAuth?
Authorization is optional in the specification. HTTP-based servers that support it should follow it. Servers that use stdio should take credentials from the environment.
Can an MCP gateway run on premises?
Yes. Self-hosted WSO2 API Manager, Apigee hybrid and the Azure API Management self-hosted gateway all keep tool calls inside your network. Control planes and analytics may still leave, so check each one.
Is there an open source MCP gateway?
Yes, several exist. We choose by where the gateway must run, how it joins your identity provider and who will patch it.
How is this different from your AI gateway page?
The AI gateway page covers traffic from applications and agents to models. This page covers agents calling tools. Most estates need both.
Use cases
Worked examples from our practice
How we apply MCP gateway for regulated firms: the problem, the steps and the components involved. All MCP gateway use cases.
Governing MCP Tool Access for Internal Agents at a Bank
Agents reach internal tools through a gateway that checks identity, scope and audience and logs every call.
Read use caseMCP Security Review Before Go-Live for a Health System
A structured review of an MCP pilot against known threats, ending with a policy and a list of findings to close.
Read use caseAI Governance: Choose a Platform After a Tooling Sprint
Score three trial tools against the firm's own control list, then connect the winner to the gateway log.
Read use caseLet's talk
Talk to us about your MCP gateway
Tell us which agents call which tools. The first conversation is with an integration engineer.


