# Repository Briefing: xintu1314/screenbench
> Source: https://repoforai.com/repo/xintu1314/screenbench (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/xintu1314/screenbench
- **Official Docs / Website**: https://screenbench.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: HTML
- **License**: MIT
- **Engineering Health**: A (82/100 · Maintenance 35/35 · Adoption 16/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI, MCP, Self-Hosted
- **Momentum**: 204 ★ total (+29 24h / +204 7d) · 37 forks
- **Topics**: `claude-code`, `codex`, `cursor`, `design-system`, `mcp`, `mcp-server`, `ui-design`, `vibe-coding`
- **When to Use**: Best for: Teams using coding agents to prototype multi-screen mobile HTML flows with shared design tokens, side-by-side review, and element-level feedback. Skip if: Your source of truth is an editable design document, your deliverable must be native UI rather than HTML, or your existing design system and preview workflow already cover these needs.

## Overview
```text
### Architecture & Core Mechanics
ScreenBench uses a local HTML workspace to connect a coding agent with a browser review canvas. `screenbench mcp --dir ./design` exposes tools over stdio; `screenbench serve --dir ./design` runs the visual workbench on port 4310. The agent can load design tokens and reference screens through `get_design_context`, then write HTML into the same workspace the workbench displays. Reviewers can select rendered DOM elements, leaving feedback the agent can retrieve without interpreting screenshots.

The Node.js package exposes `screenbench` and `appbench` CLI entry points. Its runtime dependencies are `@modelcontextprotocol/sdk`, `@modelcontextprotocol/ext-apps`, `qrcode`, and `zod`. The tree includes `src/`, `workbench/`, `styles/`, `previews-free/`, and `dist-mcp-app/`, and the manifest defines a `build-mcp-app` script. The MCP tooling is the documented integration surface; the presence of an MCP app build does not establish that every supported client can embed the same UI.

### Key Capabilities & Differentiators
The Community edition bundles 24 design systems with four to six related screens per style, plus `tokens.css` and `guide.md`. Pro adds 17 commercial systems, bringing the total to 41. The motion catalog grows from eight free interactions to 36 with Pro. The workbench combines side-by-side rendering, pan and zoom, and project switching with a LAN QR preview so reviewers can check the same flow on a phone.

The MCP surface covers style selection, screen reads and writes, deletion, screenshots, project switching and cloud sync, project rules, and reusable components. A reviewer presses `C` to annotate a DOM element; the agent retrieves notes with `get_feedback` and closes them with `resolve_feedback`. There is a tool-count discrepancy: the advertised total is 18, while the tool table names 19. Before standardizing a workflow around a specific tool, check what the installed server actually exposes.

### Trade-offs & Limitations
Compared with a plain browser preview and shared CSS tokens, ScreenBench adds side-by-side flow review and an agent-readable handoff for DOM annotations. It is a better fit for iterating on generated HTML than for replacing a design-authoring tool: its working artifact is the HTML screen, not an editable design document. The bundled systems provide a concrete starting point, but teams with an established component library still need to map the references to their own production components.

The MIT Community edition includes the local workbench and MCP tooling. Pro is a one-time purchase for additional commercial systems and motion assets; the cloud project allowance rises from one to 20. The local workflow avoids a dependency on cloud sync, but client configuration, write and delete permissions in the design workspace, and LAN access still need attention. Use a dedicated design directory, and verify what is reachable before enabling phone previews on a shared network.

### Hardware & Deployment Guide
Install with `npm i -g screenbench` on Node.js 20 or newer. In the target project, `screenbench setup --dir ./design` registers the MCP server with a supported client; the CLI lists Claude Code, Cursor, Codex, Windsurf, and Antigravity. For manual setup, use `screenbench mcp --dir ./design` as the client command: Codex uses `~/.codex/config.toml`, while the other listed clients use JSON configuration. Start `screenbench serve --dir ./design` separately and open `http://localhost:4310/#project`.

Keep both processes pointed at the same directory, using an absolute path when the client's working directory is uncertain. The local design loop uses Node.js and browser rendering rather than bundled model inference, so size it around the number and complexity of rendered screens, not model VRAM. Cloud sync is separate from self-hosted preview, and `screenbench activate <PRO-KEY>` supports offline Pro activation. There is no GitHub release listed; pin a tested npm version for team rollouts.
```

## Key Capabilities
```text
- Agent integration: The stdio MCP server reads design context and manages HTML screens in the workspace selected by `--dir`.
- Reference systems: Community includes 24 systems, each with four to six related screens, `tokens.css`, and `guide.md`; Pro adds 17 commercial systems.
- Visual review: The local workbench on port 4310 displays screens side by side with pan, zoom, and project switching.
- Feedback loop: Press `C` to annotate a DOM element, then have the agent retrieve and resolve notes with `get_feedback` and `resolve_feedback`.
- Device testing: The QR code opens the preview on a phone over the LAN, independently of cloud project sync.
- Motion library: Community includes eight interactive motions; Pro expands the catalog to 36 and adds AI rebuild prompts.
```

## Quick Start / Clone
```bash
npm i -g screenbench
```
