Stitch MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}" stitch-mcp -- npx -y stitch-mcp
Required:GOOGLE_CLOUD_PROJECT
README.md

Universal MCP Server for Google Stitch

Stitch MCP

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


Built with â¤ī¸ by Aakash Kargathara

Tools (9)

extract_design_contextScans a screen to extract Design DNA including fonts, colors, and layouts.
fetch_screen_codeDownloads the raw HTML/Frontend code of a screen.
fetch_screen_imageDownloads the high-res screenshot of a screen.
generate_screen_from_textGenerates a new screen based on a prompt and existing context.
create_projectCreates a new workspace or project folder.
list_projectsLists all available Stitch projects.
list_screensLists all screens within a specific project.
get_projectRetrieves details of a specific project.
get_screenGets metadata for a specific screen.

Environment Variables

GOOGLE_CLOUD_PROJECTrequiredThe Google Cloud project ID where Stitch API is enabled.

Configuration

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

Try it

→Extract the design context from the Home Screen to understand our current color palette and typography.
→Fetch the screen code for the login page so I can refactor it.
→Generate a new settings screen using the design context from our existing dashboard.
→List all screens in the current project to see what we have built so far.

Frequently Asked Questions

What are the key features of Stitch MCP?

Extracts Design DNA including fonts, colors, and layouts from existing screens. Downloads raw HTML/Frontend code for existing UI components. Generates new UI screens based on text prompts and existing design context. Manages project workspaces and screen metadata via Google Stitch API.

What can I use Stitch MCP for?

Maintaining design consistency by extracting styles from existing screens before building new ones. Rapidly generating new UI components that match an established design system. Retrieving raw code for existing screens to perform refactoring or updates. Organizing and auditing UI screens across multiple design projects.

How do I install Stitch MCP?

Install Stitch MCP by running: npx -y stitch-mcp

What MCP clients work with Stitch MCP?

Stitch MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Stitch MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare