MCP Apps Playground
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Apps PlaygroundSort my favorite movies by rating"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Apps Playground
A demo MCP server showcasing interactive UI capabilities using the MCP Apps Extension (SEP-1865).
Features
π§ MCP Tools -
hello_world,list_sort,flame_graph, andfeature_flagstools with Zod schema validationπ± Apps Extension - HTML UI via
ui://resources withtext/html;profile=mcp-appπ¦ structuredContent - Data passed to UI via
ui/notifications/tool-input㪠Bidirectional - UIs can send messages back to chat via
ui/messageπ Dual Transport - stdio (default) and HTTP/SSE
Related MCP server: MCP Apps POC
Tools
list_sort β Interactive List Reordering
Before: Agent receives list data from an MCP tool β proposes a sorted order based on its analysis β user reads text output and requests adjustments β multiple back-and-forth messages to align with actual preferences.
With MCP Apps: Agent displays a drag-and-drop interface alongside its suggested order. User applies domain knowledge to reorder items visually, or clicks "Ask AI to Sort" for the agent's reasoningβtrue collaboration where both contribute.
π±οΈ Drag-and-drop reordering Β· π€ "Ask AI to Sort" Β· β©οΈ Reset Β· πΎ Save to chat
flame_graph β Performance Profiler Visualization
Before: Agent receives CPU profile data from an MCP tool β analyzes the JSON and identifies bottlenecks β user sees only the agent's text summary β no way to validate hypotheses or apply domain-specific context.
With MCP Apps: Agent renders an interactive flame graph and can annotate suspected hot paths. User explores the visualization with their own domain knowledgeβconfirming or rejecting the agent's hypotheses, drilling into areas the agent might have overlooked.
π Click-to-zoom hierarchy Β· π¬ Hover tooltips Β· π§ Breadcrumb nav Β· π Send frame to chat
feature_flags β Feature Flag Selector
Before: Agent fetches flag configuration from an MCP tool β summarizes which flags exist and their status β user cross-references with deployment context β asks agent to generate integration code separately.
With MCP Apps: Agent displays a searchable flag picker with live environment status. User selects flags based on their release priorities, switches between prod/staging/dev views, and generates SDK codeβagent provides data, user drives decisions.
π Environment tabs Β· π Search & filter Β· βοΈ Multi-select Β· π Generate SDK code
Quick Start
# Install dependencies
npm install
# Build
npm run build
# Run with stdio transport (for Claude Desktop, Cursor, VS Code)
npm run dev
# Or run with HTTP transport (for web-based clients)
npm run dev:http
# Test with MCP Inspector
npm run inspector # stdio
npm run inspector:http # HTTP (start server first)Project Structure
src/
βββ index.ts # Main server (stdio transport)
βββ http-server.ts # HTTP transport variant
βββ ui/
βββ hello-world.ts # Greeting UI template
βββ list-sort.ts # Interactive list sorting UI
βββ flame-graph.ts # Performance flame graph visualization
βββ feature-flags.ts # Feature flag selector UIMCP Configuration
VS Code
Use the included .vscode/mcp.json:
{
"servers": {
"mcp-apps-playground": {
"type": "stdio",
"command": "node",
"args": ["${workspaceFolder}/dist/index.js"]
}
}
}Claude Desktop / Cursor
{
"mcpServers": {
"mcp-apps-playground": {
"command": "node",
"args": ["/path/to/mcp-apps-playground/dist/index.js"]
}
}
}How It Works
1. UI Resource Declaration
UI resources are declared with ui:// scheme and text/html;profile=mcp-app MIME type:
server.resource(
"greeting-ui",
"ui://mcp-apps-playground/greeting",
{
description: "Interactive greeting UI panel",
mimeType: "text/html;profile=mcp-app",
},
async (uri) => ({
contents: [{
uri: uri.href,
mimeType: "text/html;profile=mcp-app",
text: HELLO_WORLD_UI(),
}],
})
);2. Tool with UI Annotation
Tools use _meta.ui.resourceUri to link to a UI resource. Data is passed via structuredContent:
server.registerTool(
"hello_world",
{
description: "Display a Hello World greeting",
inputSchema: {
name: z.string().describe("Name to greet"),
},
_meta: {
ui: {
resourceUri: "ui://mcp-apps-playground/greeting",
visibility: ["model", "app"],
},
},
},
async ({ name }) => ({
content: [{ type: "text", text: `Hello, ${name}!` }],
structuredContent: { name, greeting: `Hello, ${name}!` },
})
);3. UI Communication
UIs communicate with the MCP host via postMessage JSON-RPC:
// Initialize handshake (required)
const result = await sendRequest('ui/initialize', {
protocolVersion: '2025-06-18',
capabilities: {},
});
sendNotification('ui/notifications/initialized', {});
// Listen for tool data
window.addEventListener('message', (e) => {
if (e.data.method === 'ui/notifications/tool-input') {
const { arguments: args } = e.data.params;
// Update UI with args
}
});
// Send message to chat
await sendRequest('ui/message', {
content: [{ type: 'text', text: 'User selected: ...' }]
});Resources
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/digitarald/mcp-apps-playground'
If you have feedback or need assistance with the MCP directory API, please join our Discord server