A2A to MCP bridge logo

A2A to MCP bridge

Bridges A2A v1.0.1 agents into four MCP tools over a stateless HTTP endpoint, with optional MCP task support.

Install A2A to MCP bridge

Run the project’s own setup commands, in order.

Setup steps from the project

A2A to MCP bridge installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g a2a-to-mcp
    
  2. 2. Install
    git clone https://github.com/AmirK-S/a2a-to-mcp.git && cd a2a-to-mcp && npm ci && npm run build
    
  3. 3. Start the server
    node dist/cli.js --config agents.json
    
  4. 4. Install
    npm ci
    

Overview

A2A to MCP bridge MCP server exposes A2A v1.0.1 agents as MCP tools over a stateless HTTP endpoint. It reads agent cards, translates messages, task states, artifacts, parts, and errors, and supports both modern and legacy MCP routes. Reach for it when an MCP client needs to discover or interact with one or more A2A agents through a single bridge. Claude Code and Cursor configurations are documented.

Use cases

  • Expose configured A2A agents to an MCP client
  • Discover an A2A agent from its agent card
  • Send messages and continue A2A conversations
  • Read or cancel long-running A2A tasks

Key features

  • Four MCP tools for A2A discovery and task operations
  • MCP 2026-07-28 and 2025-11-25 routes
  • A2A v1.0 JSON-RPC communication
  • Task extension support on the modern route
  • Translation of parts, artifacts, states, and errors
  • Configurable agent aliases and endpoint hosts

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 80d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How A2A to MCP bridge works

What A2A to MCP bridge MCP server does

The A2A to MCP bridge MCP server presents configured A2A agents through a single MCP endpoint. Each agent is assigned an alias and can be referenced by its base URL or agent-card URL. MCP clients receive four tools: a2a_discover, a2a_send_message, a2a_get_task, and a2a_cancel_task.

a2a_discover returns the agent card after a structural check. a2a_send_message sends text and can continue an existing conversation or task using bridge-issued handles. The remaining tools retrieve or cancel a task. With multiple agents, each call includes an alias; with one configured agent, the alias can be omitted.

The bridge converts A2A parts, artifacts, task states, and errors into MCP results. Its structured envelope identifies whether the response is a direct message or task, includes translated state and artifact information, and can add a note when conversion loses information. A2A identifiers are not exposed as the handles used by MCP clients.

How it works

The bridge serves MCP 2026-07-28 through server/discover and MCP 2025-11-25 through initialize at the same endpoint. Both routes are stateless and do not use sessions. A2A communication uses version 1.0 over JSON-RPC.

When an agent opens a task, a client that declares the io.modelcontextprotocol/tasks extension can receive a task creation result and use tasks/get, tasks/update, or tasks/cancel. The bridge consumes streaming responses when the agent card advertises streaming; otherwise it uses A2A task retrieval. Clients without the extension receive an inline result after the task reaches a terminal or interrupted state.

A task that requests input is represented with a synthesized single-string form elicitation for clients that declare elicitation support. A2A authorization requests are not converted into credential elicitation. Agent failures and typed A2A errors become MCP tool execution errors, with A2A state or error information retained in the result envelope.

Setup and configuration

Run the bridge with Node.js 20 or later. Install the published package globally, or clone the repository, install dependencies with npm ci, and build it with npm run build. Create an agents.json file containing an agents object and a listening port. Each entry supplies either url or cardUrl.

Start the process with node dist/cli.js --config agents.json. The default example listens at http://127.0.0.1:8931/mcp. Loopback hosts are accepted in Host and Origin by default; configure allowedHosts to permit other hosts. This release provides no authentication on either side.

Configure Claude Code with an HTTP MCP entry in the project’s .mcp.json. Configure Cursor with the same endpoint in .cursor/mcp.json. Claude Code can use the modern route, while Cursor uses the legacy initialization route.

Limitations and notes

The A2A to MCP bridge MCP server keeps conversation and task handles in memory. Handles expire 15 minutes after their last use by default, controlled by handleTtlMs, and unknown or expired handles return explicit errors. The bridge does not expose the underlying A2A identifiers.

MCP task support is available only on the 2026-07-28 route. Clients must opt in through per-request capabilities, and the documented Claude Code and Cursor measurements did not declare the extension as of 2026-09-06. On the legacy route, task extension methods return the required capability error.

Some A2A lifecycle distinctions cannot be represented directly in MCP. For example, SUBMITTED maps to working, and FAILED, REJECTED, and AUTH_REQUIRED map to a completed MCP task whose result is marked as an error. An unspecified A2A state is also treated as an error rather than guessed. The project is licensed under Apache-2.0.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about A2A to MCP bridge

A2A to MCP bridge is an MCP server that connects MCP clients to one or more A2A v1.0.1 agents. It exposes tools to discover an agent, send a message, read a task, and cancel a task, while translating A2A messages, artifacts, task states, and errors into MCP results.

Install it globally with `npm install -g a2a-to-mcp`, or clone the repository, run `npm ci`, and build with `npm run build`. Node.js 20 or later is required. Start it with `node dist/cli.js --config agents.json` after creating the agent configuration.

Yes, A2A to MCP bridge works with Cursor through its legacy MCP initialization route. Add the HTTP endpoint, such as `http://localhost:8931/mcp`, to `.cursor/mcp.json`. Cursor uses MCP `2025-11-25` at the same bridge endpoint.

Yes, A2A to MCP bridge works with Claude Code through an HTTP MCP configuration in the project’s `.mcp.json`. Claude Code negotiates the modern `2026-07-28` route in newer versions and older versions can use the legacy `initialize` route.

Yes, it supports long-running tasks through the MCP tasks extension on the `2026-07-28` route. Clients must declare the extension per request to receive task creation results and use task operations; clients without it receive an inline result after completion or interruption.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewA2A to MCP bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/a2a-to-mcp-bridge?style=directory)](https://allmcps.com/mcp/a2a-to-mcp-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/a2a-to-mcp-bridge"><img src="https://allmcps.com/api/badge/a2a-to-mcp-bridge?style=directory" alt="A2A to MCP bridge on AllMCPs" /></a>