Skip to main content
Glama
jayeshvpatil

Stitch Design Agent

by jayeshvpatil

Stitch Design Agent - MCP App

An interactive MCP App that brings Google Stitch design tools directly into AI assistants like Claude Code, Claude Desktop, and ChatGPT. Browse projects, view screen designs, extract design tokens, and generate new screens — all within your chat interface.

Built with the MCP Apps (ext-apps) extension, which renders interactive React UI inside MCP host sandboxed iframes.

Screenshots

Projects List Browse all your Stitch design projects with thumbnail previews

Screen List View all screens within a project with device type badges

Design Viewer Split panel view: screen preview with HTML/CSS code and design tokens

Related MCP server: Stitch MCP Server

Features

Tool

Description

list-projects

Browse all Stitch design projects with thumbnail previews, device types, and theme colors

list-screens

View all screens within a project as a thumbnail grid

design-viewer

Split panel showing screen preview alongside HTML/CSS code and extracted design tokens

generate-design

Generate new screen designs from text prompts using AI, with follow-up suggestions

extract-design-context

Extract design tokens (colors, fonts, spacing, layouts) for brand consistency

Installation

Prerequisites

# Authenticate with Google Cloud
gcloud auth application-default login

Setup

# Clone the repo
git clone https://github.com/jayeshvpatil/stitch-mcp-app.git
cd stitch-mcp-app

# Install dependencies
npm install

# Build
npm run build

Configure your MCP client

Add to your MCP client configuration (e.g. ~/.claude/mcp.json for Claude Code):

{
  "mcpServers": {
    "stitch-design": {
      "command": "node",
      "args": ["/path/to/stitch-mcp-app/dist/main.js"],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "your-gcp-project-id"
      }
    }
  }
}

Replace /path/to/stitch-mcp-app with the actual path and your-gcp-project-id with your Google Cloud project ID.

Usage

Once configured, you can interact with your Stitch designs through natural language:

"Show me my Stitch design projects"
"List screens in the Sentiment Dashboard project"
"View the Data Explorer screen design"
"Generate a mobile login screen with dark theme"
"Extract design tokens from this screen"

The app renders interactive UI cards directly in the chat — click project cards to drill into screens, click screens to view full designs with code.

Architecture

stitch-mcp-app/
├── server.ts          # MCP server: 5 tools + 1 shared UI resource
├── main.ts            # stdio transport entry point
├── stitch-client.ts   # Stitch REST API client (google-auth-library)
├── mcp-app.html       # HTML entry for React UI
├── vite.config.ts     # Vite + vite-plugin-singlefile
└── src/
    ├── StitchApp.tsx   # Main component: useApp() hook + view routing
    ├── types.ts        # TypeScript interfaces matching Stitch API
    ├── global.css      # Dark mode responsive styles
    └── components/
        ├── ProjectList.tsx    # Project card grid
        ├── ScreenList.tsx     # Screen thumbnail grid
        ├── DesignViewer.tsx   # Split panel (image + code/tokens)
        ├── GenerateDesign.tsx # AI generation + suggestions
        └── DesignContext.tsx  # Design token display

Key patterns:

  • Single shared UI resource (ui://stitch-design/app.html) across all 5 tools

  • React UI bundled into a single HTML file via Vite + vite-plugin-singlefile

  • Tools return { type, data } JSON — React app routes views via ontoolresult

  • Direct Stitch API calls using google-auth-library (not proxied)

Development

# Watch mode (rebuilds on changes)
npm run dev

# Build UI only
npm run build:ui

# Build server only
npm run build:server

# Full build
npm run build

License

MIT

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • UI design from prompts, screenshots, and URLs for AI coding agents and theme tokens.

  • A design-style library for AI agents: search real styles, fetch a ready-to-apply design spec.

  • The Figma MCP server brings Figma design context directly into your AI workflow.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jayeshvpatil/stitch-mcp-app'

If you have feedback or need assistance with the MCP directory API, please join our Discord server