FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-10-14;last seen 2026-10-16。There is no official certification or quality rating here — we record sources and dates only.
Java Implementation of Google's A2A Protocol: Connecting the Agentverse
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
This project provides a Java implementation for both an A2A (Agent-to-Agent) server and client.
**A2A is an open protocol developed by Google** to standardize how AI agents communicate and exchange information, fostering a vibrant ecosystem of interoperable AI. This api also supports building MCP Servers in Java with use of simple annotations. Imagine a world where diverse AI agents, built with different tools and by different creators, can seamlessly collaborate to solve complex problems - that's the vision A2A is bringing to life. This implementation demonstrates how to set up this communication in Java, using the Spring Framework, with a focus on sending and retrieving tasks.
a2ajava is a Swiss Army knife for building agentic applications. It is multi-protocol — works seamlessly with both A2A (Agent-to-Agent) and MCP (Model Context Protocol). It is multi-language — supports Java, Kotlin, and Groovy. It is multi-platform — compatible with Gemini, OpenAI, Claude, and Grok. It is multi-client — includes A2A and MCP clients with connectors in Java, Node, and Python. It offers multi-integration — out-of-the-box support for Selenium, human-in-the-loop workflows, and multi-LLM voting for consensus-based decision making. Agents built using the A2A protocol with a2ajava run seamlessly on MCP as well, ensuring maximum interoperability across platforms.
Quick Start
Use these example to quickly build agents using this library , forking and cloning these examples is the best way to get started with a2ajava.
* Spring A2A Agent - Use a2ajava to build a spring agent using A2A and MCP, can work with a2a client or with mcp client like claude desktop or connect to visual studio code as agent. This should be the first project to learn if you are new to agentic ai.
* Connect MCP Agent in Java - MCP Connector for Java Based agents , connect your a2a server to MCP client like claude or connect your MCP server to a2a client. Or vice versa or any permutation and combination
* Database Agent - Use a2ajava to build a database agent using Derby DB, start stop database , insert data , create table all with agentic operation for both mcp as well as a2a
* Standalone Java - Several Examples on how to Use a2ajava to build a standalone java agent using A2A and MCP work with any client
* Log Monitoring Agent - Use a2ajava to build a log monitoring agent which triggers a2a task based on the log messages. Works with both a2a and mcp clients dual protocol
* A2A Kafka Agent - Use a2ajava to build a kafka agent which can trigger a2a task or mcp tool based on the kafka messages.
* A2A Selenium Web Agent - Use a2ajava to build a selenium agent which can trigger a2a task or mcp tool for web browsing , validation of web pages.
* A2A Grafana Agent - Build observable Agents using A2A or MCP and Grafana
* A2A MongoDB RAG Agent – Perform semantic search and reasoning across agent tasks using RAG with MongoDB Agent.
* Simple Agent in Kotlin - Use A2AJava to build a simple agent in Kotlin.
* Build Agent in MCP - Use A2AJava to build a simple agent in MCP.
* MCP Agent in Kotlin - Build MCP Agent in Kotlin and connect to Claude or A2A Clients
* MCP and A2A RAG Server - State of the art RAG server using A2A and MCP with MongoDB Atlas works with both MCP as well as A2A clients
* A2A and MCP Agent with Security - Build A2A and MCP agent with security using Spring Security and JWT.
* A2A and MCP in Groovy - Build A2A and MCP agent in Groovy using A2AJava library.
* A2A and MCP in Scala - Build A2A and MCP agent in Scala using A2AJava library.
* A2A and MCP with Playwright - Build A2A and MCP agent with Playwright for web automation using A2AJava library.
* MCP and A2A with Apache Thrift - Build A2A and MCP agent with Apache Thrift for cross-language communication using A2AJava library. This example demonstrates how to use Thrift to call a service implemented in another language (e.g., Python, Go, C++) from a Java-based A2A or MCP agent.