Traditional AI tool calls were built for models to read, not humans to operate - returning static walls of raw text or JSON blobs that force users to jump across browser tabs to filter charts, rearrange project timelines, or edit documents. Claude Apps - powered by the open MCP Apps specification - close that gap by allowing Model Context Protocol servers to render live, bidirectional interactive user interfaces directly inside your conversation thread, split-screen workspace, or standalone desktop window.
Table of Contents
- What Are Claude Apps (MCP Apps) and Why They Matter
- Host-Client-Server Architecture and
ui://Resources - Bidirectional JSON-RPC Over
postMessageand Display Modes - Building an MCP App With
@modelcontextprotocol/ext-apps - Security Model: Sandboxed Iframes, CSP, and Origin Validation
- Full App View, Standalone Desktop Apps, and Ecosystem Capabilities
- Comparing Claude Apps, Claude Artifacts, and Standard MCP Tools
- Practical Questions When Adopting Claude Apps
- Authoritative References
What Are Claude Apps (MCP Apps) and Why They Matter
Prior to MCP Apps, the three core primitives of the Model Context Protocol - tools, resources, and prompts - optimized strictly for machine-to-model data exchange. Whenever a user asked Claude to inspect funnel metrics, review a design file, or reorganize a sprint board, the tool returned serialized JSON that Claude summarized into static Markdown. Any real follow-up action required leaving the chat and opening external tabs.
Claude Apps implement the official MCP Apps extension, an open cross-client standard adopted across Claude, Claude Desktop, VS Code, Goose, and Postman. Instead of proprietary per-platform UI widgets, a single MCP server can declare interactive HTML, CSS, and JavaScript views that render natively wherever the protocol is supported:
- Zero Tab-Switching: Interactive analytics dashboards from Amplitude or Hex, task timelines in Asana, architecture diagrams in Excalidraw, and design previews in Figma or Canva render directly alongside the prompt that generated them.
- Human-in-the-Loop Visual Control: Users manipulate filters, drag sprint items, inspect multi-column tables, or complete structured configuration wizards directly in the UI instead of typing verbose prose corrections.
- Context Preservation: Every click, query, and visual state change stays anchored inside one unified conversation thread rather than fragmenting across separate browser windows.
- Write Once, Render Across Hosts: Engineering teams build one MCP App server using the standard protocol and deploy it across Claude web, Claude Desktop, and compatible IDE clients without rewriting frontend adapters.
Host-Client-Server Architecture and ui:// Resources
MCP Apps build directly on the standard MCP Host-Client-Server topology by attaching UI metadata to tool declarations and serving frontend bundles over a dedicated ui:// URI scheme:
- Tool Metadata Declaration (
_meta.ui.resourceUri): When an MCP server registers a tool, it includes a_meta.uiobject referencing aui://resource URI (for example,ui://analytics/dashboard.html). - Bundled UI Resource (
text/html;profile=mcp-app): The MCP server serves the interactive frontend asset under the specialized MIME typetext/html;profile=mcp-app, typically bundled as a self-contained HTML/JS payload. - Host Interception & Mounting: When Claude invokes the tool, the host application (Claude web or Claude Desktop) inspects
_meta.ui.resourceUri, fetches the UI resource from the server, and mounts it inside a locked-down sandboxed iframe inline in the chat stream or in an expanded workspace panel. - Fallback Compatibility: Because every tool still returns standard MCP text or structured content alongside its UI reference, text-only hosts and automated pipelines continue to function seamlessly even when visual rendering is unavailable.
End-to-end MCP Apps execution lifecycle connecting the Claude host, MCP server, and sandboxed UI iframe.
Bidirectional JSON-RPC Over postMessage and Display Modes
Because the rendered UI runs inside an isolated iframe with zero direct DOM access to Claude, all host-to-guest and guest-to-host interactions travel as structured JSON-RPC 2.0 messages over the browser's postMessage API. The official @modelcontextprotocol/ext-apps SDK abstracts this bridge into clean lifecycle callbacks and async methods.
Host-to-Guest Notifications (Claude to App UI)
ui/notifications/tool-inputandtool-input-partial: Streams the initial or partial tool arguments into the iframe so the interface can show progressive loading skeletons or pre-populate filters immediately.ui/notifications/tool-result: Delivers the completed MCP tool execution payload so the frontend renders live charts, records, or status cards without polling.ui/notifications/host-context-changed: Pushes real-time host environment updates - including dark/light theme changes, user locale, viewport dimensions, and available display modes - so the embedded UI adapts natively to Claude's workspace.
Guest-to-Host Requests (App UI to Claude & Server)
tools/call(viaapp.callServerTool()): Lets the embedded UI invoke secondary MCP server tools directly (such as paginating a table, refreshing live metrics, or saving a record) without wasting an LLM round-trip.ui/message: Injects a structured user follow-up message back into the active Claude conversation so the model can reason over the user's latest UI selection.ui/open-link: Requests that the host safely open an external reference URL after applying host-level navigation checks.
Layout Presentation Modes (displayMode)
MCP Apps adapt their footprint dynamically based on task complexity and host capabilities:
inline: The default presentation mode, embedding compact widgets, KPI summaries, or interactive forms directly inside the conversational turn.fullscreen: An expanded workspace view taking over the primary canvas for dense interfaces such as SQL explorers, diagram canvases, or multi-panel project boards. Views can inspectapp.hostContext?.availableDisplayModesand toggle modes programmatically viaapp.requestDisplayMode().
Building an MCP App With @modelcontextprotocol/ext-apps
Developing a production Claude App requires two clean layers: a server-side registration binding a tool to a ui:// HTML bundle, and a lightweight client-side bridge running inside the sandboxed view.
Security Model: Sandboxed Iframes, CSP, and Origin Validation
Rendering HTML and JavaScript served by third-party MCP servers inside an authenticated AI workspace requires defense-in-depth. The MCP Apps security architecture enforces five strict boundaries between the guest UI and the Claude host:
- Locked-Down Iframe Sandboxing: Hosts mount every UI resource inside a strictly sandboxed
<iframe>that blocks parent DOM traversal, prevents unauthorized top-level navigation, and isolates session cookies and local storage from the host application. - Origin & Channel Verification: The SDK's
PostMessageTransportverifies that incoming messages match the exact expected source window (window.parentoriframe.contentWindow), blocking spoofed cross-frame messages. - Declarative Content Security Policy (
_meta.ui.csp): Servers declare explicit allowlists for any external scripts, fonts, or API origins required by the view so hosts can enforce strict CSP headers and prevent silent data exfiltration. - Host Capability Delegation: Instead of asking every mini-app to request broad OAuth credentials for email, calendar, or messaging APIs, an MCP App delegates high-level outcomes back to Claude, which routes them through the user's already-approved Claude Plugins.
- Explicit User Consent Gates: Destructive mutations, external write operations, or state-changing actions initiated inside an embedded UI must still clear the host's explicit approval prompts before executing.
Defense-in-depth isolation and consent enforcement between embedded MCP App views and the Claude host.
Full App View, Standalone Desktop Apps, and Ecosystem Capabilities
Beyond inline charts and forms, Anthropic expanded Claude Apps into a complete workspace and desktop workflow layer combining interactive SaaS connectors, protocol extensions, and 1-click native app packaging:
Full App View & Interactive SaaS Workspaces
Leading enterprise platforms - including Notion, Canva, Box, Asana, Amplitude, Hex, Excalidraw, Figma, Confluence, and Slack - support interactive views right beside your Claude conversation. In Full App View, your authenticated SaaS workspace opens split-screen or full-canvas next to Claude. Rather than pasting excerpts back and forth, Claude can directly read the active view, compare Box file versions side-by-side, restructure Notion pages, update Asana tasks, or iterate on Canva layouts with your approval.
Install as App: Standalone macOS & Windows Desktop Apps
Interactive trackers, calculators, dashboards, and internal tools built as Claude Artifacts no longer have to remain trapped inside browser chat history. With the Install as app capability on macOS and Windows:
- Dedicated Window & System Icon: Package an interactive Claude tool into a standalone desktop window with its own dock or taskbar icon in a single click.
- Granular OS Permissions: Grant explicit per-app permissions as needed - from desktop notifications and menu-bar or system-tray integration to local file access or script execution.
- Live Artifact Sync: Each installed desktop app remains linked to its source Claude artifact, automatically pulling updates whenever you refine the workflow in chat.
Skills Over MCP, Background Tasks, and Elicitation
Claude Apps pair cleanly with Claude Plugins and modern MCP protocol capabilities:
- Skills Over MCP: Connected apps can ship domain playbooks alongside their UI components and tools so Claude follows platform-specific schemas and workflows automatically.
- Asynchronous Background Tasks: Long-running analytics queries or batch operations execute asynchronously in the background while you continue collaborating in chat.
- Server Elicitation: When a server needs missing parameters or high-stakes confirmation mid-workflow, it can pause execution and render a focused elicitation prompt before continuing.
Comparing Claude Apps, Claude Artifacts, and Standard MCP Tools
Choose the right building block based on whether your workflow needs live authenticated backend integration, ad-hoc visual generation, or pure headless automation:
| Dimension | Standard MCP Tools | Claude Artifacts | Claude Apps (MCP Apps) |
|---|---|---|---|
| Primary Output | Plain text or JSON consumed by Claude | Model-generated HTML, React, SVG, or documents | Server-supplied interactive ui:// HTML/JS views |
| Live Data Flow | Model-triggered request/response only | Self-contained client state (no direct server bridge) | Bidirectional JSON-RPC (callServerTool + host notifications) |
| Auth & SaaS Access | Server-managed OAuth / API tokens | Sandboxed without external SaaS sessions | Authenticated SaaS views & host capability delegation |
| Best Use Case | Headless pipelines, CLI agents, read-only lookups | Rapid prototypes, calculators, standalone desktop mini-apps | Live dashboards, SaaS workspaces, multi-step visual approvals |
Practical Questions When Adopting Claude Apps
Do MCP Apps break older text-only MCP clients? No. Because UI views are declared inside _meta.ui metadata alongside standard MCP tool outputs, hosts that do not implement the MCP Apps extension simply ignore the metadata and consume the standard text or JSON payload cleanly.
Can a UI button inside a Claude App call our backend without triggering another LLM turn? Yes. Using app.callServerTool() from @modelcontextprotocol/ext-apps, your embedded view can paginate data, filter records, or refresh metrics directly through the host-to-MCP-server channel with zero LLM latency or token cost.
How should teams distribute internal Claude Apps across departments? Package your MCP App server, tool schemas, and accompanying operating playbooks as a versioned Claude Plugin so teammates can install it once while administrators retain centralized OAuth and permission governance.
Authoritative References
- Model Context Protocol (MCP) & MCP Apps Specification - Official open protocol specification for
ui://resources, JSON-RPC overpostMessage, and sandboxed interactive views. - MCP Apps SDK (
@modelcontextprotocol/ext-apps) - Official TypeScript server helpers (registerAppTool,registerAppResource) and clientAppbridge. - Claude Plugins: Unifying Skills & Connectors - How Skills, Connectors, and MCP servers package into unified plugins.
- Claude MCP: Model Context Protocol & Custom Tool Servers - Core MCP transports, OAuth security hardening, and server architecture.
- Claude Artifacts Engineering Guide - Building interactive components and exporting standalone workflows.