A2A Bridge MCP server

Bridges Claude Desktop with A2A protocol agents, enabling seamless communication and extending capabilities through agent registration, listing, and calling tools.
Back to servers
Setup instructions
Provider
Regis Mesquita
Release date
May 04, 2025
Stats
20 stars

This MCP server provides a bridge between Claude Desktop and A2A (Agent-to-Agent) protocol agents, allowing Claude to access and interact with these agents through a simple interface. It's particularly designed to work with agents built using pcingola/a2a_min and fast-agent.

Installation

To get started with the A2A MCP Server, you'll need to:

  1. Clone the repository
  2. Install dependencies
  3. Start the server

Since this is a developer-oriented tool rather than a production-ready application, you may need to adapt it to your specific requirements.

Using the MCP Tools

The server provides three main tools for interacting with A2A agents:

A2A Server Registry

This tool allows you to register or remove A2A servers. To register a new server:

{
  "action": "add", 
  "name": "security_audit", 
  "url": "http://localhost:8000"
}

To remove a server, use the same format but change the action to "remove".

List Agents

This tool displays all registered agents along with their capabilities. Simply send an empty JSON object:

{}

The response will contain information about all available agents and what they can do.

Call Agent

This tool allows you to send a prompt to a specific agent and receive its response:

{
  "agent_name": "security_audit",
  "prompt": "regismesquita/DevControlMCP"
}

Typical Workflow

When working with the A2A MCP Server, you'll typically follow these steps:

  1. First, register your A2A server using the a2a_server_registry tool
  2. Use the list_agents tool to see what agents are available
  3. Call specific agents with the call_agent tool whenever you need their capabilities

This workflow enables Claude Desktop to access and utilize A2A agents' specialized functionality, expanding Claude's capabilities through the MCP tools interface.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "a2a-bridge" '{"command":"npx","args":["-y","@regismesquita/mcp_a2a"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "a2a-bridge": {
            "command": "npx",
            "args": [
                "-y",
                "@regismesquita/mcp_a2a"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "a2a-bridge": {
            "command": "npx",
            "args": [
                "-y",
                "@regismesquita/mcp_a2a"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later