MCP handles tools, A2A handles agents, AG-UI handles users
AG-UI is an open, event-based protocol that standardizes how AI agents stream events, state, and UI components to frontend applications.

What it does
AG-UI defines a common language for agent backends and user interfaces. It specifies roughly sixteen standard event types—covering streaming messages, state changes, and tool calls—that any agent can emit and any frontend can consume. A transport-agnostic middleware layer handles the actual plumbing across SSE, WebSockets, or webhooks, so the protocol stays loose enough to bridge diverse frameworks without forcing strict format lockstep.
The interesting bit
The project explicitly carves out the “agent-to-human” layer in the protocol stack, leaving MCP for tools and A2A for agent-to-agent chatter. That positioning is either prescient or presumptuous, but the breadth of buy-in is hard to ignore: LangGraph, CrewAI, Google ADK, Mastra, Pydantic AI, and several others already ship first- or third-party integrations, plus community SDKs in Rust, Go, Kotlin, and more.
Key highlights
- Transport-agnostic by design: works over SSE, WebSockets, or webhooks
- ~16 standard event types for streaming chat, state sync, generative UI, and human-in-the-loop flows
- Reference HTTP implementation and default connector included
- Integrations span major frameworks (LangGraph, CrewAI, LlamaIndex, AG2, AWS Strands, etc.)
- Community SDKs in Kotlin, Golang, Dart, Java, Rust, Ruby, and C++
Caveats
- Several integrations are still marked “In Progress”: AWS Bedrock Agents, OpenAI Agent SDK, Cloudflare Agents, React Native, .NET, Nim, Flowise, and Langflow
- The “loose event format matching” that enables broad interoperability also means implementers must pay attention to edge-case behavior across frameworks
Verdict Worth a look if you are building a frontend that needs to talk to multiple agent backends without writing bespoke adapters for each. Skip it if your agent interaction is a one-off chat stream that does not need standardized state synchronization or generative UI contracts.
Frequently asked
- What is ag-ui-protocol/ag-ui?
- AG-UI is an open, event-based protocol that standardizes how AI agents stream events, state, and UI components to frontend applications.
- Is ag-ui open source?
- Yes — ag-ui-protocol/ag-ui is open source, released under the MIT license.
- What language is ag-ui written in?
- ag-ui-protocol/ag-ui is primarily written in TypeScript.
- How popular is ag-ui?
- ag-ui-protocol/ag-ui has 14.9k stars on GitHub and is currently cooling off.
- Where can I find ag-ui?
- ag-ui-protocol/ag-ui is on GitHub at https://github.com/ag-ui-protocol/ag-ui.