Home / Articles / Agentgateway for LLMs, MCP, and A2A: When a Unified AI Data Plane Helps

This article is published in English.

Agentgateway for LLMs, MCP, and A2A: When a Unified AI Data Plane Helps

How Agentgateway differs from LLM-only proxies—MCP discovery, A2A tracing, routing, security, OpenTelemetry, and cost governance—and when to adopt or skip it.

1605 words

Platform teams that grow past a single model endpoint often end up with a menagerie: LLM providers, tool servers, and autonomous agents, each with its own ingress pattern. LLM-specific proxies such as Bifrost or LiteLLM help for chat completions, yet they leave agent-to-agent traffic and MCP tool surfaces as separate problems.

Agentgateway aims at that gap: one high-performance gateway for AI-native traffic, not only classic LLM HTTP proxying. The sections below summarize what makes it different, how a quickstart feels, which governance knobs matter, and when to adopt versus skip.

What Makes Agentgateway Different: Beyond the LLM Proxy

The core differentiator is native awareness of agent-oriented protocols alongside ordinary LLM HTTP routes. It can still front OpenAI-compatible endpoints, but it also treats MCP tool servers more like microservices—with discovery so agents can find tools—and it can carry identity and tracing across A2A hops so invocations between agent frameworks stay observable.

In a complex agentic system, agents issue tool calls that may land on an MCP server. Without a shared data plane, every team invents ad-hoc auth, rate limits, and telemetry for those calls. Agentgateway centralizes those concerns the way an API gateway does for REST microservices, while understanding LLM routing nuances such as latency-aware, cost-aware, and model-aware selection.

For A2A traffic, per-hop identity and tracing matter: platform operators need to see which agent called which peer, under which credentials, and with which latency budget. Treating that as first-class gateway work reduces the temptation to sprinkle one-off sidecars beside every agent process.

Getting Your Hands Dirty: A Quickstart Experience

A typical evaluation starts locally. Installation resembles other CLI-oriented gateway tools:

# This is a conceptual installation command, similar to what you might find for many CLI tools
curl -sL <some_install_script_url> | bash

After install, standing up a basic LLM proxy can take minutes: configure a route toward an OpenAI-compatible backend and send a test completion. A simplified route manifest might look like:

# llm-route.yaml
apiVersion: gateway.agentgateway.io/v1alpha1
kind: LLMGateway
metadata:
  name: my-llm-proxy
spec:
  listener:
    port: 8080
  routes:
    - match:
        prefix: /v1/chat/completions
      destinations:
        - ref:
            name: openai-backend
            namespace: default
  backends:
    - name: openai-backend
      llm:
        provider: openai
        credentials:
          secretRef:
            name: openai-api-key
            namespace: default

The snippet shows a listener, an inbound route, and a backend provider. The appeal is how little custom glue is required to get a first path working before layering policies.

The Power of Governance: Route, Secure, Observe, Govern, Cost

Beyond routing, the control surface is what sells the product for enterprises.

Routing. Not only HTTP/gRPC: LLM routes can prefer cheaper or faster models, fail over across providers, and keep agent traffic on the same plane as ordinary API calls.

Security and policy. Beyond JWT and OIDC checks, operators can attach rate limits and richer policies to LLM routes. Example:

# Example: Applying a rate limit policy to an LLM route
apiVersion: gateway.agentgateway.io/v1alpha1
kind: RateLimitPolicy
metadata:
  name: llm-rate-limit
spec:
  targetRef:
    group: gateway.agentgateway.io
    kind: LLMGateway
    name: my-llm-proxy
  rateLimits:
    - local:
        requestsPerUnit: 100
        unit: MINUTE
      key:
        header: "x-api-key" # Rate limit per API key

Observability. OpenTelemetry hooks by default matter for teams that already standardize traces and metrics. Gateway spans that include model, route, and agent identity reduce blind spots when debugging slow or expensive calls.

Governance and cost. Tool access policies for MCP targets, quotas, and cost-aware routing let a platform team set budgets once instead of negotiating limits inside every agent repo. That separation of duties—app teams ship agents, platform teams ship the data plane—is the operational pitch.

When to Ship It, and When to Skip It

Ship it when the org is building multi-agent systems with several LLM providers, MCP tools, and a need for shared auth, tracing, and spend control. If A2A traffic is growing and each team is reinventing gateways, consolidation pays off.

Skip it for now when the only need is a thin proxy to one provider with minimal policy. A lighter LLM proxy may be enough until agent protocols and multi-tenant governance become real pain.

Greenfield demos with a single chatbot rarely justify another control plane. Production agent meshes with compliance requirements usually do.

Practical takeaway

Agentgateway targets an emerging infrastructure gap: unified routing and policy for LLMs, MCP, and A2A instead of a pile of special-case proxies. Platform teams gain a place to define policy, observe interactions, and constrain cost without rewriting every agent. Application teams gain a stable contract for how tools and models are reached.

Adoption should follow evidence: measure how many custom ingress paths exist today, how many lack shared tracing, and how often spend surprises appear. If those counts are high, a unified AI data plane is worth a serious spike. If they are low, keep the stack thin and revisit when agent sprawl arrives.

Routing details worth pressure-testing

Latency-aware and cost-aware routing only help when health signals are honest. During a spike, verify that unhealthy backends leave the pool quickly and that sticky sessions—if any—do not pin traffic to a dying replica. Model-aware routing should expose which model served a request in traces; otherwise finance and SRE argue from different dashboards.

Also test failover with intentional faults: revoke a provider key, lower a rate limit, and confirm agents surface a controlled error rather than hanging on retries. Gateway-level retries must be coordinated with client retries to avoid amplification.

Security details for enterprise reviews

JWT and OIDC validation are baseline. Ask how tool ACLs map to MCP targets, how secrets for provider keys are stored, and whether policy changes require a full restart or hot reload. Multi-tenant clusters need clear isolation so one team’s agent cannot invoke another team’s tools.

Rate-limit policies should distinguish interactive chat from batch embedding jobs. A single global QPS cap is blunt; per-route and per-principal budgets match how platforms actually charge internal customers.

Observability expectations

Default OpenTelemetry is necessary but not sufficient. Confirm baggage propagation from agent frameworks into gateway spans, and that attributes include route name, model id, token counts when available, and MCP tool names. Without those, traces explain latency but not cost.

Log sampling strategies matter too: full prompt logging may be forbidden; structured metadata with redaction policies is usually the compromise. Align with security before enabling verbose bodies in non-prod.

Cost governance in practice

Cost-aware routing can prefer cheaper models for low-stakes traffic, but product owners must label which routes are allowed to degrade. Pair gateway budgets with alerting when a route approaches its monthly ceiling. Tool access policies that limit expensive MCP actions (large crawls, bulk writes) prevent a single agent loop from burning the month’s credits overnight.

Rollout sketch

  1. Deploy the gateway in a sandbox namespace with one LLM route.
  2. Attach OTel export to the existing collector; verify one golden path.
  3. Add a single MCP target behind authz and a rate limit.
  4. Mirror a slice of production agent traffic; compare error rates and p95.
  5. Expand A2A routes only after identity and tracing are proven on LLM and MCP paths.

That sequence keeps blast radius small while still exercising the features that differentiate Agentgateway from a plain LLM proxy.

Organizational fit

Platform groups that already run API gateways will recognize the operating model: tickets for new routes, policy-as-code, shared dashboards. Agent teams that previously owned their own LiteLLM sidecars may resist until the gateway demonstrably removes toil—shared keys, shared quotas, shared traces. Plan for a migration window where both paths coexist, with clear deadlines.

Documentation for agent authors should show how to point SDKs at the gateway base URL, how to pass identity, and how to interpret gateway error codes. Without that enablement, teams will keep bypassing the plane for “just this one experiment.”

Key Takeaways

  • Unified data plane: put traffic steering, authz, telemetry, policy, and spend limits on one hop that understands HTTP/gRPC plus model and agent protocols.
  • MCP as services: discover and protect tool servers like other microservices rather than as afterthoughts beside the LLM proxy.
  • A2A visibility: identity and tracing on agent hops turn black-box meshes into operable systems.
  • Policy at the edge: rate limits, auth, and tool ACL belong in the gateway so agent code stays focused on reasoning.
  • Right-size the choice: complex agent platforms benefit; single-model prototypes may not.

Teams serious about scalable, secure, observable AI-native applications—especially those mixing autonomous agents with diverse model providers—should evaluate whether their current proxy layer already covers agent protocols or only chat completions. The former is table stakes for the next wave of production agent systems; the latter is a temporary convenience.

Operationally, start with one LLM route and one MCP target in a non-production cluster, prove OpenTelemetry dashboards light up, then expand policies. Resist enabling every feature on day one; a narrow, observed path beats a fully configured gateway nobody trusts yet.