convez.ai
MCP ServerDesenvolvimento WebIntermediário
modelcontextprotocol

MCP Apps

modelcontextprotocol/ext-apps

Construa UIs interativas para ferramentas MCP que rodam nativamente em clientes de IA

Ver no GitHub
Muito bomPluginScore · de 0 a 100

Framework para construir interfaces interativas (gráficos, formulários, dashboards) para ferramentas MCP que renderizam inline em Claude, ChatGPT e outros clientes compatíveis. Inclui SDK em TypeScript, Agent Skills para scaffolding automático e especificação padrão para aplicações visuais em contexto de conversas com IA.

Instalação

$npx convez-ai modelcontextprotocol/ext-apps

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
3,1 mil
Forks
438
Acompanhando
37
Saúde
87%
Último commit
há 1 semana
Versão
v2.1.0
Issues abertas
236
Contribuidores
39

Casos de uso

  • Criar dashboards e visualizações interativas dentro de chats com Claude
  • Desenvolver formulários e ferramentas visuais para agentes de IA
  • Migrar aplicações OpenAI App para o padrão MCP Apps

Veredito

Framework maduro e bem documentado do próprio Model Context Protocol para estender funcionalidades visuais de assistentes de IA. Essencial para quem quer ir além de respostas textuais e entregar experiências interativas em contextos de conversação com Claude e ChatGPT.

README

A tradução para o português deste README ainda está na fila.

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:

SkillWhat it doesTry it
create-mcp-appScaffolds a new MCP App with an interactive UI from scratch"Create an MCP App"
migrate-oai-appConverts an existing OpenAI App to use MCP Apps"Migrate from OpenAI Apps SDK"
add-app-to-serverAdds interactive UI to an existing MCP server's tools"Add UI to my MCP server"
convert-web-appTurns 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

[!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.

PackagePurposeDocs
@modelcontextprotocol/ext-appsBuild interactive Views (App class, PostMessageTransport)API Docs →
@modelcontextprotocol/ext-apps/reactReact hooks for Views (useApp, useHostStyles, etc.)API Docs →
@modelcontextprotocol/ext-apps/app-bridgeEmbed and communicate with Views in your chat clientAPI Docs →
@modelcontextprotocol/ext-apps/serverRegister tools and resources on your MCP serverAPI 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.

MapThree.jsShaderToy
MapThree.jsShaderToy
Sheet MusicWiki ExplorerCohort Heatmap
Sheet MusicWiki ExplorerCohort Heatmap
Scenario ModelerBudget AllocatorCustomer Segmentation
Scenario ModelerBudget AllocatorCustomer Segmentation
System MonitorTranscriptVideo Resource
System MonitorTranscriptVideo Resource
PDF ServerQR CodeSay Demo
PDF ServerQR Code (Python)Say Demo

Starter Templates

BasicThe same app built with different frameworks — pick your favorite!React · Vue · Svelte · Preact · Solid · Vanilla JS

Running the Examples

With basic-host

To run all examples locally using basic-host (the reference host implementation included in this repo):

git clone https://github.com/modelcontextprotocol/ext-apps.git
cd ext-apps
npm install
npm start

Then open http://localhost:8080/.

With MCP Clients

Every Node.js example is published as @modelcontextprotocol/server-<name>. To add one to an MCP client that supports stdio (Claude Desktop, VS Code, etc.), use this pattern:

{
  "mcpServers": {
    "<name>": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-<name>", "--stdio"]
    }
  }
}

For example, to add the map server: @modelcontextprotocol/server-map. The Python examples (qr-server, say-server) use uv run instead — see their READMEs for details.

Local Development

To test local modifications with an MCP client, clone the repo, install, then point your client at a local build:

{
  "mcpServers": {
    "<name>": {
      "command": "bash",
      "args": [
        "-c",
        "cd ~/code/ext-apps/examples/<name>-server && npm run build >&2 && node dist/index.js --stdio"
      ]
    }
  }
}

Specification

VersionStatusLink
2026-01-26Stablespecification/2026-01-26/apps.mdx
draftDevelopmentspecification/draft/apps.mdx

Resources

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines on how to get started, submit pull requests, and report issues.

Ver o original no GitHub

Bom para

Relacionados