A2A Agent to MCP server 🤖
A command-line tool that generates Model Context Protocol (MCP) server code from a oneline a2a agent. This tool helps you quickly create an MCP server that acts as a bridge between LLMs (Large Language Models) and the a2a agent.
English | 简体中文
Features ✨
- Automatic Tool Generation: Converts each
skillsof the a2a agent into an MCP tool - Transport Options: Only supports stdio, for sse you can leveral mcp-proxy
- Complete Project Setup: Generates all necessary files to run an MCP server
- Easy Configuration: Simple environment-based configuration for the generated server
Prerequisites
- Python 3.13+
uv(optional, but recommended) orpip
Environment Setup 🔧
Firstly, you need to start up a a2a agent: https://github.com/google/a2a-python/tree/main/examples
uv run a2a-agent-mcpserver-generator --agent http://0.0.0.0:10000
Installation 📦
uv pip install a2a-agent-mcpserver-generator
Usage 🚀
uv run a2a-agent-mcpserver-generator --help
Usage: a2a-agent-mcpserver-generator [OPTIONS]
Options:
--agent TEXT
--output TEXT
--name TEXT
--history BOOLEAN
--use_push_notifications BOOLEAN
--push_notification_receiver TEXT
--help Show this message and exit.
E2E example
Suggest use mcpclihost as MCP host to take a try.
This tool(mcpclihost) could support both Azure Openai and deepseek
You can add generated MCP server congiguration like this:
{
"mcpServers": {
"a2a-mcp": {
"command": "uv",
"args": [
"--project",
"/Users/lipeng/workspaces/github.com/vincent-pli/a2a-agent-mcpserver-generator/a2a-mcp-server",
"run",
"a2a-agent-mcpserver"
]
}
}
}
to the ~/.mcp.json(default mcp server configuration path of mcpclihost), then take a try
License 📄
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Metadata
Release files for a2a-agent-mcpserver-generator 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| a2a_agent_mcpserver_generator-0.1.2.tar.gz | 7.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / a2a_agent_mcpserver_generator-0.1.2.tar.gz
| Download URL | a2a_agent_mcpserver_generator-0.1.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccf0cc160b2b8a07e59a6cf072c45c24704f73732866fe73cad8c227764bd716
|
|
BLAKE2b-256 checksum How to use checksums |
09470bece00a1740863e582b5bdda9bac28b5961769e37b5d9402fdf3fbb8aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl
| Download URL | a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6cddf750ea228e135d55c617f9d621f858cc2be570530ed1becd5bdafeb2351
|
|
BLAKE2b-256 checksum How to use checksums |
6cf74956c1c6de503e7f78c2adf9a0294f63af3fec51a0484093917cf014fa1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Security for a2a-agent-mcpserver-generator 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.