# A2A to MCP bridge [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/AmirK-S/a2a-to-mcp  
**GitHub Stars:** 2  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/a2a-to-mcp-bridge

## Description
A2A v1.0.1 agents as MCP 2026-07-28 tools, with the tasks extension

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/AmirK-S/a2a-to-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g a2a-to-mcp
```

2. Install:

```sh
git clone https://github.com/AmirK-S/a2a-to-mcp.git && cd a2a-to-mcp && npm ci && npm run build
```

3. Start the server:

```sh
node dist/cli.js --config agents.json
```

4. Install:

```sh
npm ci
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/a2a-to-mcp-bridge/readme_

