datarekha

MCP vs A2A vs ACP vs ANP: the agent protocol stack

Four agent protocols arrived in barely a year — and most takes get them wrong. They aren't competitors; they're layers. Here's how MCP, A2A, ACP, and ANP fit together.

9 min read Intermediate Agentic AI Lesson 8 of 29

What you'll learn

  • Why MCP is vertical (agent to tools) and A2A, ACP, ANP are horizontal (agent to agent)
  • What each protocol is, who built it, the transport it uses, and the problem it solves
  • How the four stack together — and where the ecosystem is already converging

Before you start

You built an agent. Thanks to MCP, it can reach your database, your APIs, your files. Then a real requirement lands: it needs to hand a task to a different agent — one built by another team, in another framework, maybe at another company. MCP can’t do that. That’s a different protocol’s job.

In barely a year the agent world produced four interoperability protocols, and the internet filled with “MCP vs A2A” hot takes that miss the whole point. They are not competitors. They solve different problems at different layers. Get that one idea and the confusion evaporates.

The one mental model: vertical vs horizontal

There are exactly two directions an agent needs to talk.

  • Down, to its tools — databases, APIs, code, files. This is vertical integration, and it’s what MCP does.
  • Across, to other agents — delegating work to peers. This is horizontal integration, and it’s what A2A, ACP, and ANP do (three flavours, different scopes).
Your agentreasons · plans · actsMCP ↓ verticalDatabaseAPIsFiles / codeA2A · ACP · ANP ↔ horizontalPeer agentPeer agentMCP plugs in tools.A2A / ACP / ANP plug in other agents.
One agent, two directions: down to tools (MCP), across to agents (A2A, ACP, ANP).

MCP — the tool layer (the vertical one)

The Model Context Protocol, from Anthropic (November 2024), is a standard way to connect a single agent to external tools, data sources, and prompts. It speaks JSON-RPC over a client-server link: your agent runs an MCP client, each tool exposes an MCP server, and any client can use any server. It’s often called “the USB-C of AI” — one socket, any tool. (The MCP lesson covers it in depth.)

Crucially, MCP says nothing about agents talking to each other. That’s the gap the other three fill.

The agent-to-agent layer — three scopes

All three move work between agents. They differ in how open the world is they’re built for — from inside one enterprise to the open internet.

A2A — Agent2Agent (the enterprise collaborator)

Google’s A2A (April 2025), since donated to the Linux Foundation, lets agents built by different vendors discover each other and delegate tasks. Each agent publishes an Agent Card — a JSON file advertising its capabilities — so a “client” agent can find a “remote” agent and hand it a task, tracked through a lifecycle (pending, in-progress, completed, failed). It runs on HTTP, Server-Sent Events, and JSON-RPC. The agents stay opaque — they collaborate without exposing their internal tools or reasoning. Over 50 vendors (Salesforce, SAP, ServiceNow, MongoDB, and more) backed it on day one, and it’s explicitly designed to complement MCP, not replace it.

ACP — Agent Communication Protocol (the REST-first broker)

IBM Research’s ACP (built around the BeeAI framework, now under the Linux Foundation) takes a REST-first approach: agents expose plain HTTP endpoints and exchange MIME-typed multipart messages, supporting both synchronous and asynchronous calls. It’s deliberately lightweight and runtime-independent, and works local-first — handy when your agents live on the same machine or private network. The headline news: ACP is merging with A2A under the Linux Foundation (2025), so the two enterprise tracks are becoming one.

ANP — Agent Network Protocol (the open, decentralized one)

ANP is the community-built, fully decentralized protocol — its stated goal is to be “the HTTP of the agentic web.” There’s no central directory. Agents identify themselves with W3C Decentralized Identifiers (the did:wba method, which uses ordinary web infrastructure like HTTPS and DNS rather than a blockchain) and describe themselves in JSON-LD using schema.org vocabulary, so any agent can find, authenticate, and securely talk to any other across organizational boundaries — no shared platform required.

agent → toolsagent → agents, open webMCPtools · dataA2A · ACPenterprise peersANPopen, DID-basedA2A and ACP are merging under the Linux Foundation — the enterprise lane is consolidating.
The same spectrum, scope by scope: tools → enterprise agents → the open agentic web.

Side by side

ProtocolBuilt byLayerTransportIdentity / discoveryBest for
MCPAnthropicAgent → toolsJSON-RPC, client-serverper-server configgiving one agent tools & data
A2AGoogle → Linux FoundationAgent → agentHTTP, SSE, JSON-RPCAgent Cardscross-vendor enterprise agents
ACPIBM / BeeAIAgent → agentREST, MIME messagesREST endpointslocal-first, runtime-agnostic
ANPopen communityAgent → agentHTTP, JSON-LDW3C DIDs (did:wba)the open, decentralized agent web

The trap to avoid

The mistake almost everyone makes is treating these as a single bake-off and asking “which one wins?” None of them wins, because they’re not in the same race. The real questions are: Does my agent need tools, other agents, or both? and How open is the world those other agents live in? Answer those and the protocol picks itself.

Quick check

0/3
Q1An agent needs to query a Postgres database and call a weather API. Which protocol is the right fit?
Q2What is the defining difference between ANP and A2A/ACP?
Q3A startup wants two agents from two different companies to collaborate, with both staying private about their internal tools. Best starting point?

Next

You now have the map: MCP plugs in tools, A2A/ACP plug in enterprise agents, ANP plugs into the open agent web. Next, see these ideas in motion in MCP and the agentic design patterns that use them.

Practice this in an interview

All questions

Sign in to track your progress

Completed lessons, your XP, level, and streak save to your account — it's free and takes a few seconds.

Explore further

Related lessons

Skip to content