A2A vs MCP: Key Differences

A2A vs MCP: A2A connects AI agents to other agents, MCP connects agents to tools and data. Compare discovery, tasks, auth and when to use each protocol.

10 min read

A2A vs MCP: Key Differences and When to Use Each | Bifrost

A2A and MCP are complementary AI agent protocols that connect different things. The Agent2Agent protocol (A2A) connects an AI agent to other autonomous agents so it can discover them and delegate tasks, while the Model Context Protocol (MCP) connects an agent or AI application to the tools, data and prompts it calls directly. In a typical system, an agent receives work over A2A and completes it with MCP tools.

Anthropic released MCP in November 2024 and Google announced A2A in April 2025. Both now belong to the Agentic AI Foundation (AAIF), the Linux Foundation fund that launched with MCP as a founding project in December 2025 and accepted A2A as a Growth Stage project in August 2026.

The practical A2A vs MCP question is where each protocol belongs in one design. This page compares the A2A protocol v1.0 with the MCP 2026-07-28 revision. Bifrost, the open-source AI gateway, governs both kinds of traffic and the model calls between them.

How does A2A differ from MCP?

A2A differs from MCP in what sits on the other end of the connection. An MCP client calls a tool that declares a JSON Schema for its inputs and returns a structured result. An A2A client hands a goal to another agent, which plans the work, uses its own tools and reports progress on a task.

The A2A maintainers describe the split as vertical and horizontal: each MCP connection gives one agent another capability, while A2A reaches across team and organization boundaries. An A2A remote agent stays opaque; the client never sees its model, prompts, memory or tools.

MCP standardizes the tool side of function calling: a large language model emits a function call, and the host turns it into a tools/call request to an MCP server. In A2A, both sides are agents, and the callee decides how to do the work. What is MCP covers MCP's host, client and server roles.

A2A vs MCP at a glance

This table compares A2A v1.0 with the MCP 2026-07-28 revision across ten dimensions. The largest differences are the counterpart, the unit of work and how capabilities are described: A2A advertises skills in natural language, while MCP advertises tools with machine-checkable schemas.

DimensionA2A (Agent2Agent)MCP (Model Context Protocol)
ConnectsAn agent to other agentsAn agent or AI application to tools, resources and prompts
CounterpartAn autonomous, opaque agentA tool or data source with a declared schema
DiscoveryAgent Card at /.well-known/agent-card.jsonserver/discover, then tools/list
Capability descriptionSkills: ID, name, description, tags, examples; no input schemaTools: name, description, inputSchema, optional outputSchema (JSON Schema 2020-12)
Unit of workA task with 8 states, artifacts and a context IDA tool call with a result
StateStateful tasks and multi-turn contextsStateless requests; long-running calls use the optional tasks extension
Wire formatJSON-RPC 2.0, gRPC or HTTP+JSONJSON-RPC 2.0 over stdio or Streamable HTTP
Async updatesServer-sent events, push notifications to a client webhookClient polling with tasks/get
AuthenticationSchemes declared in the Agent CardOAuth 2.1 for HTTP servers; optional
Origin and governanceGoogle, April 2025; AAIF since August 2026Anthropic, November 2024; AAIF since December 2025

Older comparisons describe MCP sessions and an initialize handshake that the 2026-07-28 revision removed; the MCP specification page tracks the changes.

What changes on the wire

On the wire, A2A returns a task that the client follows over time, while MCP returns the result of one tool call. An A2A client reads an Agent Card, sends a message, then polls, streams or waits for push notifications. An MCP client lists tools, sends tools/call with schema-matching arguments and reads the result.

Two lanes: an A2A client reads an Agent Card, sends a message and follows a remote agent task; an MCP client lists tools, calls one and gets a result

Figure 1: A2A returns a task the client follows over time; MCP returns the result of one tool call.

Agent Cards vs MCP tool definitions

An A2A Agent Card describes an agent; an MCP tool definition describes a function. The card lists the agent's skills, the interfaces where it accepts requests, its capabilities and its authentication requirements. Each skill has a required ID, name, description and tags, plus optional example prompts, but no schema for its input. An MCP tool carries an inputSchema that the model fills in.

jsonc
// A2A skill, inside an Agent Card
{ "id": "refund-review", "name": "Refund review",
  "description": "Reviews a refund request against policy and returns a decision.",
  "tags": ["billing", "refunds"], "examples": ["Can order 4417 be refunded?"] }

// MCP tool, from tools/list
{ "name": "get_order", "description": "Fetch one order by ID.",
  "inputSchema": { "type": "object",
    "properties": { "order_id": { "type": "string" } }, "required": ["order_id"] } }

The difference is who interprets the request. With MCP, the calling model must produce valid arguments for the server to validate. With A2A, the caller sends text, file or data parts, and the remote agent interprets them.

Tasks vs tool calls

A2A makes the task the core object. A remote agent returns a task ID and a state such as TASK_STATE_WORKING, moves through 8 states including TASK_STATE_INPUT_REQUIRED, and groups related tasks under a context ID. Clients follow it with server-sent events, push notifications or GetTask, as the A2A task lifecycle shows.

MCP went the other way. The 2026-07-28 revision removed the initialize handshake and the Mcp-Session-Id header, so every request carries its protocol version and client capabilities in _meta. Long-running tool calls moved to an official extension, io.modelcontextprotocol/tasks: the server returns a task ID, the client polls tasks/get, and the statuses are working, input_required, completed, failed and cancelled. MCP now keeps state out of the protocol; A2A puts the task at its center.

Transports and message direction

A2A runs over HTTP(S) with three bindings, and a remote agent can call back to a client webhook. MCP uses stdio for local servers and Streamable HTTP for remote ones, and since 2026-07-28 MCP servers never initiate JSON-RPC requests.

How authentication works in A2A and MCP

A2A declares authentication requirements in the Agent Card and leaves credential acquisition to the client, while MCP standardizes one flow: OAuth 2.1, with the MCP server acting as an OAuth resource server.

AspectA2AMCP
Where requirements livesecuritySchemes and securityRequirements in the Agent Card, modeled on OpenAPI 3.2Protected Resource Metadata (RFC 9728) published by the MCP server
Supported methodsAPI key, HTTP bearer, OAuth 2.0, OpenID Connect, mutual TLSOAuth 2.1; stdio servers read credentials from the environment
Token audienceDefined by the scheme each agent declaresBound to one server's URI with Resource Indicators (RFC 8707)
Mid-task authorizationTask moves to TASK_STATE_AUTH_REQUIREDInput-required results ask the client for more input

MCP OAuth walks through the full MCP flow.

The harder problem is multi-hop identity. When agent A calls agent B over A2A and agent B calls an MCP server, each hop authenticates separately. Unless each hop forwards the original caller, the MCP server sees only agent B's service credential.

When to use A2A vs MCP

An agent should expose capabilities over MCP when each one is a function with known inputs and outputs, and over A2A when the counterpart has to plan, ask follow-up questions or belongs to another team. One agent can use both.

  • Use MCP for database queries, search, file access and API calls exposed as tools: work that finishes in one request, where the calling model chooses the arguments.
  • Use A2A when the work runs for minutes or longer, needs clarifying input, or comes from an agent whose internals must stay private.
  • Expose both when an agent has a few well-defined, stateless skills and also handles open-ended work. The A2A documentation describes exposing such skills as MCP-compatible resources with tool-style descriptions.
  • Avoid wrapping a whole agent as an MCP tool. A tool call cannot carry multi-turn input requests, streamed artifacts or cancellation the way an A2A task does.

How to combine A2A and MCP in a multi-agent system

A multi-agent system combines the two protocols by assigning each hop to one of them: agents delegate to each other over A2A, and every agent reaches its own tools over MCP. Agent frameworks such as LangChain's LangGraph, CrewAI and Google's Agent Development Kit build each agent; A2A and MCP connect it.

An application calls an orchestrator agent, which delegates over A2A to a specialist agent and a partner agent, while each agent calls its own MCP servers

Figure 2: Every hop authenticates separately, so the caller's identity and the task ID have to be carried across each one.

  1. The application sends the user's request to an orchestrator agent.
  2. The orchestrator reads specialist agents' Agent Cards, picks one by its skills, and sends SendMessage with the credential the card requires.
  3. The specialist creates a task, plans with its model and calls MCP tools, each with a token bound to that MCP server.
  4. If it needs more input or authorization, the task moves to an interrupted state and the request goes back over A2A.
  5. The specialist returns artifacts, and the orchestrator may call its own MCP tools to act on them.

To trace one request across these hops, carry the A2A context ID and task ID into every model and tool call; MCP 2026-07-28 also defines OpenTelemetry traceparent keys in _meta. The Agent Gateway announcement traces one hand-off end to end.

Risks of running A2A and MCP in production

A2A risk centers on trusting remote agents and their output; MCP risk centers on trusting tool descriptions and the scope of tool credentials. Both turn external content into model input, a prompt injection path.

  • Spoofed Agent Cards. Card signing with JSON Web Signatures is optional in A2A, so an unsigned card on a compromised host can point clients at a malicious endpoint.
  • Untrusted artifacts. Text from a remote agent becomes input to your own model. The same applies to MCP tool results; MCP security covers tool poisoning and related threats.
  • Over-scoped credentials. A shared service token grants every caller the same access and hides who acted.

Screening for injection and sensitive data is covered in AI security at the gateway.

A2A and MCP with Bifrost

Bifrost, the open-source AI gateway built by Maxim AI, governs A2A, MCP and LLM traffic as one gateway. For teams that settle A2A vs MCP by running both, Bifrost puts access control and logging on every hop instead of in each agent.

On the A2A side, the Agent Gateway in Bifrost registers an agent by its Agent Card URL and accepts JSON-RPC, REST or gRPC from clients, whatever transport the agent uses. Agent access grants individual agents to virtual keys, separately from model and tool permissions.

On the MCP side, Bifrost connects to MCP servers over STDIO, HTTP or SSE and does not execute tool calls automatically by default. Tool filtering limits which tools each virtual key can call, and MCP authentication offers six auth types, including per-user OAuth and token exchange.

An application calls an A2A agent through Bifrost, and the agent sends its MCP tool and model calls back through Bifrost with context and task ID headers

Figure 3: Routing both protocols through one gateway ties an A2A task to every MCP and model call made for it.

The agent connects the two sides. With credential forwarding enabled, an agent reuses the caller's credential on its MCP and LLM calls and sends x-bf-session-id with the A2A context ID and x-bf-agent-correlation-id with the task ID. Agent Logs then link each task to its tool and model calls. The same deployment routes to 10,000+ models across 25+ providers with 11 microseconds of overhead at 5,000 RPS.

To run both protocols through one gateway, start with the gateway quickstart, then register your first agent and connect an MCP server.

Frequently asked questions

Will A2A replace MCP?

No. A2A and MCP solve different problems, and both are governed by the Agentic AI Foundation. MCP connects one agent to tools, data and prompts, while A2A connects an agent to other autonomous agents. A typical agent receives a task over A2A and completes it with MCP tools, so systems that use A2A usually run MCP too.

Which is better, A2A or MCP?

Neither is better, because they answer different questions. MCP fits when an agent needs a function with defined inputs and outputs, such as a database query or an API call. A2A fits when the counterpart is another agent that plans its own work, needs follow-up input or belongs to another team. Most multi-agent systems use both.

Do A2A and MCP both use JSON-RPC?

Yes, with a difference in scope. MCP uses JSON-RPC 2.0 for every message, over stdio or Streamable HTTP. A2A offers JSON-RPC 2.0 as one of three standard bindings, alongside gRPC and the REST-style HTTP+JSON binding, and an agent can list several of them in one Agent Card.

Is MCP stateless?

Yes, as of the 2026-07-28 revision. MCP removed the initialize handshake and protocol-level sessions, so each request carries its protocol version and client capabilities. Servers that need cross-call state pass explicit handles as tool arguments, and long-running work uses the optional tasks extension. A2A stays stateful, with tasks and context IDs at its core.

Where does ACP fit between A2A and MCP?

The Agent Communication Protocol (ACP), created by IBM Research for agent-to-agent messaging, merged into A2A in August 2025 under the Linux Foundation, and its team now contributes to A2A. ACP overlapped with A2A, not MCP, so new designs choose between A2A for agents and MCP for tools.

  • a2a
  • ai agent
  • mcp

[ Keep reading ]

More on AI Agent

View all →