
Mup
io.github.Ricky610329由 GitHub 账号 Ricky610329 发布v0.1.1更新于 Oct 27, 2026
MCP server that turns HTML MUP panels into interactive UI tools for LLMs.
概览
把 HTML 版 MUP 面板托管在本地浏览器仪表盘中的 MCP 服务器,让助手调用面板函数并看到用户操作。
- 可以做什么
- 把一组 MUP .html 面板加载到本地浏览器仪表盘,并使用内置 Chat 组件
- 以工具形式调用面板函数并读取结果,助手与用户共享同一份状态
- 使用 Slides、PDF Reader、Markdown、Notes、Diagram、Pixel Art、Timer、Progress、Sound Pad、Chord Pad、Voice、Star Map 等内置面板
- 通过 channel 通知实时接收用户交互,未开启时改用轮询
- 适用场景
- 适合希望助手在对话中搭建并操作可视化、可点击界面的场景,例如演示文稿、图表、笔记、PDF 阅读或小型交互演示,而不只是文字回复。
- 运行要求
- 通过 npm 包 mup-mcp-server 以 stdio 在本地运行(npx 或全局安装),需要 Node.js 22.13 或更高版本;浏览器会在 localhost:3200 打开面板界面。未声明账号、API 密钥或环境变量。
安装
README
MUP — Model UI Protocol
Bring interactive UI into LLM chat — so anyone can experience agentic AI, not just developers.
Current version: 0.2.11 | Protocol: mup/2026-03-17
Demos
Slides — AI builds a presentation live
Claude creates a full slide deck with charts, tables, and themes — all through function calls.
PDF to Presentation — AI reads a paper and presents it
Claude reads the AlexNet paper from a PDF, takes Markdown notes, captures figures with human-AI collaboration, builds a 19-slide presentation with charts and tables, then presents it slide by slide in the new in-panel reading mode — all narrated live.
Sound Pad — AI composes a track from scratch
16 browser-synthesized instruments, zero samples. Claude composes an electro swing track layer by layer, with event-driven narration synced to each section transition.
What is MUP?
A MUP is an interactive UI component that lives inside an LLM chat interface.
It bundles a visual interface with callable functions. The user operates it by clicking buttons; the LLM operates it through function calls. Both sides see each other's actions in real time.
The simplest MUP is a single .html file — no build step, no framework, no SDK.
Why?
Agentic AI is powerful, but today it's trapped behind text commands and developer tools. Most people never get to experience it.
MUP changes this. It puts clickable, visual UI right inside the chat — so anyone can use agentic capabilities without writing a single prompt.
Key Ideas
- Shared functions. A function can be called by the LLM (as a tool) or triggered by the user (via UI). Both sides operate on the same state through the same code.
- LLM as orchestrator. MUPs don't talk to each other. The LLM reads outputs and decides what to do next.
- Just HTML. Write a manifest, register your functions, done. Ship a single file.
Available MUPs
- Chat — Built-in, always available
- Slides — Presentation editor with charts, tables, themes, reading mode, and export (demo)
- PDF Reader — PDF viewer with page text extraction and region selection/capture
- Markdown — Markdown workspace with annotations and document management
- Sound Pad — 16-pad synthesizer with sequencer, per-track volume, and event system (demo)
- Chord Pad — Music theory keyboard with 5 synth voices, chord progressions, and melody playback
- Diagram — Auto-layouted node-and-edge diagrams (flowcharts, mind maps, architectures) with multiple layout algorithms
- Star Map — Location-based interactive star map with constellations, ecliptic, and Milky Way
- Voice — Speech synthesis and recognition (Jarvis mode)
- Notes — Sticky-note workspace with groups, styles, and export
- Pixel Art — Pixel canvas with shapes, ASCII patterns, fills, and PNG export
- Timer — Countdown timer / stopwatch with event-driven completion
- Progress — Task progress tracking
- Chess — Board and mascot demo with basic movement rules (check/checkmate and en passant are not implemented)
- More examples in
archive/examples/(games, productivity, etc.)
Focused Development
For iteratively building a single MUP with Claude (edit .html → Chrome hot reloads → user interacts → channel pushes back to Claude → repeat), see mup-mini-mcp-server — a scaffolding-style sibling that loads exactly one MUP and provides only the plumbing: hot reload, WebSocket bridge, and channel push. No catalog, no grid, no extras.
Docs
- Spec — Protocol definition: manifest, functions, lifecycle, error handling
- Design Philosophy — Why MUP is designed this way, and what we intentionally left out
- Examples — Example MUPs with walkthroughs
Install
npm (recommended)
Or run directly:
Also available on the MCP Server Registry.
From source
Development
Requires Node.js 22.13 or newer. From the repository root:
Both packages remain independently installable. npm test inside either package rebuilds it first. CI tests both packages on Node.js 22. See the review report for the fixes and validation scope.
Both hosts bind to 127.0.0.1 and accept the local UI's origin. Run trusted MUPs: the same-origin iframe setup supports browser storage and media APIs, and is not an isolation boundary for untrusted HTML. The dashboard's workspace registration grants access to the working directory.
Getting Started
With Claude Code (recommended)
Restart Claude Code. A browser window opens at http://localhost:3200. Use the MUPs panel to load a folder of MUP .html files, or start with the built-in Chat widget.
Real-time channel mode
MUPs can push interactions directly into Claude's conversation via channel notifications. To enable:
This lets MUPs deliver user actions to Claude in real time. Without this flag, all MUP features still work — interactions are just delivered via polling instead of push.
With Claude Desktop
Add to your claude_desktop_config.json:
Quick Example
Drop this into a MUP-compatible host, and it works.
Architecture
Star History
License
来源:README.md,提交 107f9d5
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分