Kargatharaakash

Stitch MCP

Community Kargatharaakash
Updated

Universal MCP Server for Google Stitch. Connect AI agents to your UI designs.

Stitch MCP

npm versionLicense: MITMCP

Universal MCP Server for Google Stitch

Build amazing UI/UX designs instantly with AI. Works seamlessly with Cursor, Claude, Antigravity, and any MCP-compatible editor.

Created by Aakash Kargathara.

๐Ÿš€ How It Works

Stitch Flowchart

โœจ Why this is cool

  • Zero Config: Just login once and it works everywhere.
  • Universal: Works on Windows, Mac, and Linux.
  • Free: Google Stitch API is free to use.

๏ฟฝ๏ธ Quick Setup (2 Minutes)

1. Prerequisite: Google Cloud

You need a Google Cloud project with the Stitch API enabled.

# Login to your Google Cloud
gcloud auth login

# Set your project (replace with your actual project ID)
gcloud config set project YOUR_PROJECT_ID
gcloud auth application-default set-quota-project YOUR_PROJECT_ID

# Enable the magic
gcloud beta services mcp enable stitch.googleapis.com

2. Install the Credentials

This gives stitch-mcp permission to talk to Google on your behalf.

gcloud auth application-default login

3. Add to Your AI Editor

Copy and paste this into your MCP config file:

For Claude Desktop:~/Library/Application Support/Claude/claude_desktop_config.json

For Cursor:Settings > MCP > Add New Server

{
  "mcpServers": {
    "stitch": {
      "command": "npx",
      "args": ["-y", "stitch-mcp"],
      "env": {
         "GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
      }
    }
  }
}

๐Ÿ› ๏ธ Available Tools

Tool Name What it does
extract_design_context ๐Ÿง  Scans a screen to extract "Design DNA" (Fonts, Colors, Layouts). Use this to keep style consistent.
fetch_screen_code ๐Ÿ’พ Downloads the raw HTML/Frontend code of a screen.
fetch_screen_image ๐Ÿ–ผ๏ธ Downloads the high-res screenshot of a screen.
generate_screen_from_text โœจ Generates a NEW screen based on your prompt (and context).
create_project ๐Ÿ“ Creates a new workspace/project folder.
list_projects ๐Ÿ“‹ Lists all your available Stitch projects.
list_screens ๐Ÿ“ฑ Lists all screens within a specific project.
get_project ๐Ÿ” Retrieves details of a specific project.
get_screen โ„น๏ธ Gets metadata for a specific screen.

๐Ÿ’ก Pro Tip: The "Designer Flow"

To generate consistent UI, use this 2-step flow:

  1. Extract: "Get design context from the Home Screen..."
  2. Generate: "Using that context, generate a Chat Screen..."

This ensures your new screen matches your existing design system perfectly.

๐Ÿ“„ License

Apache 2.0 - Open source and free to use.

Star History

Star History Chart

Built with โค๏ธ by Aakash Kargathara

MCP Server ยท Populars

MCP Server ยท New

    ForLoopCodes

    Context+

    Semantic Intelligence for Large-Scale Engineering. Context+ is an MCP server designed for developers who demand 99% accuracy. By combining RAG, Tree-sitter AST, Spectral Clustering, and Obsidian-style linking, Context+ turns a massive codebase into a searchable, hierarchical feature graph.

    Community ForLoopCodes
    Averyy

    PCB Parts MCP Server

    MCP server for searching electronic components for PCB assembly

    Community Averyy
    ZachHandley

    ZMCPTools

    A custom TypeScript MCP Server intended to be used with Claude Code

    Community ZachHandley
    mnemox-ai

    TradeMemory Protocol

    MCP server for AI trading memory โ€” outcome-weighted cognitive memory with 10 tools, 399 tests.

    Community mnemox-ai
    Invoke-RE

    BinjaLattice

    Plugin interface for remote communications with Binary Ninja database and MCP server for interfacing with LLMs.

    Community Invoke-RE