
op7418/generative-ui-mcp
API development이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
AI 모델을 가르치는 MCP 서버는 대화 형 시각화를 생성하기 위해 - 차트, 다이어그램, 조업 등.
개요
AI 모델을 가르치는 MCP 서버는 상호 작용하는 시각화를 생성합니다. - 차트, 다이어그램, 조업 등. Anthropic의 Artifacts 및 Vercel의 생성 UI에 영감을 주었습니다. 이 서버는 구조화된 디자인 가이드라인을 제공합니다. 그래서 AI 모델은 일관된 스트리밍 안전, 시각적으로 광택된 위젯을 생산합니다. 디자인 규칙의 수천을 모든 시스템 프롬프트에 저장하는 대신, 이 MCP 서버는 실제로 시각화를 생성 할 필요가 있을 때만 모형을 할 수 있습니다. 모듈이 필요한 모델 호출 load ui guidelines, 그리고 다음을 포함하는 포괄적 인 디자인 사양을 얻을: - 핵심 디자인 시스템 (필로피, 스트리밍 규칙, CSS 변수) - 색상 팔레트 (6 semantic 사용 규칙과 램프) - 구성 요소 패턴 및 코드 템플릿 - SVG 설정 가이드 화살표 마커와 viewBox 계산 - 레이아웃 규칙과 8 다이어그램 유형 및 코드 예 AI 조수 (Claude Code, Cursor, 등)에 다음 프롬프트를 복사하고 붙여 넣으십시오.
개요(AI 번역)
AI 모델을 가르치는 MCP 서버는 상호 작용하는 시각화를 생성합니다. - 차트, 다이어그램, 조업 등.
Anthropic의 Artifacts 및 Vercel의 생성 UI에 영감을 주었습니다. 이 서버는 구조화된 디자인 가이드라인을 제공합니다. 그래서 AI 모델은 일관된 스트리밍 안전, 시각적으로 광택된 위젯을 생산합니다.
무엇 그것
디자인 규칙의 수천을 모든 시스템 프롬프트에 저장하는 대신, 이 MCP 서버는 실제 시각화를 생성 할 필요가있을 때 모델 **로드 가이드 라인을 허용한다.
| 모듈 | 취급 상품 |
|---|---|
interactive |
HTML 컨트롤, 폼, 슬라이더, 계산기 |
chart |
Chart.js 패턴, 캔버스 설정, 인터랙티브 데이터 컨트롤 |
| [T2] | UI 모의 레이아웃, 구성요소 패턴 |
| [T3] | SVG 일러스트, 예술 시각화 |
diagram |
유량, 시간, 계층, 사이클 다이어그램, 매트릭스 |
모델 호출 load_ui_guidelines 모듈이 필요하며, 다음과 같은 종합적인 디자인 사양을 가져옵니다.
- 핵심 설계 시스템 (필로피, 스트리밍 규칙, CSS 변수)
- 색상 팔레트 (6 경사로 semantic 사용 규칙)
- 구성 요소 패턴 및 코드 템플릿
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Generative UI MCP
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.
설치
npx generative-ui-mcp설정
{
"mcpServers": {
"generative-ui": {
"command": "npx",
"args": ["generative-ui-mcp"]
}
}
}