Learning resourcesReviewed · Model Context Protocol

Build an MCP App

Build an MCP App is a guide for developers adding interactive screens to AI chats, but those screens require a chat application that supports MCP Apps. It covers agent-assisted scaffolding and a manual TypeScript implementation using MCP tools, HTML resources, and a sandboxed interface.

Researched 23 Nov 2026

In short.

Build an MCP App is a guide for developers building interactive screens inside AI chats, but it requires a compatible chat application and a running server. Its server-time example connects an MCP tool to an HTML interface, then lets a button request updated results. The page provides configuration and code for a local prototype, plus development instructions for Claude and a basic test host. Package versions, licensing terms, exact costs, and production readiness are not established. Nothing was executed, so build success and runtime behavior remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://modelcontextprotocol.io/extensions/apps/build.md], including both setup routes, configuration and code examples, host instructions, Node.js prerequisite, paid-Claude-connector notice, CSP guidance, and active-development notice. Linked pages and repository files are excluded. Nothing was installed, built, served, or tested; runtime correctness, cross-platform compatibility, security, performance, and production readiness remain unverified.

The overview

Identity

Build an MCP App is a tutorial in the MCP documentation at [https://modelcontextprotocol.io/extensions/apps/build.md]. It teaches developers to combine callable MCP tools with resources that supply an interactive interface.

The guide offers two entry points: scaffolding with the create-mcp-app agent skill, or manually creating a TypeScript server and browser interface. Its main worked example displays the current server time.

Assessment

This is a useful starting point for developers who want to understand how an interface appears alongside an MCP tool result. It supplies project structure, dependencies, configuration, server code, UI code, and development-host instructions.

Its practical scope is a small prototype. The page does not demonstrate production deployment, authenticated access, sustained operation, or successful execution across different environments.

Users

The guide suits developers extending MCP servers with buttons, displays, or other browser-based interactions. Beginners can follow the file-by-file example, although familiarity with MCP tools and resources is recommended.

Experienced TypeScript developers can use the example to understand the connection between tool metadata, HTML resources, and host communication. The optional coding-agent route helps generate a starting project, but the resulting app still needs dependencies, a build, a server, and a compatible host.

Capabilities

The tutorial covers registering a tool with an associated interface, serving that interface as an HTML resource, displaying the initial tool result, and calling the server again when a user clicks a button.

It also identifies App APIs for logging, opening URLs, and updating the model's context with structured app data. Those additional capabilities are mentioned rather than demonstrated in the worked example.

Using it

Requirements

The stated prerequisite is Node.js 20 or higher. The manual route uses npm, TypeScript, HTML, Express, Vite, vite-plugin-singlefile, @modelcontextprotocol/sdk, and @modelcontextprotocol/ext-apps. Experience with the MCP TypeScript SDK is recommended.

Rendering requires a host that supports MCP Apps. The page documents Claude web, Claude Desktop, and the repository's basic-host development interface. Agent-assisted scaffolding additionally requires a coding agent with Skills support.

Mechanism

The server uses registerAppTool to attach _meta.ui.resourceUri to a tool. That URI identifies the interface resource. registerAppResource supplies the bundled HTML when the host requests it, and the host renders the interface in a sandboxed iframe.

The browser code creates an App instance and calls app.connect() to communicate with the host. app.ontoolresult receives tool results pushed by the host, while app.callServerTool() requests another server operation after user interaction. The example exposes its MCP endpoint through Streamable HTTP at /mcp.

Setup

For agent-assisted setup, the guide describes installing create-mcp-app through the Claude Code plugin marketplace, the Vercel Skills CLI, or a manual repository copy. The developer then asks the agent to create an app and follows the dependency installation, build, and serve steps.

For manual setup, create server.ts, mcp-app.html, src/mcp-app.ts, and the package, TypeScript, and Vite configuration files. Vite bundles the interface into dist/mcp-app.html, which the server reads and serves as an MCP resource.

The example server uses port 3001. The basic-host interface uses port 8080 and accepts a server list through SERVERS. The Claude route requires an internet-accessible endpoint; the guide illustrates exposing the local server with a cloudflared tunnel.

Example

The worked example registers get-time, a tool with no input fields that returns the server's current time as an ISO timestamp. Its associated resource is ui://get-time/mcp-app.html.

When a compatible host invokes the tool, the intended interface displays the returned timestamp. Clicking Get Server Time calls get-time again and updates the display. This illustrates the documented interaction pattern; no execution results establish that the supplied example builds or behaves as described.

Assessment & evidence

Limitations

A running MCP server alone is insufficient to display the interface: the host must support MCP Apps. Each UI-initiated tool call also requires a server round trip, and the guide explicitly advises designing for latency.

The page describes a deny-by-default content security policy for the iframe. External assets require suitable CSP configuration; bundling everything into one HTML file is the tutorial's chosen approach.

The sample enables CORS and shows no authentication or authorization implementation. It also provides no retry strategy or measured reliability evidence. The supplied package.json uses a shell-style INPUT assignment in its build script; compatibility with the illustrated Windows environment was not assessed.

Design tradeoffs

The example is small enough to expose the main architectural connection: a tool returns data, a resource supplies the interface, and the host connects them. Separating server and UI files makes those responsibilities visible.

Bundling the interface into one HTML file simplifies asset delivery for the tutorial. Applications needing separate assets or external services must address the CSP configuration described by the page. Agent scaffolding reduces manual setup work, while the manual route explains the generated components more directly; neither route has demonstrated reliability evidence here.

Alternatives

The guide's main alternatives are agent-assisted scaffolding versus manual implementation, and Claude versus basic-host for development. The documented basic-host route connects to localhost, while the Claude route uses an internet-accessible server.

Vite and single-file bundling are optional choices. The page allows other bundlers or unbundled assets with appropriate CSP configuration, but it does not compare particular alternatives or establish performance differences.

Evidence

The source is the complete documentation page at [https://modelcontextprotocol.io/extensions/apps/build.md], captured on 23 November 2026 at 08:18:31 UTC. It includes configuration, server and interface code, explanatory text, development instructions, and illustrated examples.

The page provides instructional examples, not reproducible test receipts or benchmarks. Linked repositories, API references, specifications, and connector documentation are outside the selected scope. Their contents and current behavior were not assessed.

Access & freshness

Costs

The page states that Claude custom connectors are available on paid Pro, Max, or Team plans. It provides no subscription prices, usage limits, or coding-agent charges.

The basic-host route offers another documented development option, but the page does not quantify its operating costs. Prices or fees for hosting, tunneling, packages, and agent-assisted scaffolding are not established, so total cost is unknown.

Rights

The selected page does not state a documentation license, a code-example license, or redistribution terms. It links to the ext-apps repository, but that repository's licensing contents are outside the selected page.

Permission to redistribute the captured documentation, package a copy, or reuse the examples commercially is not established by this evidence. The licenses of the SDK and other dependencies also remain unknown here.

Freshness

The page says MCP Apps is under active development. It supplies no publication date, last-updated date, or pinned dependency versions, so the capture date does not establish when individual instructions were last revised.

The 1.0.0 values in the sample identify the example server and interface, not an SDK release. Present compatibility of the unpinned packages, host support, and Claude plan conditions remains unverified beyond the captured statements.

Suggested next steps

Choose a compatible development host before building the interface. Follow either the skill-assisted or manual route, then check the initial tool result and the button-triggered update using the guide's server-time example.

Before extending the prototype, establish dependency versions, applicable licenses, and any host or service charges. Applications using external assets need the documented CSP configuration, and deployments beyond a local demonstration need access-control decisions.

For further implementation detail, the guide points to the API reference at [https://apps.extensions.modelcontextprotocol.io/api/] and source repository at [https://github.com/modelcontextprotocol/ext-apps]. Those linked materials were not assessed.

Evidence for this report

selected-page.txtselected · checked 2026-11-23