Skip to content
Back to search

stitch-mcp

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

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/kargatharaakash--stitch-mcp/badge.svg)](/listings/kargatharaakash--stitch-mcp)

HTML

<a href="/listings/kargatharaakash--stitch-mcp"><img src="/api/listings/kargatharaakash--stitch-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

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"
      }
    }
  }
}

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 107 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Stitch MCP
  2. <div align="center">
  3. [![npm version](https://img.shields.io/npm/v/stitch-mcp.svg)](https://www.npmjs.com/package/stitch-mcp)
  4. [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
  5. [![MCP](https://img.shields.io/badge/MCP-Compatible-green.svg)](https://modelcontextprotocol.io)
  6. **Universal MCP Server for Google Stitch**
  7. </div>
  8. Build amazing UI/UX designs instantly with AI. Works seamlessly with Cursor, Claude, Antigravity, and any MCP-compatible editor.
  9. Created by **Aakash Kargathara**.
  10. ---
  11. ## 🚀 How It Works
  12. ![Stitch Flowchart](https://mermaid.ink/img/pako:eNp9ks1KAzEQx19lSEEUWgR7cg_C0kop-FGsPUjtId2d7i7uJksyaS3dHnwBRQTx5qWIV28-jy-gj2B2s4JezCEf_8wvmfknKxbIEJnHIsXzGM67lwJsG2lU2-Ov5_sNXEgDu9DFOaYyRzXZgVbroDjhZBRP4YiLyPAIC_D7Nn7zaEfwtU40cUETd5qVSua4M4CBkiQDmRYwRDVHZZmHF9CUUBC3siCvCbdZUUMMjELwDcUFdFJpwvHH083n-x30pIxSdFrNVXOHVUeCP-gXcCiiRKC96vYVfvR-rdagW1RkDwUqTqgLODWUGypzfINR35qgk0ho2IKONa0mXUxFnqE1RejSiz-FD2O5sGppqtNdr2lp069LnSVp6jVm-7OmJiWv0Gu02-163lokIcXeXn79G6xTduB0-j_ImixDlfEkZN6KUYxZ-eghzrhJia2bjBuSw6UImEfKYJOZPLQedBNuP0bmxPU3MxfCuQ?bgColor=!white)
  13. ## ✨ Why this is cool
  14. - **Zero Config**: Just login once and it works everywhere.
  15. - **Universal**: Works on Windows, Mac, and Linux.
  16. - **Free**: Google Stitch API is free to use.
  17. ## �️ Quick Setup (2 Minutes)
  18. ### 1. Prerequisite: Google Cloud
  19. You need a Google Cloud project with the Stitch API enabled.
  20. ```bash
  21. # Login to your Google Cloud
  22. gcloud auth login
  23. # Set your project (replace with your actual project ID)
  24. gcloud config set project YOUR_PROJECT_ID
  25. gcloud auth application-default set-quota-project YOUR_PROJECT_ID
  26. # Enable the magic
  27. gcloud beta services mcp enable stitch.googleapis.com
  28. ```
  29. ### 2. Install the Credentials
  30. This gives `stitch-mcp` permission to talk to Google on your behalf.
  31. ```bash
  32. gcloud auth application-default login
  33. ```
  34. ### 3. Add to Your AI Editor
  35. Copy and paste this into your MCP config file:
  36. **For Claude Desktop**:
  37. `~/Library/Application Support/Claude/claude_desktop_config.json`
  38. **For Cursor**:
  39. Settings > MCP > Add New Server
  40. ```json
  41. {
  42. "mcpServers": {
  43. "stitch": {
  44. "command": "npx",
  45. "args": ["-y", "stitch-mcp"],
  46. "env": {
  47. "GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
  48. }
  49. }
  50. }
  51. }
  52. ```
  53. ## 🛠️ Available Tools
  54. | Tool Name | What it does |
  55. |-----------|--------------|
  56. | **`extract_design_context`** | 🧠 Scans a screen to extract "Design DNA" (Fonts, Colors, Layouts). Use this to keep style consistent. |
  57. | **`fetch_screen_code`** | 💾 Downloads the raw HTML/Frontend code of a screen. |
  58. | **`fetch_screen_image`** | 🖼️ Downloads the high-res screenshot of a screen. |
  59. | **`generate_screen_from_text`** | ✨ Generates a NEW screen based on your prompt (and context). |
  60. | **`create_project`** | 📁 Creates a new workspace/project folder. |
  61. | **`list_projects`** | 📋 Lists all your available Stitch projects. |
  62. | **`list_screens`** | 📱 Lists all screens within a specific project. |
  63. | **`get_project`** | 🔍 Retrieves details of a specific project. |
  64. | **`get_screen`** | ℹ️ Gets metadata for a specific screen. |
  65. ## 💡 Pro Tip: The "Designer Flow"
  66. To generate consistent UI, use this 2-step flow:
  67. 1. **Extract**: "Get design context from the Home Screen..."
  68. 2. **Generate**: "Using that context, generate a Chat Screen..."
  69. This ensures your new screen matches your existing design system perfectly.
  70. ## 📄 License
  71. **Apache 2.0** - Open source and free to use.
  72. ## Star History
  73. [![Star History Chart](https://api.star-history.com/svg?repos=Kargatharaakash/stitch-mcp&type=date&legend=top-left)](https://www.star-history.com/#Kargatharaakash/stitch-mcp&type=date&legend=top-left)
  74. ---
  75. *Built with ❤️ by Aakash Kargathara*

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.