What "MCP gateway" covers, and why the label is not enough
Two product shapes share the name. One is an API gateway with MCP plugins: you already run it for REST traffic, and it adds MCP-aware routing, authentication and rate limits in front of your servers. The other is an agent or tool catalog: a registry of MCP servers with approval, grants and a single endpoint for agents. Search results for "kong mcp gateway" and "obot ai vs kong ai" are usually this comparison in disguise. The two shapes can differ on every row below, and so can two products of the same shape.
This post did not read Kong's or Obot's documentation, so it does not say which product does what. It gives you the questions, tied to the MCP specification where the specification has an opinion, so you can ask the same ones of each vendor and judge the answers yourself. Where the specification is silent, the checklist says so, because that is where gateways differ most.
1. Authorization: who may talk to the gateway
The specification makes authorization optional. When it is supported over an HTTP transport, implementations SHOULD follow it; stdio implementations SHOULD NOT, and instead take credentials from the environment.1 So "supports MCP auth" can mean very different things. What the spec does fix:
- MCP servers MUST implement OAuth 2.0 Protected Resource Metadata, and clients MUST use it to discover the authorization server.1
- Clients MUST send the
resourceparameter (RFC 8707) in authorization and token requests, and servers MUST validate that a token was issued for them.2 - Clients MUST implement PKCE and use the S256 challenge method where capable.2
- Authorization servers SHOULD issue short-lived access tokens.2
- Dynamic Client Registration is deprecated as of 2026-07-28; Client ID Metadata Documents are the SHOULD-support path.1
Checklist:
- Does the gateway publish protected resource metadata, and which authorization server does it point agents at?
- Does it validate the audience of every inbound token, and reject tokens issued for another resource?
- Which client registration mechanisms work, and is Dynamic Client Registration off by default?
- Can it use your identity provider, so a person's role decides what an agent acting for them may call?
- If agents authenticate with a static key instead of OAuth, how is that key scoped, rotated and limited by network or environment? A static key is a legitimate design, but it moves the security weight onto key controls.
Scope matters as much as authentication. The spec expects servers to signal required scopes in the WWW-Authenticate challenge and clients to ask for the minimum, with step-up for more.1 Ask whether the gateway issues scopes per tool or per server, because that sets how fine your later allowlist can be.
2. Token handling and the confused deputy
A gateway that fronts third-party APIs is, in the spec's terms, an MCP proxy server. The security best practices describe the confused-deputy attack against exactly that shape: a static client ID at the third-party authorization server, dynamic client registration, and a consent cookie that lets an attacker's request skip consent. The mitigation is that proxy servers MUST obtain per-client consent before forwarding, keep a registry of approved client IDs per user, and match redirect URIs exactly.3
Token passthrough is the second trap. The spec says an MCP server MUST NOT pass through the token it received from the client; the upstream API's token is a separate one, issued by the upstream authorization server.2 For a gateway, that gives a crisp question: the token or key the agent presents must never be the credential the upstream server sees.
- Show where the agent's credential ends and the upstream credential begins. Ask for a trace of one call.
- If the gateway acts as an OAuth client to GitHub, Slack or similar, how does it store per-user consent and refresh tokens, and are refresh tokens rotated?
- Are the gateway's own headers (trace ids, internal auth) stripped before the call reaches your server?
- Can a compromised agent key be revoked without rotating the upstream credential?
3. Tool allowlists and definition pinning
An allowlist answers "which tools may this agent call". The spec lets a server vary tools/list by the authorization presented, for example returning only tools the caller's scopes permit.4 A gateway can do that centrally across servers. Three distinctions separate real allowlisting from a filter in a UI:
- Default state. Is a newly discovered tool hidden until approved, or visible until blocked?
- Granularity. Per server, per tool, or by class (read versus write)?
- Pinning. Does approval cover the definition you reviewed, or just the name?
Pinning matters because tool descriptions are text the model reads, and the spec says clients MUST treat tool annotations as untrusted unless they come from trusted servers.4 A server that edits a description after approval can change agent behaviour without any change on your side. The INFRO MCP gateway, as one documented example, serves the approved definition, refuses a tool whose definition changed on the server since approval, and validates arguments against it.5 A refusal there is a tool result with isError: true and a code such as tool_definition_changed, so the model sees a plain instruction not to retry.6
- Are new tools hidden by default?
- Is the approved definition stored with a hash, and what happens on drift?
- Are arguments validated against the approved schema before the call reaches the server?
- Can a grant say "read-only" and have write tools refused without a per-tool list?
- On an aggregated endpoint, how are names from different servers kept apart? The spec says aggregators SHOULD disambiguate, for example with a server prefix, and should not rely on the server name.4
4. Credential handling
The agent should hold one credential for the gateway and none for the servers behind it. Probe the storage and the blast radius:
- Are upstream credentials encrypted at rest and bound to an organization and a server, and is replacing one write-only?
- Do they ever appear in API responses, console screens, logs, error messages or telemetry spans? INFRO documents that header values are encrypted with AES-256-GCM and are returned nowhere, with only header names visible.7
- Which headers may a credential set? A gateway that lets an admin set
Hostor forwarding headers invites request smuggling; INFRO refuses names such asHost,traceparent, or those beginningMcp-orX-INFRO-.7 - Can the gateway reach internal addresses? The security best practices cover SSRF for servers that fetch URLs, so ask how the gateway restricts the addresses it connects to.3
- Do you need read-only upstream credentials, and can you register a server with one?
Related reading on where these credentials leak in practice: MCP security: where MCP server credentials leak.
5. Audit: what one call leaves behind
Audit is where API-gateway plugins and agent catalogs often differ most, because an HTTP access log is not a tool-call record. Decide what you need to reconstruct after an incident: who, which key, which tool, with what outcome, and what the model did next.
- Is there one record per tool call with time, server, tool, outcome, latency, and the calling key, project and environment?
- Is the call joined to the agent's model calls on a shared trace id, so you can see the request that caused it?
- Are arguments and results stored by default, or only hashes and sizes until you opt in? INFRO's documented default is metadata only, with a SHA-256 of the arguments and guardrail counts but not the matched text; contents are captured only when an owner turns it on, up to 256 KB per call.7
- Who may read captured contents, and for how long are they retained?
- Can the log stream to your SIEM, and does it record refusals as well as successes?
A refusal is evidence too. A call blocked before it reaches the server ("not allowed", "not approved", "definition changed") should look different in the log from one that reached the server and failed, and INFRO's error codes make that split explicit.6
6. Per-tool limits and cost
This row is where marketing runs ahead of documentation. There are three separate meters, and a gateway may cover only one:
| Meter | Question to ask | Typical gap |
|---|---|---|
| Call rate | Per key, per server, per tool? Is the counter shared across keys? | Limits per server only, none per tool |
| Size and time | Maximum arguments, result size, timeout? | Unlimited results fill the model context |
| Money | What does one call cost, and who pays? | Tool bill sits in a third-party account |
INFRO's documented limits show the shape: 256 KB of arguments, a per-server result cap of 1 KB to 5 MB, a per-server timeout of 1 to 300 seconds, a per-key rate shared with model calls, and a per-server calls-per-minute ceiling counted across all keys.8 It also states that tool calls are not priced and do not count against a plan's request allowance, and that the services behind your servers bill you under your own accounts.5 In other words, there is no per-tool dollar limit to configure; the spend you can cap at a gateway is the agent's model spend, with per-key budgets, while a paid tool's bill is capped (if at all) at the tool vendor.
- Can you set rate, size and timeout per tool, not just per server?
- When a limit trips, does the agent get a readable error with a retry hint rather than a hung connection?
- Is there a cost estimate per tool for paid tools, or only counts?
- Can you cap the model spend of the same key, so a looping agent stops on both meters? See bounding AI agent loops.
7. Tool output is untrusted text
The OWASP GenAI Security Project, which now houses the LLM Top 10, explicitly covers agentic AI systems alongside LLM applications.9 The practical reading for a gateway buyer: whatever the vendor's detector says, a tool result is text the model reads, and an instruction hidden in an issue body or web page may be followed. INFRO's own docs are blunt about this: guardrails and scans reduce risk but do not stop prompt injection, so grant each key only the servers and tool classes it needs, prefer read-only credentials, avoid mixing private data, untrusted content and an outbound channel on one key, and have a person review changes.7 The spec points the same way, saying there SHOULD always be a human able to deny tool invocations.4
- Do guardrails run on arguments and on results, and what happens when the engine fails: block or pass?
- Can a write action require a human confirmation outside the model?
- Does the vendor say what its detectors miss? A vendor that claims to stop injection outright deserves a harder question.
One documented example: INFRO's MCP gateway
INFRO has an MCP gateway on every plan: you register your own MCP servers with their credentials, approve and pin each tool definition, grant access per gateway key, and calls run with guardrails and land on the same trace as the agent's model calls. INFRO executes no tool and hosts no server.5 Agents authenticate with a gateway key sent as a bearer token, so check the key controls (provider and IP limits, rotation with overlap) against your needs rather than assuming an OAuth flow.5 Use it as one column in the same scoring sheet, not as the answer.
A scoring sheet you can copy
- List your must-have rows from sections 1 to 7. Typical security teams pick audience validation, default-hidden tools, definition pinning and a credential vault.
- Ask each vendor for a trial and run one malicious case: edit a tool description after approval, then call it.
- Run one over-limit case: a tool returning a result above the size cap, and a key exceeding its call rate.
- Pull the audit record for both and read it as an investigator would.
- Weigh price last. A gateway you cannot audit costs more than any subscription.
