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.

已验证STDIO仅桌面开发者工具媒体与设计

概览

AI 生成的概览

把 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 密钥或环境变量。
安装前请注意
服务仅绑定 127.0.0.1,且同源 iframe 并非隔离边界,因此只应运行可信的 MUP HTML 文件。在仪表盘中注册工作区会授予对工作目录的访问权限。实时 channel 模式需以开发 channel 标志启动 Claude。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mup,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MUP — Model UI Protocol

[GitHub Stars] [License: MIT]

繁體中文

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

[Slides Demo]

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

[PDF to Presentation Demo]

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

[Sound Pad Demo]

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.

Traditional ChatWith MUP
User interactionType text commandsClick buttons, drag sliders, see live visuals
Tool resultsHidden from user, only the LLM sees themVisible and interactive for both sides
Who can use itPower users who know the right promptsAnyone

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)

bash
npm install -g mup-mcp-server

Or run directly:

bash
npx mup-mcp-server --mups-dir ./my-mups

Also available on the MCP Server Registry.

From source

bash
git clone https://github.com/Ricky610329/mup.gitcd mup/mup-mcp-servernpm install && npm run build

Development

Requires Node.js 22.13 or newer. From the repository root:

bash
npm run setup  # install and build both servers from their lockfilesnpm test       # build, test both servers, and check MUP manifests/scripts
PathPurpose
mup-mcp-server/Dashboard host, workspace, pipelines, scheduler
mup-mini-mcp-server/Single-panel host, hot reload, channel events
mups/Maintained panels and demos
spec/Protocol documents, schema, examples
scripts/Repository validation
archive/Historical implementations and examples

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)

bash
claude mcp add --transport stdio --scope user mup -- npx mup-mcp-server

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:

bash
claude --dangerously-load-development-channels server:mup

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:

json
{  "mcpServers": {    "mup": {      "command": "npx",      "args": ["mup-mcp-server"]    }  }}

Quick Example

html
<script type="application/mup-manifest">{  "name": "Counter",  "description": "A counter. User clicks +/-, LLM can set or read the value.",  "functions": [    {      "name": "setCount",      "description": "Set the counter to a specific value",      "inputSchema": {        "type": "object",        "properties": { "value": { "type": "number" } },        "required": ["value"]      }    },    {      "name": "getCount",      "description": "Get the current counter value",      "inputSchema": { "type": "object", "properties": {} }    }  ]}</script>

Drop this into a MUP-compatible host, and it works.

Architecture

┌──────────────────────────────────────────┐│             MUP (.html file)             ││        manifest + UI + functions         │└──────────────────┬───────────────────────┘                   │ loaded by                   ▼            ┌──────────────┐            │  MCP Server  │            │ (Claude Code │            │  / Desktop)  │            └──────┬───────┘                   │ WebSocket                   ▼      ┌─────────────────────────────┐      │        Browser Panel        │      │  (MUP grid + Chat widget   │      │   + workspace manager)     │      └─────────────────────────────┘

Star History

[Star History Chart]

License

MIT

来源:README.md,提交 107f9d5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分