Eyebrow Background Glow

MCP Apps: Bring MCP Apps to your users!

Introducing the LlamaIndex Integration with AG-UI & CopilotKit
By Laurie Voss
June 18, 2025

It’s been a big month for CopilotKit’s AG-UI project, which launched just over a month ago!

Since then, both CopilotKit and AG-UI have seen strong adoption, and today we’re celebrating with a wave of new features and updates. We’re also excited to announce that  LlamaIndex integration is joining the celebration with the launch of their official AG-UI integration!

If you’re just tuning in, AG-UI is a protocol that makes it easy to bring agents out of the backend and into direct interaction with users. The protocol can work with any end-user facing UI – a web app, a desktop application, or any existing chat application. CopilotKit is a first-class client to the protocol, focusing on bringing agents into interaction with users through modern web frontends in React.

Getting started is easy, just pip install the integration:

pip install llama-index-protocols-ag-ui

Then you can create an AG-UI compatible FastAPI router in one line of code! This creates an agent, and provides it with tools that it can use on the frontend or the backend to complete user tasks.

(See the full documentation for deeper explanations when defining these tools.)

agentic_chat_router = get_ag_ui_workflow_router(
	llm=OpenAI(model="gpt-4.1"),
	frontend_tools=[change_background],
	backend_tools=[],
	system_prompt="You are a helpful assistant that can change the background color of the chat.",
	initial_state=None,  # Unused in this example
)

On the frontend, this will allow you to include the CopilotChat React component

import { CopilotChat } from "@copilotkit/react-ui";

Which can then be instantiated to give you simple access to your agent:

return (
    <div className="flex justify-center items-center h-full w-full" style={{ background }}>
      <div className="w-8/10 h-8/10 rounded-lg">
        <CopilotChat
          className="h-full rounded-2xl"
          labels={{ initial: "Hi, I'm an agent. Want to chat?" }}
        />
      </div>
    </div>
  );

CopilotKit works seamlessly with the AG-UI protocol to route user requests to frontend or backend tools to achieve their goals. A lot of messy boilerplate is abstracted away, letting you focus on your business logic and user experience.

Get started today!

We’re delighted to add to AG-UI’s already impressive momentum. If you want to build your own agentic frontend using LlamaIndex and CopilotKit, check out these resources:

Top posts

See All
Reusable Agents Meet Generative UIs
Anmol Baranwal and Nathan TarbertMarch 12, 2026
Reusable Agents Meet Generative UIsOracle, Google, and CopilotKit have jointly released an integration that standardizes how AI agents are defined, how they communicate with frontends in real time, and how they describe the UI they require. The integration connects three distinct layers. Oracle's Open Agent Specification (Agent Spec) provides a framework-agnostic way to define agent logic, workflows, and tool usage once and run it across compatible runtimes. AG-UI handles the live interaction stream between the agent and the frontend, keeping tool progress, state updates, and user interactions synchronized while the agent is executing. A2UI, developed by Google, allows agents to describe the UI they need - forms, tables, multi-step flows - as structured JSONL, which CopilotKit then renders automatically inside the host application. Previously, each of these layers required custom implementation per project. This release establishes a shared contract across all three, meaning agent developers can define the agent once, expose a standardized interaction stream, and have the frontend render structured UI surfaces without writing custom wiring for each tool or workflow. The practical impact is reduced integration friction across the ecosystem - agent runtimes and frontend clients that implement these standards can interoperate without lock-in to a specific framework or vendor.
The Developer's Guide to Generative UI in 2026
Anmol Baranwal and Nathan TarbertJanuary 29, 2026
The Developer's Guide to Generative UI in 2026AI agents have become much better at reasoning and planning. The UI layer has mostly stayed the same, and it is holding back the experience. Most agent experiences still rely on chat, even when the task clearly needs forms, previews, controls, or step-by-step feedback. Generative UI is the idea that allows agents to influence the interface at runtime, so the UI can change as context changes. This is usually done through UI specs like A2UI, Open-JSON-UI, or MCP Apps. We'll break down Generative UI, the three practical patterns, and how CopilotKit supports them (using AG-UI protocol under the hood).
Bring MCP Apps into your OWN app with CopilotKit & AG-UI
Anmol Baranwal and Nathan TarbertJanuary 22, 2026
Bring MCP Apps into your OWN app with CopilotKit & AG-UIToday, we are excited to announce CopilotKit’s support for MCP Apps. Now, MCP servers can finally ship an interactive UI that works out of the box in real agent applications.
Are you ready?

Stay in the know

Subscribe to our blog and get updates on CopilotKit in your inbox.