mcp-apps-interactive-ui
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-apps-interactive-uibuild me a pizza"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-apps-interactive-ui
A runnable example of building interactive in-chat UI with MCP Apps, with docs on the parts that aren't obvious from the spec.
MCP Apps (the io.modelcontextprotocol/ui extension, SEP-1865) lets an MCP server hand the host a sandboxed HTML widget instead of plain text. The model calls one tool and the user gets a real interface: option pickers, live totals, buttons that talk back to the model. This repo is a minimal working example of that pattern.

Static screenshot, not a live embed. To run the real thing: build the repo and open dist/builder.html in a browser, or connect the server to a host (see Quickstart).
The example app is a Pizza Builder. Pick size, crust, and toppings, watch the price update live, and hit Place order to hand the choice back to the model. The domain is intentionally simple so the MCP Apps mechanics stay in focus.
Requirements
Node.js 20.11 or newer (the code uses import.meta.dirname, and @modelcontextprotocol/ext-apps requires Node 20+).
Related MCP server: ChatGPT App with OAuth2 + MCP + Privy
What it demonstrates
In about 350 lines of commented source:
Capability | How | Where |
Render an interactive widget from a tool call |
| |
Keep the model's context small | launcher returns a | |
Let the user pick options without spending tokens |
| |
Hand a result back to the model |
| |
Show external images |
| |
Download a file |
| |
Go fullscreen |
| |
Match the host's theme and fonts |
| |
See what the host actually granted you |
|
Plus 10 gotchas: URI caching, the silent updateModelContext, the caution banner, the session-locked tool catalog, and more.
Quickstart
git clone https://github.com/iamneilroberts/mcp-apps-interactive-ui
cd mcp-apps-interactive-ui
npm install
npm run buildSee the widget immediately, no host required. The build produces a single self-contained dist/builder.html that falls back to mock data when opened directly:
open dist/builder.html # macOS
xdg-open dist/builder.html # LinuxRun it as a real MCP server:
npm start # Streamable HTTP at http://127.0.0.1:3001/mcp
npm run start:stdio # stdio, for Claude Desktop / MCP InspectorConnect it to a host:
Claude Desktop: add to your MCP config, then ask Claude "build me a pizza":
{ "mcpServers": { "pizza": { "command": "node", "args": ["/abs/path/to/mcp-apps-interactive-ui/dist/index.js", "--stdio"] } } }MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js --stdio
How it fits together
flowchart LR
M["Model<br/>(Claude)"]
H["Host<br/>(claude.ai / Desktop)"]
W["Widget<br/>(sandboxed iframe)"]
S[("Your MCP server<br/>build_pizza · pizza_state · pizza_pick")]
M -- "tool call" --> H
H -- "result + UI resource" --> M
H <-- "postMessage / JSON-RPC" --> W
W -- "app.callServerTool() (proxied by host)" --> S
S -- "tool result" --> HThe model launches the widget once. After that the widget talks to your server directly through the host (app.callServerTool), so picking options costs zero model tokens. The widget hands control back to the model only when the user is done. Full walkthrough in docs/01.
Repo layout
src/
server.ts the MCP server: 1 launcher tool + 2 app-only tools + 1 UI resource
data.ts the toy domain (menu, orders, pricing)
index.ts transport wiring (Streamable HTTP + stdio)
widget/
widget.ts the App: render, pick, place-order, download, fullscreen, theme
widget.html the shell (CSS + JS get inlined here at build time)
styles.css
esbuild.mjs bundles the widget into one self-contained HTML the server serves
docs/ 01-08, the deep dives
media/ screenshotsDocs
Architecture & lifecycle: the handshake, the bridge, the two-part registration.
Declaring UI resources:
ui://, the MIME type,_meta.ui.resourceUri, tool visibility.The host API: every
app.*method, and the capabilities-vs-context distinction.CSP & imagery: why your image is blocked and how to allow the domains you need.
Two-way comms:
updateModelContextvssendMessage, the caution banner, no progress tokens.The token economy: the ref-and-fetch pattern that keeps a large payload out of the model's context.
Probing host capabilities: how to find out what a host grants, with real Claude Desktop results.
Gotchas: 10 things to know before shipping.
The capability tables in docs/07 come from running a probe inside a live host. Claude Desktop results are confirmed; some claude.ai web cells are marked pending where they hadn't been captured in-host. Hosts change, so re-probe before relying on a specific cell.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iamneilroberts/mcp-apps-interactive-ui'
If you have feedback or need assistance with the MCP directory API, please join our Discord server