Skills

Build MCP App

Should be used when the user wants to build an "MCP app", add "interactive UI" or...

Install

npx skills add anthropics/claude-plugins-official --skill build-mcp-app -g -a claude-code -y
Category
Design
Updated
3d ago
License
Apache-2.0
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

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.

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.* keyWhereEffect
resourceUritoolWhich ui:// resource the host renders for this tool's results.
visibility: ["app"]toolHide a widget-only helper tool (e.g. geometry/image fetcher called via callServerTool) from Claude's tool list.
prefersBorder: falseresourceDrop the host's outer card border (mobile).
csp.{connectDomains, resourceDomains, baseUriDomains}resourceDeclare 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 tool annotations and 3, 5 PNG screenshots; see references/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:

Read the whole SKILL.md on GitHub

More in Design