AI Explainers

A2UI + MCP Apps: Combining the Best of Declarative and Custom Agentic UIs

This AI explainer breaks down how MCP connects agents to private tools, data sources and production workflows.

Model Context Protocol explainer illustration for agentic AI workflows
Featured image for A2UI + MCP Apps: Combining the Best of Declarative and Custom Agentic UIs on Drop Agentic.

Building agentic UIs forces a recurring tradeoff: you can have a highly custom, branded experience inside an iframe, or you can have a native, declarative UI that renders cleanly inside the host agent environment — but getting both at once has been awkward. A Google engineering post published in June 2026 outlines three architectural patterns that use Model Context Protocol (MCP) Apps alongside Agent-to-User Interface (A2UI) to resolve exactly that tension.

What A2UI and MCP Apps Each Solve

A2UI is a specification that lets an AI agent return structured, declarative UI components — cards, forms, lists — directly to a host interface. The host renders them natively, so the result feels integrated rather than bolted on. The limitation is expressiveness: declarative components cover common patterns well but can’t replicate a fully custom web application.

MCP Apps take the opposite approach. They run as web applications served through an MCP server, displayed inside an iframe within the agent host. That gives developers full control over layout, interactivity, and branding. The cost is isolation: iframe content sits outside the host’s native rendering pipeline, which can feel disconnected and adds complexity around communication and state.

Neither approach is universally better. The patterns described by Google’s developer team treat them as complementary rather than competing.

The Three Architectural Patterns

Pattern 1: Native A2UI Served Directly from an MCP Server

The first pattern keeps everything inside the MCP server. Instead of returning an iframe-hosted app, the server responds with A2UI declarative components. The agent host renders those components natively — no iframe involved. This works well when the interaction is structured and predictable: displaying search results, showing a summary card, presenting a form for user input. Developers get the simplicity of MCP’s tool-and-resource model while the end user sees a polished, native-feeling UI.

The practical benefit here is reduced surface area. There’s no separate web app to host, no cross-origin communication to manage, and the rendered output inherits the host’s design system automatically.

Pattern 2: MCP App with A2UI Fallback

The second pattern starts with a full MCP App — a custom web application in an iframe — but defines an A2UI fallback for hosts that don’t support iframe rendering. When the host can display the iframe, users get the rich custom experience. When it can’t, the agent falls back to declarative A2UI components that approximate the same interaction.

This is a progressive enhancement model. Teams building tools that need to run across multiple agent hosts — some capable, some constrained — can write the custom app once and define a declarative fallback without maintaining two entirely separate codebaths. The fallback doesn’t have to be feature-complete; it just needs to cover the core interaction.

Pattern 3: Hybrid Embedding — A2UI Components Inside an MCP App

The third pattern inverts the relationship. The MCP App iframe remains the primary surface, but it can request A2UI components from the host and embed them inside the custom application. This lets a custom app pull in native host components — a date picker, a file selector, an authentication prompt — without reimplementing them from scratch.

For developers, this is the most compositional of the three patterns. It treats the host’s declarative component library as a dependency the custom app can consume, rather than something it has to replicate or ignore. The result is a custom app that still feels coherent with the surrounding agent environment.

A Compact View of the Three Patterns

Pattern Primary surface Best for Main tradeoff
Native A2UI via MCP Declarative host rendering Structured, predictable interactions Limited expressiveness
MCP App + A2UI fallback Custom iframe, fallback to declarative Multi-host deployment Fallback requires design effort
Hybrid: A2UI inside MCP App Custom iframe consuming host components Rich apps needing native UI elements Depends on host component availability

Why the Combination Matters for MCP Builders

MCP has grown quickly as a standard for connecting AI agents to external tools and data sources. As more agent hosts adopt it, the question of how those tools present information to users becomes more pressing. A tool that returns raw text works, but a tool that returns a well-structured card, a form, or an interactive component is meaningfully more useful in practice.

These patterns give MCP server authors a clearer decision framework. If the interaction is simple and the host supports A2UI, Pattern 1 is the lowest-friction path. If the tool needs a custom UI but must run on varied hosts, Pattern 2 provides resilience. If the custom app is complex but should still feel native, Pattern 3 offers a way to borrow from the host’s component system rather than rebuild it.

None of these patterns require abandoning existing MCP server implementations. They layer UI strategy on top of the protocol rather than replacing its core mechanics.

What to Verify Before Building

The patterns described here are based on Google’s published developer guidance from June 2026. A few things are worth checking before committing to an implementation:

  • Host support: A2UI rendering depends on the agent host implementing the specification. Not all hosts currently do. Verify which hosts in your target deployment environment support A2UI components before relying on Pattern 1 or the fallback in Pattern 2.
  • Component availability for Pattern 3: The hybrid pattern assumes the host exposes components that the MCP App can request. The range of available components will vary by host, and current documentation should be consulted for specifics.
  • Specification stability: Both A2UI and MCP Apps are active areas of development. Teams building production tooling should track specification updates and test against the hosts they intend to support.

The underlying idea — that declarative and custom rendering don’t have to be mutually exclusive — is straightforward and practically useful. The three patterns give developers a structured way to think about where each approach fits, and how to combine them when neither alone is sufficient.

Sources