/ Каталог / Песочница / Stitch MCP
● Сообщество davideast ⚡ Сразу

Stitch MCP

автор 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.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

готово

Установка

Выберите клиент

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

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

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

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

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

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

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

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

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

Continue использует массив объектов серверов, а не map.

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

Добавьте в context_servers. Zed перезагружается автоматически.

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

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: Stitch MCP

Turn a Stitch screen into production React

👤 Developers ⏱ ~15 min intermediate

Когда использовать: You finished a screen in Stitch and want a PR-ready component.

Поток
  1. Pull design
    stitch_get_active_design; inspect tree.✓ Скопировано
    → Tree loaded
  2. Map tokens
    Map Stitch tokens to your tailwind config.✓ Скопировано
    → Token map ready
  3. Generate
    Generate React component using your project's conventions.✓ Скопировано
    → Component file ready

Итог: Component lives in your repo with your tokens, not pasted Stitch CSS.

Комбинации

Сочетайте с другими MCP — эффект x10

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✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
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

Стоимость и лимиты

Во что обходится

Квота API
Stitch API quota applies
Токенов на вызов
Design trees are mid-size
Деньги
Free MCP; Stitch usage applies
Совет
Strip out hidden layers before generating code — keeps token count down

Безопасность

Права, секреты, радиус поражения

Минимальные скоупы: stitch:read
Хранение учётных данных: Stitch API token in env
Исходящий трафик: stitch.google.com

Устранение неполадок

Частые ошибки и исправления

Design returns empty

Confirm the right Stitch project is active in your account

Generated code uses Stitch tokens

Provide a token-mapping config first

Альтернативы

Stitch MCP в сравнении

АльтернативаКогда использоватьКомпромисс
figma MCPSource is FigmaDifferent design tool

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills