Comparison
MCP vs A2A: tools for agents vs agents talking to agents
MCP connects one agent to tools and data, A2A lets separate agents hand off tasks. Compared on purpose, discovery, transport and long-running work.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Connects an AI application to tools, data and prompts that MCP servers expose, so one agent can do more.
Lets independent agents find each other, hand over tasks and return results, without sharing their internals.
| MCP | A2A | |
|---|---|---|
| Connects | An agent to tools, resources and prompts | An agent to another agent |
| The other side | A server whose tools the model calls directly | An opaque agent with its own model, tools and memory |
| Discovery | Client lists tools, resources and prompts from each server | Agent Card JSON, often at /.well-known/agent-card.json |
| Unit of work | A tool call or a resource read | A task with messages and output artifacts |
| Transport | JSON-RPC 2.0 over stdio or Streamable HTTP | JSON-RPC, gRPC or HTTP+JSON bindings |
| Long-running work | Progress notifications; the Tasks extension (beta) adds polling and durable task handles | Task states, SSE streaming and push notifications |
| Home | Agentic AI Foundation (Linux Foundation) | Agentic AI Foundation since August 2026; Apache 2.0 |
MCP and A2A work at different layers, so most teams need one or the other first, and only some need both. MCP connects an agent to tools and data: a database, an issue tracker, a folder of files. A2A connects an agent to another agent that someone else built and runs, so it can ask for work and get results back. If you are giving your own agent new abilities, you want MCP; if your agent has to delegate to an agent across a team or company boundary, you want A2A.
The A2A project describes the split itself: “A2A connects the agents to each other; MCP connects each agent to its own tools.” Both now sit in the Agentic AI Foundation, which A2A joined as a hosted project in August 2026. Facts on this page were checked against both specifications on 25 November 2026.
Pick MCP when
Your agent needs to reach a system it cannot otherwise touch. An MCP server wraps that system as tools the model can call, resources the application can read and prompts users can pick, and any MCP host can use it: Claude Code, Cursor, ChatGPT or your own client. The model sees each tool’s name, description and input schema and decides when to call it, with the host asking the user before sensitive calls.
This is the common case. Most “connect my agent to X” problems are MCP problems, and the MCP explained tutorial is the place to start. If you only need a few tools inside one application, plain function calling may be enough; MCP vs function calling covers that choice.
Pick A2A when
The thing on the other end is an agent, not a tool. It has its own model, prompts and tools that you cannot see, it may take minutes or hours, and it may come back with questions. A2A gives that exchange a shape: the remote agent publishes an Agent Card describing its skills, endpoint and authentication; your agent sends it a task; the task moves through states such as working, input required and completed; and results come back as artifacts, by streaming or by push notification.
Typical cases are agents owned by different companies (a travel agent asking a hotel’s agent to hold a room) or by different teams inside one company, each running on its own stack. The A2A tool page lists the official SDKs, and the glossary entry on Agent2Agent gives the short definition.
Use both when
You run several specialised agents that each need their own tools. The A2A documentation’s example is a car repair shop: a shop manager agent talks to the customer (or the customer’s own agent) over A2A; a mechanic agent uses MCP to reach its diagnostic scanner, repair database and vehicle lift, and uses A2A to order parts from a supplier’s agent. Each protocol does the job it was designed for, and neither replaces the other.
Use neither when
Everything runs inside one application you control. Subagents or your framework’s own handoffs are simpler than putting a protocol between two functions in the same process, and they are easier to debug. Reach for A2A when an agent crosses an ownership boundary, not before.
Before you commit
- Write down what is on the other side of each connection: a system you call (MCP) or an agent that decides for itself (A2A).
- Check authentication early. MCP has its own OAuth-based authorization for remote servers; A2A agents declare their schemes (API keys, OAuth 2.0, OpenID Connect, mutual TLS) in the Agent Card.
- Treat whatever comes back as untrusted input. A tool result and a remote agent’s reply can both carry injected instructions; see MCP security risks.
- Plan for long-running work. An A2A task can wait on a human for hours, so store task IDs and handle the input-required state. MCP servers can now run long jobs through the Tasks extension too, which is in beta.
For how agents split work between themselves inside one system, the multi-agent orchestration skill page collects the tutorials. For interactive results inside the chat rather than text, see MCP Apps.
Check your understanding
MCP vs A2A quiz
What MCP and A2A each connect, when to pick one, both or neither, Agent Cards, task states, authentication, untrusted results and long-running work.
7 questions · pass mark 70%
Review
Checked against
Related
- Connect two agents with the A2A protocol
Publish an agent card, send a task from one local agent to another with the official Python SDK, and see where MCP fits.
- Agent2Agent (A2A)
An open protocol that lets agents built on different systems discover each other's capabilities and exchange tasks and results.
- MCP vs function calling vs a plain API
The same tool call wired three ways, compared on who defines, runs and reuses it, and which to pick.
- MCP explained: hosts, clients, servers and transports
What MCP is and how the Model Context Protocol connects AI apps to tools and data: hosts, clients, servers, transports and what the 2026-07-28 spec changed.
- Multi-agent orchestration
Splitting work across subagents or cooperating agents with separate context.