Generative UI
БесплатноНе проверенTeaches AI models to generate interactive visualizations, charts, diagrams, and mockups.
Описание
Teaches AI models to generate interactive visualizations, charts, diagrams, and mockups.
README
An MCP server that teaches AI models to generate interactive visualizations — charts, diagrams, mockups, and more.
Inspired by Anthropic's Artifacts and Vercel's Generative UI. This server provides structured design guidelines so AI models produce consistent, streaming-safe, visually polished widgets.
What it does
Instead of stuffing thousands of tokens of design rules into every system prompt, this MCP server lets the model load guidelines on demand — only when it actually needs to generate a visualization.
| Module | What it covers |
|---|---|
interactive |
HTML controls, forms, sliders, calculators |
chart |
Chart.js patterns, canvas setup, interactive data controls |
mockup |
UI mockup layouts, component patterns |
art |
SVG illustrations, artistic visualizations |
diagram |
Flowcharts, timelines, hierarchies, cycle diagrams, matrices |
The model calls load_ui_guidelines with the modules it needs, and gets back comprehensive design specs including:
- Core design system (philosophy, streaming rules, CSS variables)
- Color palette (6 ramps with semantic usage rules)
- Component patterns and code templates
- SVG setup guides with arrow markers and viewBox calculations
- 8 diagram types with layout rules and code examples
Quick start
Auto-install via AI
Copy and paste the following prompt into your AI assistant (Claude Code, Cursor, etc.) to install automatically:
Install the
generative-ui-mcpMCP server. Runnpx generative-ui-mcpas a stdio MCP server. The server name should be "generative-ui".
Claude Code
claude mcp add generative-ui -- npx generative-ui-mcp
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"generative-ui": {
"command": "npx",
"args": ["generative-ui-mcp"]
}
}
}
Cursor / Windsurf
Add to your MCP settings (.cursor/mcp.json or equivalent):
{
"mcpServers": {
"generative-ui": {
"command": "npx",
"args": ["generative-ui-mcp"]
}
}
}
Tool
load_ui_guidelines
Load detailed design guidelines for generating visual widgets.
Parameters:
| Name | Type | Description |
|---|---|---|
modules |
string[] |
Modules to load: interactive, chart, mockup, art, diagram |
Example call:
{
"name": "load_ui_guidelines",
"arguments": {
"modules": ["chart", "diagram"]
}
}
Shared sections (like Core Design System and Color Palette) are automatically deduplicated when loading multiple modules.
Resource
generative-ui://system-prompt
A compact system prompt snippet (~300 tokens) with all hard constraints needed for valid widget output. Hosts can inject this into their system prompt so the model can generate basic widgets even without calling the tool.
Contains: output format, JSON escaping rules, streaming order, CDN allowlist, SVG setup, size limits, and interaction patterns.
How it works
┌─────────────┐ system prompt ┌─────────────┐
│ AI Host │ ◄── injects ──────── │ Resource: │
│ (Claude, │ ~300 tokens │ system-prompt│
│ Cursor, │ └─────────────┘
│ etc.) │
│ │ tool call ┌─────────────┐
│ Model ────│──► load_ui_ │ Guidelines │
│ │ guidelines │ Modules │
│ │ ◄── returns ──────── │ (on demand) │
│ │ detailed specs └─────────────┘
└─────────────┘
Token savings: The system prompt is ~300 tokens vs ~650+ tokens for full guidelines. Detailed specs are only loaded when the model actually needs to generate a visualization. Most conversations don't involve widgets, so this saves tokens on every request.
Development
npm install
npm run build
npm start
License
MIT
Установка Generative UI
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/op7418/generative-ui-mcpFAQ
Generative UI MCP бесплатный?
Да, Generative UI MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Generative UI?
Нет, Generative UI работает без API-ключей и переменных окружения.
Generative UI — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Generative UI в Claude Desktop, Claude Code или Cursor?
Открой Generative UI на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
LibreOffice Tools
Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a
автор: passerbyflutterdannote/figma-use
Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.
автор: dannoteLogo.dev
Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
автор: NOVA-3951Design Inspiration Server
Searches top design platforms like Dribbble and Behance to provide UI inspiration, color palettes, and layout patterns via the Serper API. It allows users to re
автор: YonasValentinCompare Generative UI with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории design
