Skip to content

stitch-design

Use when generating UI designs via Google Stitch MCP — creating new designs from prompts, editing existing designs, uploading reference images, managing projects, or exporting design outputs. Also use when the user says “stitch”, “google stitch”, “generate a design”, “design with AI”, or “stitch project”.

ModelSource
sonnetpack: ux-ui
Full Reference

Google Stitch MCP reference — AI-powered UI design generation tool. Covers all 9 Stitch tools, project lifecycle, image upload workflow, and design export patterns.

┏━ 🎨 stitch-design ━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ [one-line: what design task] ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
ItemValue
MCP package@google/stitch-mcp (or local binary)
AuthGoogle account / OAuth
Primary toolstitch_generate_ui
Output formatHTML/CSS + component markup
Image supportUpload reference images for style matching
Project-basedDesigns persist in Stitch projects
I want to…File
Generate a new UI design from a promptreference/stitch-tools.md
Edit or iterate on an existing designreference/stitch-tools.md
Upload a reference image for style matchingreference/stitch-tools.md
List, create, or delete Stitch projectsreference/stitch-tools.md
Export design output for implementationreference/stitch-tools.md
Configure Stitch MCP and authreference/stitch-setup.md

Usage: Read the reference file matching your current task. Each file has exact tool signatures and required parameters.

1. Create or select a Stitch project
2. Upload reference images (optional — for style matching)
3. Generate UI with stitch_generate_ui
4. Iterate with stitch_edit_ui
5. Export output → hand to Magic or implement directly

Stitch is prompt-iterative — each edit builds on the last:

Generate: "Dashboard with sidebar nav, metric cards, and data table"
Edit: "Make the sidebar collapsible and add dark mode support"
Edit: "Replace the table with a chart using the brand color palette"

Each stitch_edit_ui call references the current design ID — always capture the ID from the generate response.

After Stitch generates a design:

  • magic-21st — use design as visual spec for component generation
  • figma-sync — export Figma tokens to align with the design direction
  • generate-workflow — full design-to-code pipeline orchestration
  • ui-craft (frontend pack) — set aesthetic direction before generating
Design generated: [design ID]
Project: [project name]
Output: [HTML/CSS artifact path or description]
Next: iterate with stitch_edit_ui or hand to magic-21st