stitch-mcp
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "stitch-mcp" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c5cce6d5ff3d2aca94039ae7f526f9e17616edb78d6a401b8f6c50fff4272080. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Import AI UI designs generated by Google Stitch into your development workflow via MCP. Use cases include converting Stitch designs to code, integrating AI design tools with coding agents, and building user interfaces from AI-generated prototypes.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Software, accounts and paid services
- Node.js 18+ Google Cloud account with Stitch access `gcloud` CLI installed
- Testing
- Not tested
Browse files
Frontmatter
name: stitch-mcp
description: >-
Import AI-generated UI designs from Google Stitch into your development workflow via MCP.
Use when: converting Stitch designs to code, integrating AI design tools with coding agents,
building UI from AI-generated prototypes.
license: MIT
compatibility: "Node.js 18+, Claude Code or any MCP client"
metadata:
author: terminal-skills
version: "1.0.0"
category: design
tags: [stitch, google, design-to-code, mcp, ui]Stitch MCP
Overview
Stitch MCP is a CLI for moving AI-generated UI designs from Google's Stitch platform into your development workflow. Stitch creates HTML/CSS designs through AI — stitch-mcp fetches those designs, serves them locally, builds deployable sites from them, and exposes them to coding agents via the Model Context Protocol (MCP).
The workflow: Design in Stitch, preview locally, hand off to a coding agent, ship production code.
Instructions
Prerequisites
- Node.js 18+
- Google Cloud account with Stitch access
gcloudCLI installed
Setup
npx @_davideast/stitch-mcp init
This guided wizard handles Google Cloud authentication, Stitch API access, and MCP client configuration.
Preview Designs Locally
npx @_davideast/stitch-mcp serve -p <project-id>
Serves all project screens on a local Vite dev server.
Build a Deployable Site
npx @_davideast/stitch-mcp site -p <project-id>
Maps Stitch screens to routes and generates a deployable Astro project.
MCP Integration
Add to your MCP client config to give coding agents access to Stitch tools:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["@_davideast/stitch-mcp", "proxy"]
}
}
}
MCP Tools for AI Agents
| Tool | Description |
|---|---|
build_site |
Build a site from a project by mapping screens to routes |
get_screen_code |
Retrieve a screen's HTML code content |
get_screen_image |
Retrieve a screen screenshot as base64 |
CLI Commands
| Command | Description |
|---|---|
init |
Set up auth, gcloud, and MCP client config |
doctor |
Verify configuration health |
serve -p <id> |
Preview project screens locally |
view |
Interactive resource browser |
site -p <id> |
Generate Astro project from screens |
tool [name] |
Invoke MCP tools from CLI |
proxy |
Run MCP proxy for agents |
Examples
Example 1: Marketing Site from Stitch Designs
A frontend developer uses Stitch to design a startup marketing site, then hands it off to Claude Code for production React components:
# Preview the Stitch designs locally
npx @_davideast/stitch-mcp serve -p proj_8x7kq2m
# Verify screens look correct at localhost:3000
# Screens: home (hero + features), pricing (3 tiers), about (team bios)
With MCP configured, the developer prompts Claude Code:
Using the Stitch designs from project proj_8x7kq2m, create production
React components with Tailwind CSS. Map screens:
- home -> /
- pricing -> /pricing
- about -> /about
Use semantic HTML, add responsive breakpoints, and extract shared
components (Navbar, Footer, CTAButton).
Claude Code calls build_site via MCP with the route mapping, receives the design HTML for each page, and generates a complete Next.js app with components/Navbar.tsx, components/Footer.tsx, app/page.tsx, app/pricing/page.tsx, and app/about/page.tsx — all matching the original Stitch designs.
Example 2: Iterating on a Dashboard Design
A product designer creates dashboard screens in Stitch and uses stitch-mcp to iterate between design and code:
# Browse available screens
npx @_davideast/stitch-mcp view --projects
# Inspect specific screen details
npx @_davideast/stitch-mcp view --project proj_4n9wf3r --screen scr_analytics
# Build the site to see all screens as routes
npx @_davideast/stitch-mcp tool build_site -d '{
"projectId": "proj_4n9wf3r",
"routes": [
{ "screenId": "scr_analytics", "route": "/" },
{ "screenId": "scr_settings", "route": "/settings" },
{ "screenId": "scr_users", "route": "/users" }
]
}'
The designer then asks their coding agent: "Take the analytics dashboard from Stitch and add interactive Chart.js graphs for the revenue and user metrics. Keep the exact layout from the design but make the data tables sortable."
The agent fetches the screen HTML via get_screen_code, preserves the layout structure, and adds client-side interactivity on top of the design.
Guidelines
- Run
doctorafter setup to verify authentication and configuration - Use
snapshotto save screen state for offline work or version control - Preview designs with
servebefore handing to agents — faster iteration loop - Stitch MCP works with VS Code, Cursor, Claude Code, Gemini CLI, Codex, and OpenCode
- Use the interactive browser (
view) to explore projects before building - Combine with other design skills (impeccable-design, frontend-design) for polished output
- See GitHub and Google Stitch for more
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供从 Google Stitch 设计到代码的完整工作流,解决实际开发痛点
- 支持本地预览、构建可部署站点、MCP 集成等多种使用场景
- 受众明确,适用于前端开发者和设计师
Highlights
- description 明确描述了三种核心使用场景,触发词精准完整
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 文档结构清晰,包含完整的安装、使用、示例和指南
- 提供了端到端的实际示例,帮助用户理解执行流程
- frontmatter 完整,单文件长度适中
Highlights
- 工具来源明确,使用 npx 安装,参数正确
- 提供了 doctor 命令验证配置,覆盖主要异常情况
- 不可逆操作有确认机制,如交互式浏览器 view
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 35, 43, 51, 64, 99
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- stitch.google.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Node.js 18+ Google Cloud account with Stitch access `gcloud` CLI installed
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.