modelcontextprotocol avatar

Add App To Server

When you have an existing MCP server with working tools and want to add interactive UIs without breaking text-only clients, this walks you through the entire process. It starts with analyzing which tools actually benefit from visualization (maps, charts, tables) versus those that are fine as plain text, then guides you through adding the MCP Apps SDK, setting up Vite with single-file bundling, and converting tools to app-enabled versions while keeping the original text fallback intact. The strength here is the decision framework and the emphasis on mixed servers where some tools get UIs and others stay plain, which is the realistic scenario when retrofitting an existing codebase rather than building from scratch.

skills.sh installs
1.2K
GitHub stars
3.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add modelcontextprotocol/ext-apps --skill add-app-to-server --agent claude-code

Installs into .claude/skills of the current project.

Files

Add UI to MCP Server

Enrich an existing MCP server's tools with interactive UIs using the MCP Apps SDK (@modelcontextprotocol/ext-apps).

How It Works

Existing tools get paired with HTML resources that render inline in the host's conversation. The tool continues to work for text-only clients — UI is an enhancement, not a replacement. Each tool that benefits from UI gets linked to a resource via _meta.ui.resourceUri, and the host renders that resource in a sandboxed iframe when the tool is called.

Getting Reference Code

Clone the SDK repository for working examples and API documentation:

git clone --branch "v$(npm view @modelcontextprotocol/ext-apps version)" --depth 1 https://github.com/modelcontextprotocol/ext-apps.git /tmp/mcp-ext-apps

API Reference (Source Files)

Read JSDoc documentation directly from /tmp/mcp-ext-apps/src/:

Sponsors

Details

Repository
github.com/modelcontextprotocol/ext-apps
Categories
Backend & APIs, AI & Agent Building
First seen
May 16, 2026

More from modelcontextprotocol/ext-apps

All 4
1erikote04 avatarswift-api-design-guidelines-skillerikote04/swift-api-design-guidelines-agent-skillWrite, review, or improve Swift APIs using Swift API Design Guidelines for naming, argument labels, documentation comments, terminology, and general conventions1.2Kskills.sh installs
2yoanbernabeu avatarsupabase-audit-rlsyoanbernabeu/supabase-pentest-skillsTest Row Level Security (RLS) policies for common bypass vulnerabilities and misconfigurations.1.2Kskills.sh installs
3ruvnet avatarworker-benchmarksruvnet/rufloRun comprehensive worker system benchmarks and performance analysis1.1Kskills.sh installs
4ruvnet avatarworker-integrationruvnet/rufloWorker-Agent integration for intelligent task dispatch and performance tracking1.1Kskills.sh installs
5ruvnet avataragent-worker-specialistruvnet/rufloAgent skill for worker-specialist - invoke with $agent-worker-specialist1.1Kskills.sh installs
6patternsdev avatarreact-server-componentspatternsdev/skillsTeaches React Server Components for zero-bundle server rendering. Use when components only need server-side data access and don't require client-side interactiv1Kskills.sh installs