MCP UI
基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Anthropic API,提供MCP服务器的所有工具能力。简洁现代的UI设计,支持跨平台部署。
What is MCP UI?
MCP UI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 基于mcp(model context protocol)的智能聊天应用,支持web和桌面环境。集成openai/anthropic api,提供mcp服务器的所有工具能力。简洁现代的ui设计,支持跨平台部署。
基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Anthropic API,提供MCP服务器的所有工具能力。简洁现代的UI设计,支持跨平台部署。
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Ant
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-uiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP UI
MCP-UI is a multi-language SDK that implements the MCP Apps standard, allowing developers to embed rich, interactive web-based user interfaces directly inside AI tool responses. It bridges the gap between backend MCP tool servers and end-user experience by letting you deliver inline HTML, iframe-embedded pages, or remote DOM UIs alongside tool results. Teams building AI-powered products use MCP-UI to create polished, interactive widgets that render natively in any MCP Apps-compliant host like Claude Desktop.
Prerequisites
- Node.js 18+ (for TypeScript/JavaScript usage) or Python 3.9+ (for Python usage)
- An MCP server project already set up (e.g. using the @modelcontextprotocol/sdk)
- An MCP Apps-compliant client such as Claude Desktop
- npm, pnpm, or yarn for package installation
Install the MCP-UI server package
Add the MCP-UI server library to your existing MCP server project. The package provides helpers for creating UI resources that can be returned from your tool handlers.
npm install @mcp-ui/serverInstall the MCP-UI client package (optional, for host apps)
If you are building an MCP host or client application that needs to render tool UIs, also install the client rendering package.
npm install @mcp-ui/clientCreate a UI resource in your tool handler
Use createUIResource to generate an MCP-UI resource object. Set the uri using the ui:// scheme, specify a mimeType of text/html;profile=mcp-app, and provide content as rawHtml, externalUrl, or remoteDom.
import { createUIResource } from '@mcp-ui/server';
const widgetUI = await createUIResource({
uri: 'ui://my-server/widget',
content: { type: 'rawHtml', htmlString: '<h1>Hello from MCP-UI</h1>' },
encoding: 'text',
});Register your tool with UI metadata
Use registerAppTool to wire up a tool to its UI resource. The resourceUri in the tool's _meta links the tool result to the correct UI resource that the host will render.
import { registerAppTool } from '@mcp-ui/server';
registerAppTool(server, {
name: 'show_widget',
description: 'Renders a widget UI',
inputSchema: { type: 'object', properties: {} },
handler: async () => ({ _meta: { ui: { resourceUri: 'ui://my-server/widget' } } }),
});Register a resource handler to serve the UI
Use registerAppResource so the host can fetch the UI content when rendering a tool result. This handler is called by the MCP client whenever the linked resourceUri is requested.
import { registerAppResource } from '@mcp-ui/server';
registerAppResource(server, 'ui://my-server/widget', async () => widgetUI);Render UI on the client side
In an MCP host application built with React, use the AppRenderer component from @mcp-ui/client to automatically render tool UIs returned from the server.
import { AppRenderer } from '@mcp-ui/client';
<AppRenderer toolResult={result} client={mcpClient} />MCP UI Examples
Client configuration
MCP-UI is an SDK for building MCP servers, not a standalone server binary. You configure your custom MCP server (which uses the MCP-UI library) in your Claude Desktop config like any other Node-based server.
{
"mcpServers": {
"my-ui-server": {
"command": "node",
"args": ["/path/to/your/mcp-ui-server/dist/index.js"]
}
}
}Prompts to try
Once your MCP-UI-powered server is running and connected, test its tools through your AI client.
- "Show me the widget dashboard"
- "Display the interactive form for submitting feedback"
- "Render the data visualization for last week's metrics"Troubleshooting MCP UI
The UI resource renders as plain text instead of an interactive widget
Ensure the mimeType is set to exactly 'text/html;profile=mcp-app'. Standard 'text/html' will not trigger MCP Apps rendering in compliant hosts.
Host does not call the resource handler when a tool result is returned
Verify that the resourceUri in the tool result's _meta.ui field exactly matches the URI registered with registerAppResource, including the ui:// scheme prefix.
TypeScript compilation errors after installing @mcp-ui/server
Ensure your tsconfig.json has moduleResolution set to 'node16' or 'bundler', and that you are using TypeScript 5+. The package ships ESM-first types.
Frequently Asked Questions about MCP UI
What is MCP UI?
MCP UI is a Model Context Protocol (MCP) server that 基于mcp(model context protocol)的智能聊天应用,支持web和桌面环境。集成openai/anthropic api,提供mcp服务器的所有工具能力。简洁现代的ui设计,支持跨平台部署。 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP UI?
Follow the installation instructions on the MCP UI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP UI?
MCP UI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP UI free to use?
Yes, MCP UI is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
MCP UI Alternatives — Similar Developer Tools Servers
Looking for alternatives to MCP UI? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP UI in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP UI?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.