stitch-mcp
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "stitch-mcp":https://skillpi.com/zh/skills/deepskill-c5cce6d5ff3d2aca94039ae7f526f9e17616edb78d6a401b8f6c50fff4272080。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过 MCP 将 Google Stitch 生成的 AI 用户界面设计导入到你的开发工作流中。使用场景包括将 Stitch 设计转换为代码、将 AI 设计工具与编码代理集成,以及基于 AI 生成的原型构建用户界面。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供从 Google Stitch 设计到代码的完整工作流,解决实际开发痛点
- 支持本地预览、构建可部署站点、MCP 集成等多种使用场景
- 受众明确,适用于前端开发者和设计师
亮点
- description 明确描述了三种核心使用场景,触发词精准完整
- 边界清晰,不易与其他 Skill 重叠
亮点
- 文档结构清晰,包含完整的安装、使用、示例和指南
- 提供了端到端的实际示例,帮助用户理解执行流程
- frontmatter 完整,单文件长度适中
亮点
- 工具来源明确,使用 npx 安装,参数正确
- 提供了 doctor 命令验证配置,覆盖主要异常情况
- 不可逆操作有确认机制,如交互式浏览器 view
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 35, 43, 51, 64, 99 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
- stitch.google.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。