Skip to main content
Glama
ScreenBench

ScreenBench

by xintu1314
README.md
<div align="center">

<img src="https://screenbench.dev/site/logo.svg" width="76" height="76" alt="ScreenBench Logo" />

# ScreenBench

**Multi-Screen UI Design Systems & Local MCP Visual Workbench for AI Coding Agents**

Stop getting generic purple-gradient AI templates. Give **Claude Code**, **Cursor**, **Codex**, and **Antigravity** real multi-screen design tokens, reference flows, spring micro-motions, and click-to-annotate DOM feedback.

[![Website](https://img.shields.io/badge/Website-screenbench.dev-111113?style=for-the-badge&logoColor=white)](https://screenbench.dev)
[![Live Studio](https://img.shields.io/badge/Live_Studio-38_Styles_%26_36_Motions-E4C441?style=for-the-badge&labelColor=111113)](https://screenbench.dev/studio/)
[![npm version](https://img.shields.io/npm/v/screenbench?style=for-the-badge&color=2563EB&label=npm)](https://www.npmjs.com/package/screenbench)
[![License: MIT](https://img.shields.io/badge/License-MIT-10B981?style=for-the-badge)](./LICENSE)

[**๐ŸŒ Official Website (screenbench.dev)**](https://screenbench.dev) ยท [**โœจ Try Online Studio**](https://screenbench.dev/studio/) ยท [**๐Ÿ‡จ๐Ÿ‡ณ ็ฎ€ไฝ“ไธญๆ–‡ๆ–‡ๆกฃ**](./README.zh-CN.md)

</div>

---

## Why ScreenBench?

When you ask an AI agent for *"a clean modern app UI"*, screen 1 looks passable โ€” and by screen 3 the border radii, colors, typography hierarchy, and tab bars fall apart.

**ScreenBench** fixes AI UI drift at the architecture level by turning curated design systems and a live multi-screen iPhone canvas into **18 native MCP tools**:

- ๐ŸŽจ **25 Free Multi-Screen Design Systems** included out of the box (4โ€“6 cohesive screens per style: Home, Explore, Detail, Profile/Checkout + `tokens.css` + `guide.md`), plus [13 Commercial Pro Systems](https://screenbench.dev/studio/).
- โšก **Live Physics Micro-Motions** โ€” Dynamic Island morphing, Gaussian magnetic dock, AI thought pill, and more โ€” zero heavy animation libraries.
- ๐Ÿ–ผ๏ธ **Local Figma-Like Multi-Screen Canvas (`:4310`)** โ€” Watch your agent write `design/*.html` side-by-side in real time with trackpad pan/zoom, light/dark titanium frames, and multi-project switching.
- ๐ŸŽฏ **Press `C` to Click-to-Annotate Any DOM Element** โ€” Stop pasting 10 screenshots into chat. Click any button or card on the canvas, leave a note, and tell your agent to call `get_feedback()`.
- ๐Ÿ“ฑ **Instant LAN Mobile Preview** โ€” Scan the built-in QR code to test your AI-generated flow on a real iPhone over Wi-Fi.

---

## Visual Preview (Included Free Styles)

> Explore all **38 multi-screen UI systems** & **36 interactive micro-motions** live at **[screenbench.dev/studio](https://screenbench.dev/studio/)**.

| Waylight Mist | Color Bento | Gamify Arcade | Crystal Travel |
| :---: | :---: | :---: | :---: |
| <img src="https://screenbench.dev/free-previews/waylight.webp?v=2" width="200" alt="Waylight Mist" /> | <img src="https://screenbench.dev/free-previews/bento.webp?v=2" width="200" alt="Color Bento" /> | <img src="https://screenbench.dev/free-previews/gamify.webp?v=2" width="200" alt="Gamify Arcade" /> | <img src="https://screenbench.dev/free-previews/crystal.webp?v=2" width="200" alt="Crystal Travel" /> |
| **Soft Aura** | **Clean D2C** | **Plush Craft** | **LimeClub Camp** |
| <img src="https://screenbench.dev/free-previews/calm.webp?v=2" width="200" alt="Soft Aura" /> | <img src="https://screenbench.dev/free-previews/hera.webp?v=2" width="200" alt="Clean D2C" /> | <img src="https://screenbench.dev/free-previews/plush.webp?v=2" width="200" alt="Plush Craft" /> | <img src="https://screenbench.dev/free-previews/limeclub.webp?v=2" width="200" alt="LimeClub Camp" /> |

---

## 30-Second Quickstart

### 1. Install Globally via npm

```bash
npm i -g screenbench
```

### 2. Auto-Connect to Your AI Coding Agent (1 Command)

Run inside your project directory:

```bash
# Auto-detect & configure Claude Code, Cursor, Codex, Windsurf, or Antigravity
screenbench setup --dir ./design

# Or target a specific agent:
screenbench setup claude --dir ./design
screenbench setup codex --dir ./design
screenbench setup cursor --dir ./design
```

### 3. Launch the Local Multi-Screen Workbench

```bash
screenbench serve --dir ./design
# Opens http://localhost:4310/#project
```

### 4. Prompt Your Agent

```text
Call get_design_context first to read the active ScreenBench design tokens and reference screens, then design a 4-screen mobile app flow into design/ and call open_workbench when ready.
```

---

## Manual MCP Configuration

<details>
<summary><b>Claude Code / Cursor / Windsurf / Antigravity (JSON)</b></summary>

```json
{
  "mcpServers": {
    "screenbench": {
      "command": "screenbench",
      "args": ["mcp", "--dir", "./design"]
    }
  }
}
```
</details>

<details>
<summary><b>OpenAI Codex (<code>~/.codex/config.toml</code>)</b></summary>

```toml
[mcp_servers.screenbench]
command = "screenbench"
args = ["mcp", "--dir", "./design"]
```
</details>

---

## 18 Built-in MCP Tools

| Category | MCP Tools |
| :--- | :--- |
| **Design Context & Styles** | `get_design_context`, `list_styles`, `set_style`, `open_studio` |
| **Multi-Screen Canvas** | `list_screens`, `read_screen`, `write_screen`, `delete_screen`, `screenshot_screen`, `open_workbench` |
| **Multi-Project Workspace** | `list_projects`, `create_project`, `switch_project` |
| **Annotations & System** | `get_feedback`, `resolve_feedback`, `update_project_rules`, `list_components`, `save_component` |

---

## CLI Reference

```bash
screenbench setup [agent] [--dir ./design]   # Register MCP server for your AI agent
screenbench serve [--dir ./design]           # Launch local visual workbench (:4310)
screenbench mcp   [--dir ./design]           # Start stdio MCP server
screenbench projects                         # List & inspect managed local projects
screenbench styles                           # List all installed UI design systems
screenbench update                           # Upgrade CLI to latest npm release
screenbench activate <PRO-KEY>               # Unlock 13 Pro commercial styles offline
```

---

## Open-Core: Community Free vs. ScreenBench Pro

| Feature | Community Free (MIT) | ScreenBench Pro |
| :--- | :--- | :--- |
| **Local Visual Workbench & 18 MCP Tools** | โœ… Included forever | โœ… Included forever |
| **Click-to-Annotate (`C`) & Mobile QR** | โœ… Included | โœ… Included |
| **Multi-Screen UI Design Systems** | **25 Free Systems** | **All 38 Systems (+13 Flagship Commercial Pro)** |
| **Native Physics Micro-Motions** | **8 Free Motions** | **All 36 Motions + AI Rebuild Prompts** |
| **Pricing** | **Free / Open Source** | **One-Time Buyout** at [**screenbench.dev**](https://screenbench.dev/#pricing) |

---

## Links & Community

- ๐ŸŒ **Website & Docs**: [https://screenbench.dev](https://screenbench.dev)
- โœจ **Interactive Web Studio**: [https://screenbench.dev/studio/](https://screenbench.dev/studio/)
- ๐Ÿ“ฆ **npm Package**: [https://www.npmjs.com/package/screenbench](https://www.npmjs.com/package/screenbench)
- ๐• **X (Twitter)**: [@DZhao63405](https://x.com/DZhao63405)

## License

MIT ยฉ [ScreenBench](https://screenbench.dev)