MCP Gateway

Control AI Agent Actions with Traefik Hub MCP Gateway

Enforce task, tool, and transaction-level access on every agent call, with runtime guardrails on agent tool calls, and a verifiable record of every allow and deny.

TRAEFIK LABS IS TRUSTED BY LEADING ENTERPRISES WORLDWIDE

Nasa
Ameri save
Port of rotterdam
Siemens
Allison
Adeo
Big basket
Mozilla
Staples
Ebay
Expedia
Vaudoise
Abax
Axione
Dell
Experian
Teradata
Ippen digital
Nasa
Ameri save
Port of rotterdam
Siemens
Allison
Adeo
Big basket
Mozilla
Staples
Ebay
Expedia
Vaudoise
Abax
Axione
Dell
Experian
Teradata
Ippen digital

MCP Gateway 101

What is an MCP gateway?

An MCP gateway is a policy enforcement point between AI agents and Model Context Protocol (MCP) servers. It authenticates each request, decides which tools and data an agent can use, and records the decision.

AI agents reach tools and data only through the MCP gateway, which authenticates and authorizes each call and blocks the ones that are not allowed

Challenges

Why Do MCP Connections Need a Gateway?

MCP defines how agents connect to tools. Without a gateway, whoever runs the servers handles access decisions, session routing, and governance.

  • Agents Get More Access Than Their Task Needs

    An agent with a valid credential can call any tool the server exposes. Those credentials also end up copied into agent code, CLIs, and notebooks.

  • Governance is Siloed and After the Fact

    ACLs and generic API gateways aren't designed to enforce agent-centric access control. Tool-by-tool rules have no central review or versioning, and observability is split across logs and teams.

  • Agent Actions Can't Be Proven in an Audit

    Traces are sampled, filtered, and can be altered by whoever operates them. When an auditor asks months later who authorized an action, under which policy, and whether the record has changed since, a trace can't answer.

The Solution

Introducing Traefik Hub MCP Gateway

Traefik Hub MCP Gateway extends Traefik Hub API Gateway, so API, AI, and MCP traffic run through a single binary. It sits between MCP clients and MCP servers as the data and control plane, runs on any orchestrator (self-hosted or air-gapped), and enforces Task-Based Access Control (TBAC) on every request.

MCP clients (chatbots, IDEs, agents, LLMs) connect through the Traefik MCP Gateway, which handles session management, observability, AuthN and AuthZ against your identity provider (Azure Entra ID, Ping Identity, Okta, Keycloak, AWS Cognito, Auth0), before reaching storage, analytics, custom, and database MCP servers

Task, Tool, & Transaction-Based Access Control (TBAC)

  • Authorize each request by task, tool, and transaction, down to individual tool arguments

  • Compare arguments to JWT claims at runtime, such as capping approve_expense at each agent's approval_limit

  • Isolate tenants with a single rule using variable substitution

  • Deny any request that matches no policy, by default

  • Filter tools/list, prompts/list, and resources/list so agents only see the tools they can use

Fingerprint shield linking tasks, tools, and transactions in a single access decision

Authentication and Runtime Policy Guardrails

  • Validate JWTs as an OAuth 2.1 and OAuth 2.0 resource server

  • Publish authentication metadata and WWW-Authenticate challenges

  • Inject upstream API keys, with optional On-Behalf-Of forwarding and token exchange support

  • Apply rate, concurrency, time-window, and query-pattern limits

  • Add optional topic, PII, and jailbreak controls

  • Evaluate TBAC policies using JWT claims and MCP attributes

  • Manage YAML policies through GitOps review and promotion

  • Deny unmatched requests with configurable messages

Locked shield in front of a policy checklist and a Git branch, representing authentication and policy guardrails

Session-Smart Load Balancing

  • Server-side session affinity keeps long-running conversations on the same pod

  • Separate read and write pools protect systems of record

  • Deterministic routing maintains session affinity through rollouts and autoscaling

  • Stable routing helps reduce failed sessions, retries, and duplicate writes

Cloud routing sessions to a consistent set of pods, with a checklist of healthy sessions

Observability and Verifiable Audit

  • OpenTelemetry metrics and traces tagged by MCP method, tool, prompt, and resource URI

  • Tool-call arguments stay out of traces unless you opt in

  • Export to Grafana, Datadog, Dash0, or any OpenTelemetry backend

  • PII masking and blocking with content guards

  • Append-only, witness-cosigned evidence of every allow and deny, verifiable on your infrastructure

Log lines under a magnifying glass next to an alert and a telescope, representing observability and audit

Compare

How Traefik Hub MCP Gateway Compares

Traefik Hub MCP Gateway compared with Apigee
ApigeeTraefik Hub MCP Gateway
Best for
Satisfied Google Cloud teams exposing existing Apigee APIs as MCP toolsKubernetes teams needing argument-level policy. Best for self-hosted or air-gapped deployments.
Access scope
API products listing allowed tool operations per OAuth clientAgent identity, task, tool, resource URI, tool arguments
Conditions on tool arguments
Not documentedNumeric and string conditions evaluated against JWT claims
MCP content guardrails
Not documented for MCP proxies; Model Armor policies cover LLM prompts and responsesPII detection, masking, and blocking plus semantic checks via external guard models, on tool arguments and results
MCP observability
Apigee AnalyticsOpenTelemetry metrics and traces; tool arguments opt-in
Tamper-evident agent evidence
Not documented; Cloud Audit Logs cover admin and data access activityImmutable, witness-cosigned transparency log of gateway approvals and denials
Deployment
Apigee SaaS or hybridSelf-hosted Kubernetes, air-gapped capable

Based on vendor documentation reviewed in September 2026. “Not documented” means the capability did not appear in the documentation reviewed. For MintMCP, TrueFoundry, and Docker MCP Gateway, see Best MCP Gateways 2026.

Frequently Asked Questions

Traefik Hub MCP Gateway supports Streamable HTTP, the MCP specification's transport for remote servers. The standalone HTTP+SSE transport was deprecated in the 2025-03-26 spec revision, so the gateway doesn't support it. Server-sent event streams within Streamable HTTP responses are supported.

What Users Have to Say

3.5 billion plus downloadsTop 15 in Docker hub65K stars on githubOss insight #1 api gateway 2019-presentGartner magic quadrant honorable mention 2023 api managementGartner magic quadrant honorable mention 2024 api managementGartner magic quadrant honorable mention 2025 api management
Gartner Peer InsightsG2 4.5 stars
Best est. ROI, Fall 2026Best usability, Fall 2026Users most likely to recommend, Fall 2026Most implementable, Fall 2026High performer EMEA, Summer 2026Highest user adoption, Summer 2026Best results, Summer 2026Fastest implementation, Summer 2026

Ready to get started?

See how Traefik Hub MCP Gateway aligns to your requirements in a personalized demo or test drive it yourself with a free trial.