Discover and explore top open-source AI tools and projects—updated daily.
MCP-UI-OrgUI SDK for Model Context Protocol
Top 12.1% on SourcePulse
mcp-ui is a TypeScript SDK designed to bring rich, interactive web-based user interfaces to the Model Context Protocol (MCP). It enables MCP servers to deliver dynamic UI resources, such as HTML content or external URLs, which are then rendered by an MCP client. This allows for enhanced AI interactions by embedding interactive elements directly within the AI's context.
How It Works
The SDK consists of two packages: @mcp-ui/server for generating HtmlResourceBlock payloads on the server, and @mcp-ui/client for rendering these blocks using a React component (<HtmlResource />) in the client. The core concept is the HtmlResourceBlock, which specifies a uri, mimeType (either text/html or text/uri-list), and content via text or blob. The client component renders this resource, typically within an iframe, and handles UI events by sending them back to the MCP host via the onUiAction callback. This approach aims to provide a secure and flexible way to integrate UIs without local code execution.
Quick Start & Requirements
npm install @mcp-ui/server @mcp-ui/client (or pnpm, yarn)Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is described as experimental and a community playground, indicating potential for rapid changes and instability. While Web Components and Remote-DOM support are in progress, they are not yet fully implemented.
2 weeks ago
1 week
yue