jpskill.com
🛠️ 開発・MCP コミュニティ

stitch-mcp

Google Stitchで作成されたAIによるUIデザインを、MCPを通じて開発環境にスムーズに取り込み、AIデザインをコードに変換したり、AIプロトタイプからUIを構築したりする際に役立つSkill。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Google Stitchで作成されたAIによるUIデザインを、MCPを通じて開発環境にスムーズに取り込み、AIデザインをコードに変換したり、AIプロトタイプからUIを構築したりする際に役立つSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o stitch-mcp.zip https://jpskill.com/download/15421.zip && unzip -o stitch-mcp.zip && rm stitch-mcp.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/15421.zip -OutFile "$d\stitch-mcp.zip"; Expand-Archive "$d\stitch-mcp.zip" -DestinationPath $d -Force; ri "$d\stitch-mcp.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して stitch-mcp.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → stitch-mcp フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Stitch MCP

概要

Stitch MCP は、AI によって生成された UI デザインを Google の Stitch プラットフォームから開発ワークフローに移行するための CLI です。Stitch は AI を通じて HTML/CSS デザインを作成します。stitch-mcp はこれらのデザインを取得し、ローカルで提供し、デプロイ可能なサイトをそれらから構築し、Model Context Protocol (MCP) を介してコーディングエージェントに公開します。

ワークフロー:Stitch でデザインし、ローカルでプレビューし、コーディングエージェントに引き渡し、本番コードを出荷します。

手順

前提条件

  • Node.js 18+
  • Stitch へのアクセス権を持つ Google Cloud アカウント
  • gcloud CLI のインストール

セットアップ

npx @_davideast/stitch-mcp init

このガイド付きウィザードは、Google Cloud 認証、Stitch API アクセス、および MCP クライアント構成を処理します。

デザインをローカルでプレビュー

npx @_davideast/stitch-mcp serve -p <project-id>

ローカルの Vite 開発サーバーですべてのプロジェクト画面を提供します。

デプロイ可能なサイトを構築

npx @_davideast/stitch-mcp site -p <project-id>

Stitch の画面をルートにマッピングし、デプロイ可能な Astro プロジェクトを生成します。

MCP 統合

コーディングエージェントに Stitch ツールへのアクセス権を付与するには、MCP クライアント構成に追加します。

{
  "mcpServers": {
    "stitch": {
      "command": "npx",
      "args": ["@_davideast/stitch-mcp", "proxy"]
    }
  }
}

AI エージェント向けの MCP ツール

Tool Description
build_site 画面をルートにマッピングして、プロジェクトからサイトを構築します
get_screen_code 画面の HTML コードコンテンツを取得します
get_screen_image 画面のスクリーンショットを base64 として取得します

CLI コマンド

Command Description
init 認証、gcloud、および MCP クライアント構成を設定します
doctor 構成の健全性を検証します
serve -p <id> プロジェクト画面をローカルでプレビューします
view インタラクティブなリソースブラウザ
site -p <id> 画面から Astro プロジェクトを生成します
tool [name] CLI から MCP ツールを呼び出します
proxy エージェント用の MCP プロキシを実行します

例 1:Stitch デザインからのマーケティングサイト

フロントエンド開発者は Stitch を使用してスタートアップマーケティングサイトを設計し、それを Claude Code に引き渡して本番 React コンポーネントを作成します。

# Stitch デザインをローカルでプレビュー
npx @_davideast/stitch-mcp serve -p proj_8x7kq2m

# localhost:3000 で画面が正しく表示されることを確認
# 画面: home (hero + features), pricing (3 tiers), about (team bios)

MCP が構成されている状態で、開発者は Claude Code に次のようにプロンプトを出します。

project proj_8x7kq2m の Stitch デザインを使用して、Tailwind CSS を使用した本番 React コンポーネントを作成します。画面をマッピングします。
- home -> /
- pricing -> /pricing
- about -> /about

セマンティック HTML を使用し、レスポンシブブレークポイントを追加し、共有コンポーネント (Navbar, Footer, CTAButton) を抽出します。

Claude Code は、ルートマッピングを使用して MCP 経由で build_site を呼び出し、各ページの設計 HTML を受信し、components/Navbar.tsxcomponents/Footer.tsxapp/page.tsxapp/pricing/page.tsx、および app/about/page.tsx を含む完全な Next.js アプリを生成します。これらはすべて元の Stitch デザインと一致します。

例 2:ダッシュボードデザインの反復

プロダクトデザイナーは Stitch でダッシュボード画面を作成し、stitch-mcp を使用して設計とコードの間で反復処理を行います。

# 利用可能な画面を参照
npx @_davideast/stitch-mcp view --projects

# 特定の画面の詳細を検査
npx @_davideast/stitch-mcp view --project proj_4n9wf3r --screen scr_analytics

# サイトを構築して、すべての画面をルートとして表示
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" }
  ]
}'

次に、デザイナーはコーディングエージェントに次のように依頼します。「Stitch から分析ダッシュボードを取得し、収益とユーザーのメトリックに対してインタラクティブな Chart.js グラフを追加します。デザインの正確なレイアウトを維持しますが、データテーブルをソート可能にします。」

エージェントは get_screen_code 経由で画面 HTML を取得し、レイアウト構造を保持し、デザインの上にクライアント側のインタラクティビティを追加します。

ガイドライン

  • セットアップ後、doctor を実行して認証と構成を確認します
  • オフライン作業またはバージョン管理のために、snapshot を使用して画面の状態を保存します
  • エージェントに引き渡す前に、serve でデザインをプレビューします — 反復ループが高速化されます
  • Stitch MCP は、VS Code、Cursor、Claude Code、Gemini CLI、Codex、および OpenCode で動作します
  • 構築する前に、インタラクティブブラウザ(view)を使用してプロジェクトを探索します
  • 洗練された出力のために、他のデザインスキル(impeccable-design、frontend-design)と組み合わせます
  • 詳細については、GitHub および Google Stitch を参照してください
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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
  • gcloud CLI 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 doctor after setup to verify authentication and configuration
  • Use snapshot to save screen state for offline work or version control
  • Preview designs with serve before 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