What are MCP Apps?

Build agents
HoneyHive Engineering

MCP Apps is an official MCP extension that lets a tool return an interactive HTML interface, rendered in a sandboxed iframe inside the chat.

MCP Apps is an official extension to the Model Context Protocol that lets a tool return an interactive HTML interface, such as a chart, form or dashboard, which the host renders inside the conversation. The UI is a ui:// resource the server declares ahead of time, linked to a tool by _meta.ui.resourceUri. It runs in a sandboxed iframe and talks to the host over JSON-RPC via postMessage. The MCP maintainers announced it on 26 January 2026 as the first official MCP extension, and the stable spec is dated 2026-01-26.

How MCP Apps work

Three pieces make up the pattern. A tool declares a UI in its metadata. The server serves the UI as a resource. The host renders it and passes data in. The build guide shows the server side with the official SDK:

const resourceUri = "ui://get-time/mcp-app.html";

registerAppTool(server, "get-time", {
  title: "Get Time",
  description: "Returns the current server time.",
  inputSchema: {},
  _meta: { ui: { resourceUri } },
}, async () => ({ content: [{ type: "text", text: new Date().toISOString() }] }));

The overview describes the sequence when a model calls such a tool:

  1. The host can preload the ui:// resource named in _meta.ui.resourceUri before the tool runs.
  2. The host fetches the resource, an HTML page usually bundled with its JavaScript and CSS.
  3. A web host typically renders it in a sandboxed iframe, applying any csp and permissions the resource’s _meta.ui declares.
  4. The app and host exchange JSON-RPC messages. Some, like tools/call, are shared with core MCP. Most are new, with a ui/ prefix.

On the UI side, the build guide uses the SDK’s App class: app.connect() opens the channel, app.ontoolresult receives the result the host pushes, and app.callServerTool() lets the user’s clicks call tools again. The overview calls App “a convenience wrapper, not a requirement”, so any framework, or none, works. The build guide warns that each callServerTool call is a round trip to the server.

The spec predeclares UI resources instead of embedding HTML in tool results (the approach of its predecessor MCP-UI). Its stated reasons are that hosts can prefetch templates, that presentation is separated from data so it caches, and that hosts can review a template before any tool runs.

What a host and a server have to agree on

MCP Apps is optional. A host advertises support in its capabilities under the extension identifier io.modelcontextprotocol/ui, with the list of MIME types it renders (today text/html;profile=mcp-app). The spec then says servers SHOULD check that capability before registering UI-enabled tools, and SHOULD offer text-only behavior otherwise. Tools MUST return a meaningful content array even when a UI is available. The spec’s example registers one get_weather tool with a dashboard for capable hosts and another without UI metadata for the rest.

Two more decisions fall to the server author:

Setting Values Effect
_meta.ui.visibility ["model", "app"] (default), ["app"], ["model"] Whether the agent can see and call the tool, whether the app can, or both. An ["app"] tool is hidden from the agent’s tool list and cannot be called from another server.
_meta.ui.csp and permissions on the resource Domains for connect, resources, frames and base URI; camera, microphone, geolocation What the sandbox may load or use. Undeclared domains are blocked.

App-only tools suit things like a “refresh” or “next page” button that the model has no reason to call. Keeping them out of the agent’s list also keeps them out of its context (see context engineering).

Security model

The spec requires all View content to render in sandboxed iframes, with communication only through postMessage under the host’s control. For web hosts the stable spec adds a sandbox proxy: the host and proxy MUST have different origins, and the proxy loads the HTML with a CSP built from the resource metadata. Defaults are frame-src 'none', object-src 'none' and base-uri 'self'. Hosts MUST block connections to undeclared domains.

The spec’s list of host behaviors is a useful checklist for anyone reviewing an MCP App: validate every incoming message, log View-initiated calls for review, review the HTML for obvious malicious patterns, and warn users when an app needs external domains. It names social engineering and resource consumption as remaining risks. Hosts may also require user approval before forwarding an app’s request to the server.

The draft spec, still changing as of November 2026, loosens one detail: it no longer mandates a particular framing architecture (single or double sandboxed iframe) and instead lists generic requirements any architecture must meet. It also lets _meta.ui appear on resources/list entries as well as on resources/read content, with the content item winning. For the wider picture of server risks, see MCP security.

Which hosts support it

The overview lists Claude, Claude Desktop, VS Code GitHub Copilot, Microsoft 365 Copilot, Goose, Postman, MCPJam and Archestra.AI as of November 2026, and the ext-apps README adds ChatGPT. Both say support varies by client, and the MCP site keeps a client matrix. Because rendering differs, test an app in each host you target, which is why the text fallback matters.

The SDK package is @modelcontextprotocol/ext-apps. As of November 2026 its latest tag on npm points to 2.0.4, and a 2.1.0 version was published the same day, 27 October 2026, without that tag. The README says the wire protocol is unchanged between 1.x and 2.x, so a 2.x View works in a 1.x host and the reverse.

When to use an MCP App

The overview names five cases where a UI beats text: exploring complex data, configuring something with many options, viewing rich media, real-time monitoring and multi-step workflows such as approving items one by one. It is equally direct about the opposite case: if the use case does not need the UI inside the conversation, a regular web app may be simpler.

An MCP App does not replace the tool. The model still calls a tool and still gets a result, and the UI is how the user sees and acts on it. Compared with calling an HTTP API yourself (MCP vs API), the difference is that the host, not your code, decides what the app may reach.

Tracing MCP App tool calls

When an app’s button triggers callServerTool, the host may forward it to the MCP server as a tools/call (spec), and the spec asks hosts to log View-initiated calls. On the server, an app-initiated call is still a tool call, so the server-side tracing in HoneyHive’s MCP tracing guide applies to it. To follow a full session, including the model’s own tool calls, see agent observability.

FAQ

Are MCP Apps part of the core MCP specification?

No. MCP Apps is an optional extension with the identifier io.modelcontextprotocol/ui. The spec says it must be explicitly negotiated between client and server, so a host that does not advertise it gets ordinary tool results.

How is an MCP App different from a web app with a link?

The overview lists four differences: the UI stays in the conversation, it can call tools on the MCP server and receive pushed results, it can ask the host to use the user's connected capabilities, and it runs in a host-controlled sandbox. It also says a regular web app may be simpler when you do not need those.

Can an MCP App call any tool?

Only tools on its own server, and only those whose _meta.ui.visibility includes "app". The spec says hosts MUST reject app calls to tools that omit it.

What happens in a host that does not support MCP Apps?

The spec says servers SHOULD provide text-only behavior and that tools MUST return a meaningful content array even when a UI is available, so the tool still works as plain text. See MCP for how tools return results.

Share