build-mcp-app
What it does
It guides your agent to add interactive UI components to an MCP server, so its tools can show forms, pickers, or dashboards inside a chat. It is for developers building MCP servers who want richer, interactive results.
When to use it
- βWhen you want an MCP server to show a form or picker inside the chat.
- βWhen you want a tool to display a dashboard or confirmation dialog inline.
- βWhen you already have an MCP server and want to add interactive widgets.
Skill link
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/mcp-server-dev/skills/build-mcp-app/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you add a form widget to my MCP server so users can fill in details inside the chat?β
5 new skills a week. 1 minute to read.
How it works
The agent builds on a standard MCP server and adds UI resources that the chat host displays in a sandboxed frame. The widgets use the same tool and protocol layer as the rest of the server.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Build an MCP App (Interactive UI Widgets)
An MCP app is a standard MCP server that also serves UI resources β interactive components rendered inline in the chat surface. Build once, runs in Claude and ChatGPT and any other host that implements the apps surface.
The UI layer is additive. Under the hood it's still tools, resources, and the same wire protocol. If you haven't built a plain MCP server before, the build-mcp-server skill covers the base layer. This skill adds widgets on top.
Testing in Claude: Add the server as a custom connector in claude.ai (via a Cloudflare tunnel for local dev) β this exercises the real iframe sandbox and
hostContext. See https://claude.com/docs/connectors/building/testing.
Claude host specifics
_meta.ui.* key |
Where | Effect |
|---|---|---|
resourceUri |
tool | Which ui:// resource the host renders for this tool's results. |
visibility: ["app"] |
tool | Hide a widget-only helper tool (e.g. geometry/image fetcher called via callServerTool) from Claude's tool list. |
prefersBorder: false |
resource | Drop the host's outer card border (mobile). |
csp.{connectDomains, resourceDomains, baseUriDomains} |
resource | Declare external origins; default is block-all. frameDomains is currently restricted in Claude. |
hostContext.safeAreaInsets: {top, right, bottom, left}(px) β honor these for notches and the composer overlay.- Directory submission requires OAuth or authless (
none) β static bearer is private-deploy only and blocks listing β plus toolannotationsand 3β5 PNG screenshots; seereferences/directory-checklist.md.
When a widget beats plain text
Don't add UI for its own sake β most tools are fine returning text or JSON. Add a widget when one of these is true:
| Signal | Widget type |
|---|---|
| Tool needs structured input Claude can't reliably infer | Form |
| User must pick from a list Claude can't rank (files, contacts, records) | Picker / table |
| Destructive or billable action needs explicit confirmation | Confirm dialog |
| Output is spatial or visual (charts, maps, diffs, previews) | Display widget |
| Long-running job the user wants to watch | Progress / live status |
If none apply, skip the widget. Text is faster to build and faster for the user.
Widgets vs Elicitation β route correctly
Before building a widget, check if elicitation covers it. Elicitation is spec-native, zero UI code, works in any compliant host.
| Need | Elicitation | Widget |
|---|---|---|
| Confirm yes/no | β | overkill |
| Pick from short enum | β | overkill |
| Fill a flat form (name, email, date) | β | overkill |
| Pick from a large/searchable list | β (no scroll/search) | β |
| Visual preview before choosing | β | β |
| Chart / map / diff view | β | β |
| Live-updating progress | β | β |
If elicitation covers it, use it. See ../build-mcp-server/references/elicitation.md.
Architecture: two deployment shapes
Remote MCP app (most common)
Hosted streamable-HTTP server. Widget templates are served as resources; tool results reference them. The host fetches the resource, renders it in an iframe sandbox, and brokers messages between the widget and Claude.
ββββββββββββ tools/call ββββββββββββββ
β Claude ββββββββββββββ> β MCP server β
β host β<ββ result βββββ (remote) β
β β + widget ref β β
β β β β
β β resources/readβ β
β ββββββββββββββ> β widget β
β ββββββββ β<ββ template βββ HTML/JS β
β βiframeβ β ββββββββββββββ
β βwidgetβ β
β ββββββββ β
ββββββββββββ
MCPB-packaged MCP app (local + UI)
Same widget mechanism, but the server runs locally inside an MCPB bundle. Use this when the widget needs to drive a local application β e.g., a file picker that browses the actual local disk, a dialog that controls a desktop app.
For MCPB packaging mechanics, defer to the build-mcpb skill. Everything below applies to both shapes.
How widgets attach to tools
A widget-enabled tool has two separate registrations:
- The tool declares a UI resource via
_meta.ui.resourceUri. Its handler returns plain text/JSON β NOT the HTML. - The resource is registered separately and serves the HTML.
When Claude calls the tool, the host sees _meta.ui.resourceUri, fetches that resource, renders it in an iframe, and pipes the tool's return value into the iframe via
FAQ
Do I need a basic MCP server first?
Yes. The skill adds widgets on top of an MCP server, and a separate server skill covers that base layer.
Does it work outside Claude?
The skill says the app can run in Claude and in other hosts that support the apps surface.
How do I test it?
The skill suggests adding the server as a custom connector in claude.ai, using a tunnel for local development.
Details
Original description by the author
This skill should be used when the user wants to build an "MCP app", add "interactive UI" or "widgets" to an MCP server, "render components in chat", build "MCP UI resources", make a tool that shows a "form", "picker", "dashboard" or "confirmation dialog" inline in the conversation, or mentions "apps SDK" in the context of MCP. Use AFTER the build-mcp-server skill has settled the deployment model, or when the user already knows they want UI widgets.
Popularity
- GitHub stars
- 46k
- Ranking position
- #6340
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
access
46kLets you manage who can message your assistant through the Discord channel, including pairing approvals and allowlists.
configure
46kSets up the Discord channel for your assistant by saving the bot token and checking who can reach it.
access
46kLets you manage who can text your assistant through the iMessage channel, including approvals and allowlists.
configure
46kChecks your iMessage channel setup, including Full Disk Access, and explains who can reach your assistant.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.