MCPcopy Index your code
hub / github.com/modelcontextprotocol/ext-apps

github.com/modelcontextprotocol/ext-apps @v1.7.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.7.4 ↗ · + Follow
1,173 symbols 3,234 edges 180 files 383 documented · 33% 25 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://github.com/modelcontextprotocol/ext-apps/raw/v1.7.4/media/mcp.svg" alt="MCP Apps" width="128">

MCP Apps

Build interactive UIs for MCP tools — charts, forms, dashboards — that render inline in Claude, ChatGPT and any other compliant chat client.





<a href="#why-mcp-apps">Why</a>
·
<a href="https://apps.extensions.modelcontextprotocol.io/api/documents/Quickstart.html">Quickstart</a>
·
<a href="https://apps.extensions.modelcontextprotocol.io/api/">API Docs</a>
·
<a href="https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx">Spec</a>
·
<a href="https://github.com/modelcontextprotocol/ext-apps/raw/v1.7.4/CONTRIBUTING.md">Contributing</a>

CI License: Apache 2.0 npm version npm downloads GitHub stars API Documentation

MCP Apps demo

Excalidraw built with MCP Apps, running in Claude

Table of Contents

Build with Agent Skills

The fastest way to build an MCP App is to let your AI coding agent do it. This repo ships four Agent Skills — install them once, then just ask:

Skill What it does Try it
create-mcp-app Scaffolds a new MCP App with an interactive UI from scratch "Create an MCP App"
migrate-oai-app Converts an existing OpenAI App to use MCP Apps "Migrate from OpenAI Apps SDK"
add-app-to-server Adds interactive UI to an existing MCP server's tools "Add UI to my MCP server"
convert-web-app Turns an existing web app into a hybrid web + MCP App "Add MCP App support to my web app"

Install the Skills

Claude Code — install via the plugin marketplace:

/plugin marketplace add modelcontextprotocol/ext-apps
/plugin install mcp-apps@modelcontextprotocol-ext-apps

Other agents — any AI coding agent that supports Agent Skills can use these skills. See the agent skills guide for manual installation instructions.

Once installed, verify by asking your agent "What skills do you have?" — you should see create-mcp-app, migrate-oai-app, add-app-to-server, and convert-web-app in the list. Then just ask it to create or migrate an app and it will guide you through the rest.

Supported Clients

ChatGPT Claude VS Code Goose Postman MCPJam

[!NOTE] MCP Apps is an extension to the core MCP specification. Host support varies — see the clients page for the full list.

Why MCP Apps?

MCP tools return text and structured data. That works for many cases, but not when you need an interactive UI, like a chart, form, design canvas or video player.

MCP Apps provide a standardized way to deliver interactive UIs from MCP servers. Your UI renders inline in the conversation, in context, in any compliant host.

How It Works

MCP Apps extend the Model Context Protocol by letting tools declare UI resources:

  1. Tool definition — Your tool declares a ui:// resource containing its HTML interface
  2. Tool call — The LLM calls the tool on your server
  3. Host renders — The host fetches the resource and displays it in a sandboxed iframe
  4. Bidirectional communication — The host passes tool data to the UI via notifications, and the UI can call other tools through the host

Getting Started

npm install -S @modelcontextprotocol/ext-apps

New here? Start with the Quickstart Guide to build your first MCP App.

Using the SDK

The SDK serves three roles: app developers building interactive Views, host developers embedding those Views, and MCP server authors registering tools with UI metadata.

Package Purpose Docs
@modelcontextprotocol/ext-apps Build interactive Views (App class, PostMessageTransport) API Docs →
@modelcontextprotocol/ext-apps/react React hooks for Views (useApp, useHostStyles, etc.) API Docs →
@modelcontextprotocol/ext-apps/app-bridge Embed and communicate with Views in your chat client API Docs →
@modelcontextprotocol/ext-apps/server Register tools and resources on your MCP server API Docs →

There's no supported host implementation in this repo (beyond the examples/basic-host example).

The MCP-UI client SDK offers a fully-featured MCP Apps framework used by a few hosts. Clients may choose to use it or roll their own implementation.

Examples

The examples/ directory contains demo apps showcasing real-world use cases.

Map Three.js ShaderToy
Map Three.js ShaderToy
Sheet Music Wiki Explorer Cohort Heatmap
Sheet Music Wiki Explorer Cohort Heatmap
Scenario Modeler Budget Allocator Customer Segmentation
Scenario Modeler Budget Allocator Customer Segmentation
System Monitor Transcript Video Resource
System Monitor Transcript Video Resource
PDF Server QR Code Say Demo
PDF Server QR Code (Python) Say Demo

Starter Templates

Basic The same app built with different frameworks — pick your favorite!

React · Vue · Svelte · Preact · [Solid](https://github.com/modelcontextprotocol/

Extension points exported contracts — how you extend this code

EventSlot (Interface)
* Per-event state: a singular `on*` handler (replace semantics) plus a * listener array (`addEventListener` semantics),
src/events.ts
LabeledCodeFence (Interface)
* Represents a labeled code fence found in a source file.
scripts/sync-snippets.ts
PersistedCameraState (Interface)
* Persisted camera state for localStorage
examples/map-server/src/mcp-app.ts
ViewFileWatch (Interface)
* Active fs.watch per view. Only created for local files when interact is * enabled (stdio). Watcher is re-established
examples/pdf-server/server.ts
StandardSchemaWithJSON (Interface)
(no doc)
src/standard-schema.ts
McpUiOpenLinkRequest (Interface)
(no doc)
src/spec.types.ts
UseAppOptions (Interface)
(no doc)
src/react/useApp.tsx
ToolConfig (Interface)
(no doc)
src/server/index.ts

Core symbols most depended-on inside this repo

connect
called by 254
src/app.ts
close
called by 171
tests/helpers/range-counting-server.ts
addEventListener
called by 170
src/app.ts
registerTool
called by 85
src/app.ts
callTool
called by 65
src/app-bridge.ts
getHostContext
called by 50
src/app.ts
remove
called by 45
src/app.ts
registerAppTool
called by 45
src/server/index.ts

Shape

Function 877
Interface 149
Method 121
Class 26

Languages

TypeScript98%
Python2%

Modules by API surface

examples/pdf-server/src/mcp-app.ts124 symbols
examples/pdf-server/server.ts60 symbols
src/app.ts48 symbols
src/app-bridge.ts47 symbols
examples/pdf-server/src/pdf-annotations.ts39 symbols
src/spec.types.ts34 symbols
examples/basic-host/src/index.tsx34 symbols
examples/pdf-server/src/annotation-panel.ts33 symbols
src/app.examples.ts32 symbols
examples/budget-allocator-server/src/mcp-app.ts32 symbols
src/app-bridge.examples.ts28 symbols
examples/say-server/server.py27 symbols

For agents

$ claude mcp add ext-apps \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page