/ Verzeichnis / Playground / Stitch MCP
● Community davideast ⚡ Sofort

Stitch MCP

von davideast · davideast/stitch-mcp

Bridge between Google Stitch's AI design canvas and your real codebase — Claude reads the design and writes React/Vue/SwiftUI for it.

Stitch is Google's AI UI design tool. Stitch MCP lets Claude pull the active Stitch design (layout tree, tokens, generated assets) and translate it into your project's component conventions, instead of you copy-pasting screenshots.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

bereit

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "stitch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stitch-mcp"
      ]
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "stitch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stitch-mcp"
      ]
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "stitch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stitch-mcp"
      ]
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "stitch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stitch-mcp"
      ]
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "stitch-mcp",
      "command": "npx",
      "args": [
        "-y",
        "stitch-mcp"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "stitch-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "stitch-mcp"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add stitch-mcp -- npx -y stitch-mcp

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: Stitch MCP

Turn a Stitch screen into production React

👤 Developers ⏱ ~15 min intermediate

Wann einsetzen: You finished a screen in Stitch and want a PR-ready component.

Ablauf
  1. Pull design
    stitch_get_active_design; inspect tree.✓ Kopiert
    → Tree loaded
  2. Map tokens
    Map Stitch tokens to your tailwind config.✓ Kopiert
    → Token map ready
  3. Generate
    Generate React component using your project's conventions.✓ Kopiert
    → Component file ready

Ergebnis: Component lives in your repo with your tokens, not pasted Stitch CSS.

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

stitch-mcp + shadcn-ui-mcp

Map Stitch components onto your shadcn primitives

Combine stitch-mcp with shadcn-ui-mcp: Map Stitch components onto your shadcn primitives✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
get_active_design (see docs) Fetch current Stitch design tree 1 call
export_assets (see docs) Export image assets with names 1 call
map_tokens (see docs) Map Stitch tokens to a target token system 1 call

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Stitch API quota applies
Tokens pro Aufruf
Design trees are mid-size
Kosten in €
Free MCP; Stitch usage applies
Tipp
Strip out hidden layers before generating code — keeps token count down

Sicherheit

Rechte, Secrets, Reichweite

Minimale Scopes: stitch:read
Credential-Speicherung: Stitch API token in env
Datenabfluss: stitch.google.com

Fehlerbehebung

Häufige Fehler und Lösungen

Design returns empty

Confirm the right Stitch project is active in your account

Generated code uses Stitch tokens

Provide a token-mapping config first

Alternativen

Stitch MCP vs. andere

AlternativeWann stattdessenKompromiss
figma MCPSource is FigmaDifferent design tool

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen