A2A protocol vs MCP: what each one connects, and when to use both

The A2A protocol connects agents to agents; MCP connects an agent to tools. Agent cards, task states, a traced run of both, and when to skip them.

Published
Reading time
11 min read
Level
Intermediate
By
AI for Devs
TL;DR
  • The A2A protocol lets one agent hand a task to another agent it does not control and collect the artifacts. MCP connects an agent's host to tools, resources, and prompts.
  • A2A 1.0.0 shipped on March 12, 2026, and 1.0.1 followed on May 28, 2026. The project joined the Agentic AI Foundation on August 17, 2026, where MCP has lived since December 2025.
  • A2A 1.0 defines three bindings (JSON-RPC 2.0, gRPC, and HTTP+JSON), eight task states, and webhook push notifications. MCP revision 2026-07-28 runs over stdio or Streamable HTTP and keeps long-running tasks in an optional extension.
  • The run traced here used both: a support agent sent an A2A task to a shipping agent, which answered with one MCP tools/call. It ran on Node.js 26.12.1 with @a2a-js/sdk 1.3.0 and MCP SDK 2.4.0, with no model.
  • Skip both when one team owns every agent and one app calls each tool. A function call is cheaper to run and debug.

The A2A protocol is an open standard for one AI agent to discover another agent, give it a task, and collect the results without seeing how that agent works inside. MCP solves a neighboring problem by connecting an agent's host application to tools and data. Comparisons often frame the two as rivals, but they sit on different edges of one system, and many systems use both. This article covers A2A 1.0's objects, compares them with MCP row by row, and traces one run that used both.

#What is the A2A protocol

A2A, short for Agent2Agent, is a protocol for agent-to-agent communication. A client sends messages to a remote agent over HTTP or gRPC, the remote agent does the work as a task, and the results come back as artifacts. The remote agent stays opaque, so its prompts, memory, tools, and model never enter the exchange.

The specification calls the caller an A2A client and the agent that does the work an A2A server, or remote agent.

Opacity is the design choice that separates A2A from MCP. An MCP server shows the model each tool's name and JSON Schema. An A2A server shows a card of skills described in prose and media types, and it decides how to carry them out.

#Who governs A2A, and which version is current

A2A is a Linux Foundation project hosted by the Agentic AI Foundation (AAIF), and its current release is 1.0.1, as of November 16, 2026. A Technical Steering Committee makes the technical decisions. Its governance file lists nine seats, one each for Google, Microsoft, Cisco, Amazon Web Services, Salesforce, ServiceNow, SAP, IBM, and Bloomberg.

DateEvent
April 9, 2025Google announces A2A, citing more than 50 technology partners
June 23, 2025The Linux Foundation launches the A2A project with Google's specification, SDKs, and tooling
July 30, 2025Version 0.3.0
March 12, 2026Version 1.0.0, with breaking changes to method names, enums, and OAuth flows
May 28, 2026Version 1.0.1, a set of specification fixes
August 17, 2026A2A joins the AAIF as a hosted project

The AAIF says more than 150 organizations back A2A, a count of supporters rather than production deployments. The verifiable parts are the nine committee seats and the official SDKs for Python, Go, JavaScript, Java, .NET, and Rust listed in the repository README.

Version 1.0 renamed message/send to SendMessage and input-required to TASK_STATE_INPUT_REQUIRED, so check which version a peer speaks. Servers read an empty A2A-Version header as 0.3. In the run below, a 0.3 request to a 1.0-only server returned -32009, VersionNotSupportedError.

#A2A core objects: cards, tasks, messages, parts, and artifacts

A2A 1.0 builds on five objects. The Agent Card handles discovery, the Task tracks work, the Message carries each turn, the Part holds content, and the Artifact holds output. All of them are defined once in a2a.proto and mapped to each transport binding.

#Agent cards and discovery

An Agent Card is a JSON document that names the agent, lists its skills, declares its interfaces, and states how to authenticate. Clients fetch it from https://{domain}/.well-known/agent-card.json, from a registry, or from configuration.

The required fields are name, description, supportedInterfaces, version, capabilities, defaultInputModes, defaultOutputModes, and skills. Each interface pairs a URL with a protocolBinding and a protocolVersion, and the first entry is the preferred one. capabilities says whether the agent supports streaming, push notifications, extensions, and an extended card for authenticated callers.

Cards can carry JSON Web Signatures (RFC 7515), so a client can check who issued one.

#Tasks and their states

A task is the unit of work. The server creates it, assigns its ID, and moves it through a fixed set of states, while a contextId groups related tasks and messages into one conversation. For a quick answer, the server can return a single Message and skip the task.

A2A task states: submitted to working, working can pause in input required or auth required, and the task ends in completed, failed, canceled, or rejected. Rejected can also happen at creation.INPUT_REQUIREDinterruptedAUTH_REQUIREDinterruptedSUBMITTEDserver made the taskWORKINGagent is processingreplycredentialTerminal: no more messagesCOMPLETEDread artifactsFAILEDread status messageCANCELEDafter CancelTaskREJECTEDagent declinedrejected at creationPassed through in the traced runNot reachedWaits on the client
Fig. 1An A2A task moves from submitted to working, can pause in an interrupted state, and ends in one of four terminal states. Filled boxes are the states the traced run passed through.
StateKindWhat the client does next
TASK_STATE_SUBMITTED, TASK_STATE_WORKINGActiveWait on a stream, a webhook, or polling
TASK_STATE_INPUT_REQUIREDInterruptedSend a message with the same taskId
TASK_STATE_AUTH_REQUIREDInterruptedSupply a credential out of band, then keep listening
TASK_STATE_COMPLETEDTerminalRead the artifacts
TASK_STATE_FAILED, TASK_STATE_CANCELEDTerminalRead the status message
TASK_STATE_REJECTEDTerminalThe agent declined the work, at creation or later

A terminal task accepts no more messages. In the traced run, a follow-up sent to a completed task came back as error -32004, UnsupportedOperationError.

#Messages, parts, and artifacts

A Message has a messageId, a role of ROLE_USER or ROLE_AGENT, and one or more parts. A Part holds exactly one of four things: text, raw bytes (base64 in JSON), a url to a file, or data as any JSON value, plus an optional mediaType and filename.

An Artifact is a named output made of parts. The spec says results should go in artifacts, and messages should carry the request, clarifying questions, and status updates.

#Streaming and push notifications

To follow a task, a client can poll GetTask, hold a stream open with SendStreamingMessage or SubscribeToTask, or register a webhook for push notifications.

Streams open with a Task, deliver status and artifact events in order, and close at a terminal state. Push notifications POST the same events to the client's URL at least once, so receivers should handle duplicates.

#Transports and authentication

A2A 1.0 defines three bindings: JSONRPC (JSON-RPC 2.0 over HTTP, with Server-Sent Events for streams), GRPC, and HTTP+JSON, a REST style with routes such as POST /message:send. An agent that offers several must give each one the same operations and behavior.

Authentication happens at the HTTP or gRPC layer, never inside A2A messages. The card's securitySchemes can declare an API key, HTTP auth such as Bearer, OAuth 2.0, OpenID Connect, or mutual TLS. Version 1.0 deprecated the OAuth implicit and password flows and added the device code flow.

Clients get credentials out of band, servers must authenticate every request, and production traffic must use TLS.

#MCP vs A2A: agent to agent versus agent to tool

MCP connects a host application to capabilities its model drives, while A2A connects a client to an agent that runs its own loop. Under MCP the model sees each tool's schema and fills in the arguments. Under A2A the client sends a goal as a message and receives a task.

The table compares A2A 1.0.1 with MCP revision 2026-07-28.

DimensionA2A 1.0MCP 2026-07-28
ConnectsA client to a remote agentA host's client to a server of tools, resources, and prompts
What the far side exposesSkills described in an Agent Card; internals hiddenTools with JSON Schema inputs, resources by URI, prompts
DiscoveryAgent Card at a well-known URL, a registry, or configurationserver/discover, then tools/list on a configured connection
Unit of workA task with eight states, grouped by contextIdOne request, such as tools/call; long jobs use the Tasks extension
ContentParts: text, raw bytes, a URL, or JSON dataText, image, audio, resource links, and embedded resources, plus structuredContent
Updates on long workStreams, SubscribeToTask, and webhook pushPolling tasks/get, with optional notifications on a subscriptions/listen stream
TransportsJSON-RPC 2.0, gRPC, HTTP+JSONstdio, Streamable HTTP
AuthenticationSchemes declared in the card, checked on every requestOAuth-based authorization for HTTP, optional; stdio reads the environment
Pausing for a personInput-required and auth-required task statesinput_required results that the client answers on retry

MCP has tasks too. Its 2026-07-28 changelog moved tasks into an official extension, io.modelcontextprotocol/tasks, with working, input_required, completed, failed, and cancelled statuses.

The difference left is scope. An MCP task wraps one tool call. An A2A task belongs to an agent that may call many models and tools, ask several questions, and post updates to a webhook for hours.

An agent with a quick, stateless job can also sit behind an MCP tool, as the A2A project's comparison page notes, at the cost of task states, artifacts, and push delivery. The MCP server guide builds one in TypeScript.

#One system that uses both: a traced run

A support agent asks a shipping agent about an order over A2A, and the shipping agent answers by calling its own MCP tool. The support agent never learns the tool exists. Everything below came from one run on November 16, 2026, on Node.js 26.12.1.

The run used these processes:

  • orders-mcp.ts is an MCP server with one read-only tool, get_order_status, served over stdio with @modelcontextprotocol/server 2.4.0.
  • shipping-agent.ts is an A2A server built with @a2a-js/sdk 1.3.0 and Express 5.3.0, offering JSON-RPC on port 41241. At startup it connects to the orders server with @modelcontextprotocol/client 2.4.0.
  • support-client.ts is an A2A client that reads the shipping agent's card and sends two messages.

No model ran. A regular expression that looks for a four-digit order number stands in for the model step, so the agent's decisions were scripted while both protocols ran for real. A logging fetch and a stdio relay recorded the wire traffic.

Sequence of the traced run: the shipping agent lists its MCP tools at startup, the support agent reads the agent card, sends a message, gets an input-required task, replies with the order number, the shipping agent calls its MCP tool, and the task completes with an artifactSupport agentA2A clientShipping agentA2A server, MCP clientOrders serverMCP serverA2A 1.0, JSON-RPCMCP 2026-07-28, stdiostartup: server/discover, tools/listGET agent-card.jsonSendMessage "Where is my order?"task INPUT_REQUIREDSendMessage, same taskId, 4417tools/call get_order_statusstructuredContent: in_transittask COMPLETED, artifactartifact order-4417Dashed lines are reads or a paused task. The support agent never sees get_order_status.
Fig. 2The support agent sees one card, one task, and one artifact. The tool call happens on the shipping agent's private MCP connection, after the second A2A message.

The executor code where the A2A task becomes an MCP call:

shipping-agent.ts (excerpt)
TypeScript
    // Stands in for the model step: find a four-digit order number in the text.
    const said = ctx.userMessage.parts.map((p) => (p.content?.$case === "text" ? p.content.value : "")).join(" ");
    const orderId = said.match(/\b\d{4}\b/)?.[0];
    if (!orderId) {
      bus.publish(status(TaskState.TASK_STATE_INPUT_REQUIRED, "Which order number? It has four digits."));
      return;
    }
 
    const result = await mcp.callTool({ name: "get_order_status", arguments: { order_id: orderId } });
    if (result.isError) {
      bus.publish(status(TaskState.TASK_STATE_FAILED, `Lookup failed for order ${orderId}.`));
      return;
    }
    bus.publish(AgentEvent.artifactUpdate({
      taskId, contextId, append: false, lastChunk: true, metadata: undefined,
      artifact: { artifactId: crypto.randomUUID(), name: `order-${orderId}`, description: "", parts: [data(result.structuredContent)], metadata: undefined, extensions: [] },
    }));
    bus.publish(status(TaskState.TASK_STATE_COMPLETED));

The recorded traffic, in order, with IDs cut to eight characters:

wire trace, abridged
Text
MCP  shipping -> orders    server/discover      protocolVersion 2026-07-28 in _meta
MCP  shipping -> orders    tools/list           get_order_status, order_id pattern ^\d{4}$
A2A  support  -> shipping  GET /.well-known/agent-card.json   A2A-Version: 1.0
A2A  support  -> shipping  SendMessage  "Where is my order?"
A2A  shipping -> support   task 4b971684  TASK_STATE_INPUT_REQUIRED  "Which order number? It has four digits."
A2A  support  -> shipping  SendMessage  taskId 4b971684  "It is order 4417."
MCP  shipping -> orders    tools/call get_order_status {"order_id":"4417"}
MCP  orders   -> shipping  structuredContent {"status":"in_transit","carrier":"UPS","eta":"2026-11-19"}
A2A  shipping -> support   task 4b971684  TASK_STATE_COMPLETED  artifact order-4417

The second A2A request and its response, as sent, with the task's history array removed from the response:

SendMessage, second turn
JSON
{"jsonrpc":"2.0","method":"SendMessage","params":{"message":{"messageId":"eb7e8c15-2c4d-450a-9207-55587b7cf241","contextId":"616c4770-6a72-4246-971f-557db98b5bf4","taskId":"4b971684-b068-431e-84c1-8709e5209f83","role":"ROLE_USER","parts":[{"text":"It is order 4417.","mediaType":"text/plain"}]},"configuration":{}},"id":2}
{"jsonrpc":"2.0","id":2,"result":{"task":{"id":"4b971684-b068-431e-84c1-8709e5209f83","contextId":"616c4770-6a72-4246-971f-557db98b5bf4","status":{"state":"TASK_STATE_COMPLETED","timestamp":"2026-11-16T07:29:46.466Z"},"artifacts":[{"artifactId":"e3068d8c-08d9-4007-804c-2110655700db","name":"order-4417","parts":[{"data":{"status":"in_transit","carrier":"UPS","eta":"2026-11-19"},"mediaType":"application/json"}]}]}}}

The first reply was a task rather than a message, because the agent needed input and a task can wait for it. The second message reused the taskId and contextId, so the server continued that task. On the MCP side, revision 2026-07-28 has no initialize handshake, and each request carries its protocol version in _meta.

Streaming, push notifications, authentication, the gRPC and REST bindings, and a real model were not exercised. The two error checks above, -32004 and -32009, ran against the same server with curl.

#Govern agent-to-agent and agent-to-tool traffic at a gateway

A gateway between callers and agents gives you one place to decide who may call each agent, and to join each task with the model and tool calls made for it. Without one, each A2A server checks its own callers, and each MCP connection keeps its own credentials.

Bifrost, an open-source AI gateway, handles all three kinds of traffic: model calls, MCP tool calls, and A2A agents. Bifrost works as an agent gateway for A2A today. You register an agent from its card URL, and Bifrost serves a rewritten card at /agents/a2a/{name}/.well-known/agent-card.json that points callers at gateway routes.

Bifrost accepts A2A v1 over JSON-RPC, REST, and gRPC, and the two sides can use different bindings, so a client on JSON-RPC can reach an agent that only serves gRPC.

A caller reaches an A2A agent through the Bifrost agent gateway. The agent sends its MCP and model calls back through the Bifrost MCP and LLM gateways with the session and correlation headers, and Agent Logs joins the threeBifrostCallerA2A clientOrders serverMCP serverModel providerLLM APIAgent gatewayagent grant on the keyMCP gatewaytools allowed for the keyLLM gatewaymodel access and limitsShipping agentA2A serverA2Ax-bf-vkA2Akey forwardedMCP tools/callkey + 2 headersMCPmodel callkey + 2 headersroutedAgent Logssession, task, LLM, MCPx-bf-session-id carries the A2A contextIdx-bf-agent-correlation-id carries the A2A taskId
Fig. 3Bifrost checks the caller on the A2A hop. When the agent sends its model and MCP calls through Bifrost with two correlation headers, Agent Logs can join them to the task.
HopProtocolWhat Bifrost checksWhere it appears
Caller to agentA2AA virtual key granted that agentAgent Logs, grouped by context ID
Agent to modelOpenAI-compatible APIThe forwarded key's model access and limitsLLM Logs
Agent to toolMCPThe tools allowed for the forwarded keyMCP Logs

Agent access is its own grant. A key allowed to call shipping-agent gains no rights to models or MCP tools. Grants alone do not stop anonymous requests, so set enforce_auth_on_inference to refuse them. Bifrost Enterprise adds access profiles and projects for granting agents to groups.

The gateway sees the hop between caller and agent, not the agent's internals. To join the two, the agent forwards the caller's credential on its own model and MCP requests, with x-bf-session-id set to the A2A context ID and x-bf-agent-correlation-id set to the task ID. In the traced run, that would have tagged the tools/call with 616c4770 and 4b971684.

Push notifications route through Bifrost as well. It swaps the caller's callback for its own URL and token, and stores pending deliveries in its configuration database so they survive a restart.

On the tool side, Bifrost connects to MCP servers over STDIO, HTTP, or SSE, filters tools per virtual key, and leaves tool calls unrun unless Agent Mode is configured.

Tools that employees add to desktop apps never reach a gateway's configuration. Bifrost Edge extends the gateway's governance to employee machines. It inventories the MCP servers configured in supported apps and enforces allow or deny decisions on each device.

#When you need neither protocol

Skip A2A when every agent ships from one codebase, and skip MCP when one application is the only consumer of a tool. Both add a process boundary, a schema contract, and an authentication setup, which pay off only when the two sides have different owners.

Use neither in these cases:

  • One team runs several agents in one deployment. Call the sub-agent in process, because A2A would add HTTP hops, serialization, and a task store for nothing.
  • One application, one model, and one integration. Write a function tool in your own code.
  • A deterministic service with a stable API. Call the API directly, since wrapping it as an agent buys a task lifecycle nothing will use.

A2A earns its cost when the other agent has a different owner, runs on its own deployment, and needs multi-turn input or long-running work. MCP earns its cost when two or more hosts need the same tool, or when users bring their own host, such as Claude Code or Cursor.

Adopt them in this order:

  1. Start with function tools inside one agent loop.
  2. Move a tool into an MCP server when a second host needs it.
  3. Expose an agent over A2A when another team must call it without its code.
  4. Put a gateway in front once you have several callers or agents, so grants and logs live in one place.

The agents topic and the MCP topic collect related guides, and /news tracks protocol and SDK releases.

#Questions

What is A2A in simple terms?

A2A is a standard way for one AI agent to ask another agent to do a job. The calling agent reads the other agent's Agent Card, sends it a message, and gets back a task that moves through states until it finishes with output artifacts. Neither side sees the other's prompts, tools, or model, so agents from different teams and vendors can work together.

Is A2A replacing MCP?

No. The two protocols connect different things. MCP connects an agent's host application to tools, resources, and prompts that the model drives. A2A connects a client to a separate agent that plans its own steps. The A2A project's own documentation describes them as complementary, and both are now hosted projects of the Agentic AI Foundation under the Linux Foundation.

What is an A2A Agent Card?

An Agent Card is a JSON document that describes an A2A agent: its name, version, skills, supported interfaces with their URLs and protocol bindings, capabilities such as streaming and push notifications, and the security schemes a caller must use. Agents usually publish it at /.well-known/agent-card.json. Cards can carry JSON Web Signatures so a client can verify who issued them.

Can one agent use A2A and MCP at the same time?

Yes, and that is the common pattern. An agent can serve A2A to its callers while acting as an MCP client to its own tools. In the run traced in this article, a shipping agent accepted an A2A task, made one MCP tools/call to an orders server, and returned the result as an artifact. The calling agent never saw the tool.

Who created the A2A protocol and who maintains it now?

Google announced A2A on April 9, 2025, and the Linux Foundation launched it as an open project on June 23, 2025. On August 17, 2026 it joined the Agentic AI Foundation as a hosted project. A Technical Steering Committee with seats for Google, Microsoft, Cisco, AWS, Salesforce, ServiceNow, SAP, IBM, and Bloomberg oversees the specification.

What transports does A2A support?

A2A 1.0 defines three protocol bindings: JSON-RPC 2.0 over HTTP, gRPC, and HTTP+JSON in a REST style. JSON-RPC and REST stream updates as Server-Sent Events, and gRPC uses server streaming. An agent lists the bindings it offers in its card, and every binding must expose the same operations and behavior. Push notifications always use HTTP POST.

Is A2A 1.0 compatible with 0.3?

Not on the wire. Version 1.0 renamed JSON-RPC methods, for example from message/send to SendMessage, and changed enum values to forms such as TASK_STATE_COMPLETED. Clients send an A2A-Version header, and servers treat an empty header as 0.3. SDKs such as the JavaScript SDK offer an opt-in compatibility layer for talking to 0.3 peers during a migration.