random-design
Provides on-demand access to Google Fonts for typography choices when generating design specifications, with substitute fonts used if the service is unavailable.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
random-design
先看见好的设计,再把它用于你的内容。
为网页与 PPT 选主题、比较方案、保留可复用的设计规范。
打开工作台 ↗ · 20 个完整案例 · 40 套风格规则 · 21 种固定风格
Browser · CLI · MCP · Skill · 中文 / English · MIT

上图是迁入的真实网页截图:杂志排版、港式招牌、票券、唱片封套。原始案例来自 qybaihe/hash-design(MIT)。
这是 xingchenyd 独立创建并维护的仓库,不是 GitHub fork。 原 fork 中的设计规则、完整案例、截图、brief 与源码已迁入这里。上游作者和 MIT 许可完整保留;独立仓库身份不意味着把复用的作品署名为自己原创。
三种入口,一起使用
入口 | 作用 | 实际输出 |
40 套参考规则 | 选设计语言,按内容做完整作品 | 排印、网格、配色、构图与自检 brief;由 Agent 继续执行 |
21 种固定风格 | 按名字直接选用和比较 | 网页、JSON、SVG、六页可编辑 PPTX 样张 |
随机哈希变化 | 在约束内探索,降低近期重复 | 候选主题、预览、历史和可复用规范 |
40 套规则与 21 种固定风格存在重合,不能相加宣称为 61 种独立风格。参考模式保留上游的离散组合映射;原引擎保留连续配色与近期历史筛选。不承诺无限不重复。
Related MCP server: visualspec
完整设计作品集 · 20 个网页
同一份事实,五种完整实现。以下页面保留原排版、插图和细节,已在本项目站点托管。点击大图或风格名称打开完整网页。
二号桥单车铺

瑞士网格 · 时装画册 · 票根 · 游戏说明书 · 老黄历
Causeway — a music festival on Skerrow Island

工程图版 · 地形图 · 手作温度 · 杂志编辑 · 孟菲斯
第四巷面包店

公文表格 · 包豪斯 · 水墨印章 · Riso 双色套印 · 港式招牌
Sluice — self-hosted webhook inbox

唱片封套 · 美术馆图录 · 终端荧光 · 学术论文 · 方格实验本

21 种固定风格 · 全部保留
以下是 v0.5 的实际浏览器截图。新版重排字号、留白、菜单分隔和价格层级:杂志用跨栏标题,瑞士用价格索引,波普与孟菲斯减少漂浮装饰,新中式增加细线山水。材质遵循各自的风格。

风格 | 风格 | 风格 |
这是同一家虚构咖啡店的主题样张,用于比较。实际项目需要按内容重排,不能把咖啡插图套到所有题材。v0.5 版式改进主要作用于网页;PPTX 保留独立的六页可编辑排版,并非网页截图或逐像素复制。
40 套规则怎么用
打开规则选择器,输入项目名和每行一条的事实。指定风格或随机生成多套 brief。浏览器探索避开最近 15 个方向;指定风格允许重复。下载 brief + JSON,交给 Agent 制作网页或 PPT。
按附带的 random-design brief 制作网页 / PPT。
保留原文、事实和数据,不要随机改写语气。
先提供 3 套内容一致的方案,选定后制作完整作品。
插图必须服务于内容,交付前检查实际渲染。方向 | 方向 |
本地调用与跨环境接入
git clone https://github.com/xingchenyd/random-design.git
cd random-design
npm ci
npm run build
npm run studio
# Fixed style: HTML + JSON + editable PPTX
node src/cli.js preset --style editorial --out output/editorial
# Procedural variations
node src/cli.js generate --count 5 --out output/explore
# Reference rules: briefs, not rendered pages
node src/cli.js reference-list
node src/cli.js reference-roll --style editorial-magazine --count 1 --content facts.json --out output/reference
node src/cli.js reference-reproduce --file output/reference/reference-roll.jsonfacts.json:
{"subject":"岚谷咖啡","facts":["拿铁 ¥18,浓缩咖啡与鲜奶","美式 ¥15,浓缩咖啡与水"]}Node.js 22+。输出目录必须是新的,避免覆盖。参考模式使用 --seed 固定映射;保存 ref、constraints 与原文以完整复现。参考 CLI 不自动记录跨次历史;MCP 可传 exclude,浏览器保留最近方向。
环境 | 使用方式 |
普通浏览器 / ChatGPT 网页版 | 在线比较并下载 brief + JSON,再附给对话;不需要本机 Node,不会因粘贴仓库链接自动安装工具 |
WorkBuddy / Codex / Claude Code / Cursor | Skill ZIP 或 Node MCP 服务;导入方式取决于客户端实际版本 |
云端编程环境 | 克隆后运行 CLI,保留输出和历史文件 |
MCP 新增 list_reference_styles、generate_reference_briefs、reproduce_reference_brief、critique_reference_page,保留原 7 个工具,共 11 个。参考库检查只用于参考模式,不能拿它禁止玻璃拟态等固定风格;自动分数也不是审美分数。
来源、复现与验证
完整上游快照固定于 e40a942,保留 227 个文件、40 套规则、4 项目 / 20 页面、原始 README 与 MIT 许可。
SHA-256 清单验证迁移完整性;原 fork 完整 Git 历史另有离线备份。
字体在线按需加载,离线替代;PPTX 不嵌入字体。协议测试不等于特定 WorkBuddy / ChatGPT 账号连接测试。
生成器为 random-design/3;网页固定风格渲染器为 composition/2。需要旧版像素效果时使用对应 release。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give your AI agents a design superpower. Generate, edit, and publish publication-grade decks, reports, landing pages, resumes, and marketing visuals directly within your agent workflow. Delivering frontier-level design quality at 3× the speed and 53× lower cost -from conversational prompt to live link or vector PDF in minutes.
Agent-Native design tool - create and edit visual designs with agent assistance
Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.
A design agent in your coding agent's loop: briefs each screen, reviews UX and visual quality.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for AI agents to make structured design decisions with direction, palette, typography, layout, and detail signatures, supporting multiple rendering backends and 56 visual styles.23AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to convert natural-language briefs into structured visual specs, deterministically render typography and layouts, and run constraint-aware visual QA and targeted repair for image generation.41 npmApache 2.0
- AlicenseAqualityAmaintenanceProvides AI agents with a visual design inspiration loop from award-winning websites, including natural-language search, inline screenshots, and detailed design DNA extraction. Also supports optional live page capture, structure analysis, and motion recording for design verification.416,813 npm881MIT
- AlicenseCqualityBmaintenanceEnables AI agents to autonomously create and edit graphic designs, multi-page PDF catalogs, brochures, social media assets, and slide decks on a local browser canvas. It provides vision-in-the-loop feedback, layout audits, and export capabilities for print-ready or web-ready outputs.53104 npmMIT