一个本地 MCP 服务器,让 Claude Code 利用你已有的 Claude CLI 订阅来生成、迭代 HTML 设计并截取屏幕截图。

Stars

14

7 天增长

暂无数据

Fork 数

2

开放 Issue

0

开源协议

暂无数据

最近更新

2026-06-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供了一个完全本地、可审计的替代方案,无需逆向工程或额外付费即可实现类似 Claude 托管设计功能的效果。

适合谁使用

  • 需要快速 UI 原型开发的 Claude Code 用户
  • 希望从命令行生成 HTML 设计的开发者
  • 注重隐私并偏好本地执行的用户
  • 希望将 AI 生成的设计集成到工作流程中的团队

典型使用场景

  • 通过自然语言提示快速原型设计落地页或仪表盘
  • 通过描述更改来迭代现有的 HTML 设计
  • 并行生成多个设计变体用于 A/B 测试
  • 为生成的文档或审查捕获设计截图

项目优势

  • 无需额外费用——使用你已有的 Claude 订阅
  • 完全可审计——所有提示和系统提示都本地记录
  • 单文件服务器,无 npm 依赖
  • 支持纯 HTML 输出和可选的 Playwright 截图

使用前须知

  • 需要安装并配置 Claude Code CLI
  • 截图功能需要单独安装 Playwright
  • 没有内置预览或实时重载——设计是静态 HTML 文件

README 快速开始

claude-design-mcp

A tiny, local "design studio" that lets Claude Code generate, iterate on, and screenshot HTML designs from the CLI — the practical equivalent of prompting Claude Design and getting a result back, but fully on your machine.

How it works (and why it's trustworthy)

  • Engine = your local claude -p. Every design is generated by shelling out to the Claude Code CLI you already have, using your existing subscription. No API key. No extra billing.
  • No reverse engineering. It does not call any private claude.ai endpoint. The desktop "Design" feature is just a window onto claude.ai/desktop-design (a hosted web app); its generation API is internal and undocumented, so this tool deliberately does not touch it.
  • Auditable. One file (server.mjs), zero npm dependencies. Every model call — full prompt + system prompt — is appended to designs/.requests.log.
  • Outputs are plain .html files saved under designs/.

Tools (MCP)

ToolDoes
design_createbrief → complete self-contained HTML
design_iteraterefine a saved design (new versioned file, lineage kept)
design_variantsN distinct alternatives for one brief, in parallel
design_renderscreenshot a design to PNG (Playwright)
design_list / design_getbrowse / read saved designs

Use it right now (CLI mode, no restart needed)

node server.mjs create "modern dashboard for a crypto trading bot, dark, dense, trustworthy"
node server.mjs iterate mydesign.html "make the hero calmer and increase whitespace"
node server.mjs variants 3 "landing page for a Korean ADHD-friendly diary app"
node server.mjs render mydesign.html 1440,900
node server.mjs list

Register as an MCP (for future Claude Code sessions)

claude mcp add --scope user claude-design -- node "/path/to/claude-design-mcp/server.mjs"

MCP servers load at session start, so restart Claude Code after adding. Then the design_create / design_iterate / etc. tools are callable in-session.

Requirements

  • Node.js (uses only built-ins)
  • claude CLI on PATH (the engine)
  • playwright CLI on PATH — only for design_render (optional)

Env overrides

  • CLAUDE_DESIGN_BIN — path to the claude binary (default claude)
  • CLAUDE_DESIGN_PLAYWRIGHT — path to the playwright binary (default playwright)

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

gnipbao
精选
gnipbao GitHub avatar

story-to-handdrawn-video

A Remotion-based tool that converts Chinese story text or ordered hand-drawn images into vertical hand-drawn diary-comic animation with handwritten captions, left-to-right reveals, optional page-curl transitions, and silent H.264 output for post-production dubbing.

AI 与机器学习AI 智能体
683
mereyabdenbekuly-ctrl
精选
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI 与机器学习AI 智能体
859
yetone
精选
yetone GitHub avatar

kill-ai-slop

Kill AI Slop is a multilingual field guide and agent skill that catalogues 33 common AI-generated design tells with interactive before-after demos, and provides a tool to scan and fix web projects.

AI 与机器学习AI 智能体
805