New advertisers: 50% off your first month with code FIRSTMONTHSee slots
modelcontextprotocol avatar

Create Mcp App

Scaffold and wire interactive UI resources into MCP tools, covering SDK patterns, lifecycle, and host integration.

skills.sh installs
2.4K
GitHub stars
3.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the tool-plus-resource pairing, where _meta.ui.resourceUri links a tool to its bundled HTML UI resource
  • Includes starter templates for vanilla JS, React, Vue, Svelte, Preact, and Solid, each with vite-plugin-singlefile builds
  • Enforces handler registration before app.connect(), text content fallbacks for non-UI hosts, and explicit CSP configuration for all network requests
  • Designed for developers adding a UI to an existing MCP server or starting a new one with transport setup

Install

$ npx -y skills add modelcontextprotocol/ext-apps --skill create-mcp-app -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Create MCP App

Build interactive UIs that run inside MCP-enabled hosts like Claude Desktop. An MCP App combines an MCP tool with an HTML resource to display rich, interactive content.

Core Concept: Tool + Resource

Every MCP App requires two parts linked together:

  1. Tool - Called by the LLM/host, returns data
  2. Resource - Serves the bundled HTML UI that displays the data

The tool's _meta.ui.resourceUri references the resource's URI.

Host calls tool → Host renders resource UI → Server returns result → UI receives result.

Quick Start Decision Tree

Framework Selection

FrameworkSDK SupportBest For
ReactuseApp hook providedTeams familiar with React
Vanilla JSManual lifecycleSimple apps, no build complexity
Vue/Svelte/Preact/SolidManual lifecycleFramework preference

Project Context

Adding to existing MCP server:

  • Import registerAppTool, registerAppResource from SDK
  • Add tool registration with _meta.ui.resourceUri
  • Add resource registration serving bundled HTML

Details

Repository
github.com/modelcontextprotocol/ext-apps
Categories
Skill & Plugin Building, Frontend & UI Code

More from modelcontextprotocol/ext-apps

All 4

Similar to Create Mcp App

More Skill & Plugin Building