MCP UI

v1.0.0Developer Toolsstable

基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Anthropic API,提供MCP服务器的所有工具能力。简洁现代的UI设计,支持跨平台部署。

aifrontendllmmcpui
Share:
4,835
Stars
0
Downloads
0
Weekly
0/5

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

Build intelligent chat applications with MCP
Integrate OpenAI and Anthropic APIs with UI
MCP-UI-Org

Maintainer

LicenseApache-2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-ui

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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/server
2

Install 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/client
3

Create 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',
});
4

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' } } }),
});
5

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);
6

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.

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.

Quick Config Preview

{ "mcpServers": { "mcp-ui": { "command": "npx", "args": ["-y", "mcp-ui"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides