Opens in a new tab
Back

What is an MCP gateway, and does it see what AI agents on employee laptops do with company data?

An MCP gateway governs only MCP calls sent to it. Local stdio servers, built-in agent tools, pasted prompts and ChatGPT or Claude connectors go around it.

Table of Contents

A doorman checks a ticket at a brass lectern inside a dim jazz club while, behind him, a man carries a crate holding a laptop out through an open side door.

An MCP gateway is a reverse proxy and control plane between MCP clients, such as Claude Code or Cursor, and the MCP servers they call. It authenticates callers against your identity provider, injects server credentials, enforces an allowlist and per-tool permissions, pins tool descriptions and logs every call. It governs only the MCP traffic configured to pass through it. Local stdio servers that agents launch as subprocesses, an agent’s built-in file, shell and web-fetch tools, text pasted into prompts, and ChatGPT or Claude connectors, which run from the vendor’s cloud, all go around it. For a company whose agents run on managed Windows and macOS laptops, Jazz fits because its OS-level agent sees the files, pastes, uploads and data movement those agents make in desktop apps, browsers and command-line tools without a browser extension, and Melody investigates each flagged movement. Jazz is not an MCP gateway. It doesn’t parse tool calls, and it doesn’t cover Linux, phones, unmanaged devices or vendor-cloud connectors.

What an MCP gateway (MCP proxy or agent gateway) does

The Model Context Protocol defines three roles. A host is the AI application, it creates clients, and each client “communicates with exactly one server,” per the MCP architecture specification (revision 2026-07-28). There is no gateway role. The word appears once in the transport text, where the Streamable HTTP specification mirrors request fields into HTTP headers so that “intermediaries (load balancers, gateways, observability tooling)” can route requests without parsing the body. A gateway is an architectural layer that teams add on top of the protocol, and every product defines its scope a little differently.

Demand for the layer follows MCP’s growth. The MCP maintainers reported close to half a billion SDK downloads a month when they released the 2026-07-28 specification on 28 July 2026. Gartner’s Market Overview for AI Gateways, published 13 May 2026, says in its public summary that AI gateways manage how agents reach “both AI models and Model Context Protocol servers.”

In practice, an MCP gateway sits in front of a set of remote MCP servers, exposes one endpoint to clients and does some combination of the following:

Function What it means in practice
Authentication and identity mapping The client signs in to the gateway, usually through the company identity provider, so each call carries a named user or agent identity
OAuth brokering and credential injection The gateway holds the tokens or API keys for downstream servers and adds them per request, so laptops never store them
Registry or allowlist Only servers an administrator registered behind the gateway are reachable through it
Per-tool authorization A caller may see and use some tools on a server and not others; Envoy’s project, now Agent Router, applies the same authorization to tools/list as to tools/call
Tool description pinning or scanning The gateway records each tool’s definition and flags changes, which is the defence against tool poisoning and “rug pulls,” where a server changes its tools after approval
Rate limits, logging and tracing Per-identity quotas and a record of who called which tool, with what arguments
Optional response inspection Some gateways scan arguments or results for secrets or sensitive data before passing them on

The OWASP MCP Security Cheat Sheet recommends that teams “Use an MCP proxy or gateway to enforce isolation policies between servers” and to “Pin reviewed tool definitions using cryptographic hashes.” The NSA is more cautious. Its May 2026 information sheet, Model Context Protocol (MCP): Security Design Considerations for AI-Driven Automation, says “MCP-aware security proxies remain limited and are still maturing” and should be “used with caution, especially when handling sensitive data.”

Open-source examples show the range. Docker’s MCP Gateway “acts as a centralized proxy between clients and servers” and runs each server in its own container. LiteLLM’s MCP gateway gives clients “a fixed endpoint for all MCP tools” with access set per key and team. Envoy AI Gateway added its MCP gateway in v0.4.0 on 7 November 2025 and was renamed Agent Router with v1.2.0 on 6 October 2026. Microsoft’s open-source mcp-gateway project describes itself in its README (accessed October 2026) as “a reverse proxy and management layer for MCP servers” in Kubernetes. Security vendors sell the same layer. Palo Alto Networks closed its acquisition of Portkey on 29 May 2026 and sells it as the Prisma AIRS AI Gateway, and Netskope, Zscaler, Cloudflare and SentinelOne (through Prompt Security) each describe an MCP gateway, portal or broker in their product documentation (accessed October 2026).

How the 2026-07-28 MCP revision changes gateway design

The 2026-07-28 revision made MCP stateless. Per the specification changelog, it removed “protocol-level sessions and the Mcp-Session-Id header” and the initialize handshake, and it requires Mcp-Method and Mcp-Name headers on Streamable HTTP requests. The maintainers’ release post says any request “can land on any server instance behind a plain round-robin load balancer,” and the new headers exist “so gateways can route and authorize on headers directly.”

Sticky routing by session ID is gone, so a gateway now routes and authorizes every request on its own. Microsoft’s mcp-gateway README shows the shift: an earlier version of its README listed “Session-Aware Stateful Routing,” pinning each session_id to one server instance, while the current one (accessed October 2026) says each request “is independently authorized” and routers work “without transport-session affinity.” Per-tool policy can now run on headers, without opening the JSON body, though anything that wants to inspect arguments still has to terminate TLS and read the body. And because Dynamic Client Registration is now deprecated in favour of Client ID Metadata Documents, OAuth brokering inside gateways has to change too.

Not every gateway has caught up. Agent Router’s v1.2.0 notes, dated 6 October 2026, say support for the stateless specification “is in progress and not yet enabled.” Cloudflare’s MCP server portal documentation, updated 28 October 2026, says it supports both the 2026-07-28 revision and earlier clients. Ask any gateway vendor which revision it speaks before you rely on its header-based policy.

MCP gateway vs AI gateway, MCP registry, API gateway, AI firewall and SWG or CASB

These categories overlap, and several products sell more than one. The difference is which traffic each sits on.

Control Sits between Governs Misses
MCP gateway (MCP proxy, agent gateway) MCP clients and the MCP servers registered behind it Which servers and tools a caller can use, credentials, call logs Local stdio servers it doesn’t wrap, built-in agent tools, vendor-hosted connectors, prompts
AI gateway or LLM gateway Your apps or agents and model APIs (many now also front MCP) Model routing, provider keys, budgets, prompt filtering Employees on chatgpt.com and desktop AI apps that call the vendor directly; see what an AI gateway is
MCP registry Nothing; it is a catalog Which servers clients can discover or install Anything at runtime; the official MCP Registry launched on 8 September 2025 as “an open catalog and API”
API gateway Clients and HTTP APIs Auth, quotas and routing for REST or gRPC services MCP semantics such as tool names, unless MCP-aware
AI firewall Model input and output Prompt injection, jailbreaks, harmful output Data that never enters a prompt it inspects
SWG or CASB Users’ web traffic and SaaS APIs Sites, SaaS apps and uploads it can decrypt Pinned or non-browser agent traffic it can’t decrypt, and local process activity

An MCP gateway and an MCP registry are often confused because some products bundle them. GitHub’s documentation for Copilot’s MCP registry allowlist is blunt about the difference: enforcement “is based only on server name/ID matching, which can be bypassed by editing configuration files” (GitHub Docs, accessed October 2026).

Which agent traffic passes through an MCP gateway, and what an endpoint agent sees

A gateway sees a request only when a client sends it there. On an employee laptop, much of what an agent does with company data never takes that path. The MCP Local Server Security guide puts the stdio case plainly: “The stdio transport is not a sandbox,” and a local server “can read anything your account can read.” A stdio server exchanges messages with the agent over standard input and output, so there is no network hop for a gateway to sit on. FINOS reaches the same conclusion from the governance side; its risk entry RI-30 says gateway-style MCP controls “should not be assumed to apply to local MCP servers simply because they use the MCP protocol.”

Agent traffic path Through an MCP gateway? Seen by Jazz on a managed Windows or macOS laptop?
A remote MCP server registered behind the gateway, with the client pointed at the gateway URL Yes. This is the path gateways are built for It sees the data the agent handles on the laptop, such as files it moves, pastes or uploads. It doesn’t read the MCP messages
A remote MCP server the client calls directly No, unless client allowlists block every URL except the gateway’s Same as above
A local stdio server the agent launches as a subprocess No, unless you wrap it. Docker runs servers as containers behind its gateway, Envoy’s aigw CLI can proxy stdio servers (v0.5.0, January 2026), and LiteLLM runs stdio servers on the proxy host only when started with LITELLM_ENABLE_MCP_STDIO=true Yes for the data the agent and its local tools move in desktop apps and command-line tools. It doesn’t parse the stdio messages
Built-in agent tools: Claude Code’s Read, Bash and WebFetch, Cursor’s file and terminal tools, Codex file edits and commands, VS Code’s fetch tool No. These are the agent’s own tools, not MCP requests Yes. They act through the operating system, where Jazz’s agent sees file and data movement
Text pasted or typed into the agent’s prompt No. It goes to the model provider, and to an AI gateway only if the client is pinned to one Yes. Jazz captures pastes and GenAI prompts at the OS level
ChatGPT apps and Claude custom connectors No. Anthropic says Claude “connects to your remote MCP server from Anthropic’s cloud infrastructure, rather than from your local device.” Your gateway sees these calls only if the connector you approved is the gateway’s own URL Only what crosses the laptop, such as a file uploaded to start a task. Actions the connector takes in the vendor’s cloud are out of reach
Agents on Linux machines or CI runners Yes, if configured to use it No. Jazz has no Linux agent

Anthropic’s custom connector guide (accessed October 2026) says the cloud origin applies “across every Claude client, including claude.ai, Claude Desktop, Cowork, and the mobile apps,” and Anthropic’s IP address page lists 160.79.104.0/21 for those outbound MCP calls. Claude Code’s MCP documentation adds that in the desktop app’s local sessions, connectors register as in-process servers “and no MCP setting or managed-mcp.json reaches them.” On ChatGPT, OpenAI’s help article on custom MCP servers (October 2026) answers “Can I connect to a local MCP server?” with “Not directly. ChatGPT connects to remote MCP servers,” and OpenAI’s IP address guide lists the ranges its connectors call from.

The gateway log answers “which approved tool was called, by whom, with what arguments.” It can’t answer which files the agent opened with its own read tool, what the developer pasted into the prompt, or what a local server sent to an outside host on its own connection. Those are the questions a security team asks after an incident.

How to force AI agents through an MCP gateway

Each AI client has its own setting, and each is opt-in. The common pattern is an allowlist that permits only the gateway’s URL and blocks stdio commands, delivered by MDM so users can’t edit it. Setting names below are current as of 30 October 2026 and change often.

Client Setting that limits MCP servers Limits worth knowing
Claude Code managed-mcp.json (exclusive control) or allowedMcpServers with serverUrl entries plus allowManagedMcpServersOnly: true in managed settings, per Anthropic’s managed MCP docs Default is open: “anyone running Claude Code can connect any MCP server they choose.” A serverName entry “is not a security control.” managed-mcp.json must be pushed to a system path by device management
Claude Desktop Machine policy isLocalDevMcpEnabled, plus the desktop extension allowlist for Team and Enterprise, per Anthropic’s enterprise configuration and allowlist articles The allowlist “does not guard against individuals tampering with local MCP file contents after installation”
Cursor “MCP Configuration” allowlist of command and URL entries in the team dashboard, Enterprise only, per Cursor’s admin docs “Servers that don’t match are blocked,” but the allowlist “does not push” servers to machines
VS Code (Copilot agent mode and other chat agents) Enterprise policies ChatMCP (chat.mcp.access), ChatAllowedMcpServers, ChatDeniedMcpServers and ChatAllowManagedMcpServersOnly (VS Code enterprise policy reference, updated 28 October 2026) Delivered by Group Policy, Intune or a macOS profile
GitHub Copilot allowedMcpServers and deniedMcpServers in copilot/managed-settings.json, generally available since 6 August 2026 (GitHub changelog) Enforced on the Copilot app, Copilot CLI and VS Code. The older registry-only option is public preview and bypassable by editing config files
Codex (CLI, IDE extension, ChatGPT desktop app) mcp_servers allowlist in the managed requirements.toml, per OpenAI’s managed configuration docs Unmatched servers are disabled; “If mcp_servers is present but empty, the local client disables all MCP servers”
ChatGPT Business, Enterprise and Edu Admin-published apps and the “Create plugins with MCPs” role permission, per OpenAI’s help center (October 2026) No URL-level allowlist found. Calls originate from OpenAI’s servers, so the gateway sees them only if the published app points at it

These settings control which MCP servers a client may launch. They do nothing to the client’s built-in file, shell and web tools, which have their own permission settings in each product.

The governance frameworks assume this kind of enforcement. Tier 1 of FINOS’s AIR-PREV-020, MCP Server Security Governance (AI Governance Framework v2, October 2025) has “All MCP clients connect through a centrally-administered MCP proxy server,” and the proxy “enforces connection restrictions (clients cannot bypass proxy to connect directly to MCP servers).” The same page warns that the central proxy is a “Single Point of Failure” that must not “become a vulnerability.”

MCP gateway security: the gateway is a target and a data store

A gateway holds credentials for every server behind it and a log of what agents asked for, which makes it worth attacking. CISA’s Known Exploited Vulnerabilities catalog lists two LiteLLM flaws tied to its MCP features. CVE-2026-42271, added on 8 June 2026, let “any authenticated user, including holders of low-privilege internal-user keys” run commands on the host; per the NVD record and LiteLLM’s advisory, the vector was its MCP stdio test endpoints, which spawned a caller-supplied command on the proxy host (fixed in 1.83.7). CVE-2026-59822, added on 2 September 2026, is an authentication bypass in the MCP Streamable HTTP endpoint that let an unauthenticated attacker “establish an authenticated MCP session using an arbitrary Bearer token” (fixed in 1.84.0). Are MCP servers a security risk? covers the wider incident record.

Defaults matter as much as patches. LiteLLM’s MCP deployment guide says “By default all authenticated callers can call all MCP tools,” and each server’s available_on_public_internet setting defaults to true. Its config reference sets store_prompts_in_spend_logs to false by default, but its retention docs say that with no retention period configured, “nothing is ever deleted.” Docker’s gateway logs calls by default, recording only “the tool name and argument shape metadata,” and its security notes say network egress “is not globally denied by default.”

Full logging has a cost. The NSA says “All tool and model invocations should be logged, including the exact parameters,” and OWASP says to log “full parameters” while redacting secrets and PII. Full argument logs give investigators what they need and also become a second copy of whatever customer data the agent passed to a tool. Decide where those logs live, who can read them and when they expire before you turn them on.

Questions to ask before relying on an MCP gateway

  • Can clients bypass it? Ask which client settings the vendor expects you to deploy, and what happens to a developer who adds a server by hand. Without client allowlists in Claude Code, Cursor, VS Code, Copilot and Codex, a developer can point an agent anywhere and the gateway is optional.
  • What does it do with stdio servers? Some gateways can’t take them at all; Cloudflare’s portal documentation says stdio-only servers “cannot be added.” Others wrap them in containers or run them on the gateway host, which moves the risk rather than removing it, as the LiteLLM command-injection flaw showed.
  • Whose identity reaches the downstream server? The MCP Security Best Practices say servers “MUST NOT accept any tokens that were not explicitly issued for the MCP server,” which rules out passing a client’s token straight through. Ask whether the gateway acts on behalf of the named user or with one shared service credential, and read what a non-human identity is before agents get standing keys.
  • Does it fail open or closed? If the policy engine errors or the gateway is down, find out whether calls are denied or passed. Agent Router v1.2.0 changed failing CEL authorization expressions to deny.
  • How long are logs kept, and do they hold arguments and results? Get the default retention in writing, and check whether the response bodies are stored.
  • Which MCP revision does it support? Header-based routing and per-request authorization depend on 2026-07-28 support, which some gateways haven’t enabled yet.

Where an MCP gateway meets Jazz’s job

An MCP gateway tells you which approved tools an agent called through it, and it does that well. Securing AI agents that can access company systems and act on their own takes more than that. Agents also need managed client settings, their own scoped credentials, approval for actions that send or delete data, and a record of what data they moved on the device where they run. How to secure AI agents on employee computers walks through that sequence.

Jazz covers the device part on managed Windows and macOS laptops. Its one endpoint agent sees copy and paste, screenshots, GenAI prompts and file uploads across desktop applications, browsers and CLI tools at the operating-system level, with no browser extension to install. That puts Claude Code in a terminal, Cursor, the Claude and ChatGPT desktop apps and every browser under the same agent, so the data those agents handle through local stdio servers and built-in tools, which a gateway never sees, is in view. At UCLA Anderson, the agent runs at under 1% CPU.

Melody, Jazz’s agentic investigator, looks at each flagged movement across four dimensions: what the data is, which systems it moved between, who performed the action and their role, and whether it fits that person’s job. That matters with agents, which read whole repositories as normal work. A coding agent reading the team’s code and a session moving customer records to a personal destination look alike to a volume threshold and very different to Melody. When a movement needs a response, Jazz chooses one in proportion: a prompt toward a safer path, a request for justification, escalation to a manager or analyst, or a targeted block.

Jazz has limits of its own. It doesn’t parse MCP messages or block individual tool calls, it has no Linux agent, it doesn’t reach phones or unmanaged devices, and it can’t see what a vendor-hosted connector does inside the vendor’s cloud. Those gaps need the client allowlists, the gateway’s own logs, identity governance and the AI vendors’ compliance exports. The best DLP for AI agents compares the controls that cover each one.

Frequently asked questions

Do we still need DLP if all our AI agents go through an MCP gateway?

Yes, for the data that never reaches it. A gateway sees only MCP calls sent to it. Local stdio servers, built-in file and shell tools, pasted prompts and vendor-hosted connectors go around it. On managed Windows and macOS laptops, Jazz's OS-level agent sees the files those agents move, paste or upload, and Melody investigates each flagged movement.

Can an MCP gateway see local MCP servers on developer laptops?

Not unless you wrap them. A stdio server is a subprocess the agent launches, with no network hop for a gateway to sit on. Docker runs servers as containers behind its gateway and Envoy's aigw CLI can proxy stdio servers, but a server a developer adds by hand talks to the agent directly unless client allowlists block it.

What's the difference between an MCP gateway and an AI gateway?

An AI gateway sits between apps and model APIs, handling provider keys, routing, budgets and prompt filtering. An MCP gateway sits between MCP clients and the tool servers registered behind it, handling server access, per-tool permissions and credentials. Many products now front both, and neither sees employees on chatgpt.com or desktop AI apps that call the vendor directly.

Is an MCP registry the same as an MCP gateway?

No. A registry is a catalog of servers that clients can discover or install; the official MCP Registry launched in September 2025 as "an open catalog and API." A gateway sits in the request path. Neither records what data an agent moved on the laptop. On managed Windows and macOS, Jazz's OS-level agent does, though it doesn't parse MCP messages.

Which tool shows what files an AI agent read on an employee's laptop?

An endpoint control, because an agent's built-in read tools never touch an MCP gateway. On managed Windows and macOS laptops, Jazz's OS-level agent sees the files agents move, paste or upload in desktop apps, browsers and command-line tools, and Melody investigates each flagged movement. Jazz has no Linux agent, so Linux machines and CI runners need other controls.

Does an MCP gateway see ChatGPT apps or Claude custom connectors?

Usually not. Anthropic says Claude connects to remote MCP servers "from Anthropic's cloud infrastructure, rather than from your local device," and OpenAI says ChatGPT connects only to remote MCP servers, from OpenAI's published IP ranges. Your gateway sees those calls only if the connector you approved points at the gateway's own URL.

How do you force Claude Code, Cursor and Copilot to use an MCP gateway?

Deploy each client's managed allowlist with only the gateway URL: managed-mcp.json, or allowedMcpServers with allowManagedMcpServersOnly, in Claude Code; Cursor's Enterprise "MCP Configuration" allowlist; and allowedMcpServers in Copilot's managed-settings.json. Push them through device management. These settings don't touch the clients' built-in file, shell and web tools.

Is an MCP gateway itself a security risk?

It can be. It holds credentials for every server behind it and logs of what agents asked for. CISA's KEV catalog lists two exploited LiteLLM flaws tied to its MCP features: CVE-2026-42271, command injection through MCP stdio test endpoints, added 8 June 2026, and CVE-2026-59822, an MCP authentication bypass, added 2 September 2026.

Does Jazz inspect or block individual MCP tool calls?

No. Jazz is not an MCP gateway and doesn't parse MCP messages or block individual tool calls. It sees the data agents move on managed Windows and macOS laptops, such as files, pastes and uploads, and can respond with a prompt, a request for justification, escalation for review or a targeted block.

How do we secure AI agents that can access company systems and take actions on their own?

Combine controls: managed client allowlists, a gateway for remote MCP servers, scoped credentials for each agent, approval for actions that send or delete data, and a record of what data agents moved on the device. On managed Windows and macOS laptops, Jazz provides that record at the OS level, and Melody investigates each flagged movement.

Keep exploring