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

  1. What Are Claude Apps (MCP Apps) and Why They Matter
  2. Host-Client-Server Architecture and ui:// Resources
  3. Bidirectional JSON-RPC Over postMessage and Display Modes
  4. Building an MCP App With @modelcontextprotocol/ext-apps
  5. Security Model: Sandboxed Iframes, CSP, and Origin Validation
  6. Full App View, Standalone Desktop Apps, and Ecosystem Capabilities
  7. Comparing Claude Apps, Claude Artifacts, and Standard MCP Tools
  8. Practical Questions When Adopting Claude Apps
  9. 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.ui object referencing a ui:// 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 type text/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.
flowchart TD U["User Prompt in Claude"] --> H["Claude Host Runtime (Web / Desktop)"] H -->|"1. tools/call"| S["MCP App Server"] S -->|"2. Result + _meta.ui.resourceUri"| H H -->|"3. Fetch ui:// Resource (text/html;profile=mcp-app)"| S H -->|"4. Mount Inside Sandboxed Iframe"| IF["Interactive App UI (Inline or Fullscreen)"] IF -->|"5. JSON-RPC postMessage (tools/call / ui/message)"| H H -->|"6. Forward Tool Call or Context"| S classDef gold fill:#000000,stroke:#fbbf24,stroke-width:2px,color:#f8fafc classDef cyan fill:#000000,stroke:#38bdf8,stroke-width:2px,color:#f8fafc classDef emerald fill:#000000,stroke:#34d399,stroke-width:2px,color:#f8fafc classDef purple fill:#000000,stroke:#c084fc,stroke-width:2px,color:#f8fafc class U,IF gold class H purple class S cyan

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-input and tool-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 (via app.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 inspect app.hostContext?.availableDisplayModes and toggle modes programmatically via app.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.

Server-Side Tool & UI Resource RegistrationTypeScript
import fs from "node:fs/promises";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import {
  registerAppTool,
  registerAppResource,
  RESOURCE_MIME_TYPE,
} from "@modelcontextprotocol/ext-apps/server";
import { z } from "zod";

const server = new McpServer({ name: "pipeline-monitor", version: "1.0.0" });

registerAppTool(
  server,
  "inspect_pipeline_metrics",
  {
    description: "Render an interactive latency and error dashboard for a service.",
    inputSchema: { service: z.enum(["checkout", "search", "billing"]) },
    _meta: {
      ui: {
        resourceUri: "ui://pipeline/dashboard.html",
      },
    },
  },
  async ({ service }) => {
    const metrics = await fetchServiceMetrics(service);
    return {
      content: [{ type: "text", text: JSON.stringify(metrics) }],
    };
  }
);

registerAppResource(
  server,
  "Pipeline Metrics Dashboard",
  "ui://pipeline/dashboard.html",
  { description: "Interactive latency and SLA visualizer" },
  async () => ({
    contents: [
      {
        uri: "ui://pipeline/dashboard.html",
        mimeType: RESOURCE_MIME_TYPE, // "text/html;profile=mcp-app"
        text: await fs.readFile("dist/dashboard.html", "utf-8"),
      },
    ],
  })
);
Client-Side Sandboxed View With Bidirectional Tool Calls & Fullscreen ToggleTypeScript
import { App } from "@modelcontextprotocol/ext-apps";

const app = new App({ name: "PipelineDashboard", version: "1.0.0" });

// Receive initial tool output pushed from the Claude host
app.ontoolresult = (result) => {
  const payload = JSON.parse(result.content[0].text);
  renderLatencyChart(payload);
};

// Trigger a direct backend refresh without looping back through the LLM
async function refreshMetrics(service: string) {
  const updated = await app.callServerTool({
    name: "inspect_pipeline_metrics",
    arguments: { service },
  });
  renderLatencyChart(JSON.parse(updated.content[0].text));
}

// Expand from inline chat widget to fullscreen workspace when supported
async function toggleFullscreen() {
  const current = app.hostContext?.displayMode;
  const target = current === "inline" ? "fullscreen" : "inline";
  if (app.hostContext?.availableDisplayModes?.includes(target)) {
    await app.requestDisplayMode({ mode: target });
  }
}

await app.connect();

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 PostMessageTransport verifies that incoming messages match the exact expected source window (window.parent or iframe.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.
graph TD UI["Guest App Action (Click / Submit / Mutation)"] --> PM["PostMessageTransport (Origin & Source Verification)"] PM --> CSP["Host Sandbox & CSP Boundary (No Parent DOM / Cookie Access)"] CSP --> POL{"Host Permission & Consent Policy"} POL -->|"Read-Only / Approved"| EXE["Execute via MCP Server or Delegated Plugin"] POL -->|"State-Changing / Write"| ASK["Prompt User for Explicit Approval"] ASK -->|"Approved"| EXE ASK -->|"Denied"| BLK["Block Action & Return Safe Error"] classDef gold fill:#000000,stroke:#fbbf24,stroke-width:2px,color:#f8fafc classDef cyan fill:#000000,stroke:#38bdf8,stroke-width:2px,color:#f8fafc classDef emerald fill:#000000,stroke:#34d399,stroke-width:2px,color:#f8fafc classDef rose fill:#000000,stroke:#f472b6,stroke-width:2px,color:#f8fafc class UI,EXE gold class PM,CSP,POL cyan class ASK emerald class BLK rose

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

  1. Model Context Protocol (MCP) & MCP Apps Specification - Official open protocol specification for ui:// resources, JSON-RPC over postMessage, and sandboxed interactive views.
  2. MCP Apps SDK (@modelcontextprotocol/ext-apps) - Official TypeScript server helpers (registerAppTool, registerAppResource) and client App bridge.
  3. Claude Plugins: Unifying Skills & Connectors - How Skills, Connectors, and MCP servers package into unified plugins.
  4. Claude MCP: Model Context Protocol & Custom Tool Servers - Core MCP transports, OAuth security hardening, and server architecture.
  5. Claude Artifacts Engineering Guide - Building interactive components and exporting standalone workflows.