mcp-ui is a software development kit designed to bring interactive user interface capabilities to applications built on the Model Context Protocol (MCP). It enables developers to create rich, dynamic UI components that can be delivered from an MCP server and rendered seamlessly by a compatible client. Instead of returning only text responses, tools can provide structured UI resources such as HTML or remote-rendered components, allowing more engaging and functional interactions. mcp-ui introduces a standardized approach where tools and their associated interfaces are linked through metadata, enabling clients to automatically discover and display the correct UI. It includes both client-side and server-side SDKs, making it possible to define UI elements on the backend and handle user interactions on the frontend. It supports multiple programming environments, including TypeScript, Python, and Ruby, broadening its accessibility for developers.
Features
- Server SDK for generating reusable UI resources linked to MCP tools
- Client SDK for rendering UI components and handling user interactions
- upport for multiple UI formats including HTML and remote DOM rendering
- Cross-language support with TypeScript, Python, and Ruby implementations
- Secure sandboxed rendering using iframe-based isolation
- Adapter system for compatibility across different MCP hosts and environments