kof-stitch-mcp
Provides tools to interact with Google Stitch, an AI-powered UI/UX design tool, for managing projects, generating screens from text, and exporting designs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kof-stitch-mcpGenerate a login screen with email and social login options"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@keeponfirst/kof-stitch-mcp
Part of KOF Agentic Workflow - A complete agentic workflow for building modern applications. Check out the full workflow if you're interested in how this tool fits into the bigger picture.
ā Support this project
If this project helps you, you can support development here:
š https://buymeacoffee.com/keeponfirst
MCP (Model Context Protocol) Server for Google Stitch - AI-powered UI/UX design tool.
Works with Claude Code, Cursor, and any MCP-compatible client.
Related MCP server: Stitch MCP
Why This Package?
Google Stitch provides an official MCP endpoint at stitch.googleapis.com/mcp, but it requires:
Dynamic OAuth tokens from Google Cloud ADC
Proper authentication headers
Most MCP clients (Claude Code, Cursor) don't support Google's google_credentials auth type natively. This package wraps the official API as a stdio MCP server that handles authentication automatically.
Your MCP Client ā kof-stitch-mcp ā Google Stitch API
(stdio) (handles auth) (HTTP)Features
Official Stitch Tools (via Google API)
list_projects- List all your Stitch projectsget_project- Get project detailscreate_project- Create a new projectlist_screens- List screens in a projectget_screen- Get screen detailsgenerate_screen_from_text- Generate UI design from text prompt
Additional Tools (by this package)
fetch_screen_code- Download screen HTML code directlyfetch_screen_image- Download screen screenshot as PNGexport_project- Batch export all screens (HTML + PNG) with manifestfetch_design_md- Download project's DESIGN.md design system spec (supports Stitch Vibe Design)init_stitch_project- NEW Initialize.stitch/directory for stitch-skills compatibility
Prerequisites
Node.js 18+
Google Cloud CLI with Application Default Credentials:
# Install gcloud: https://cloud.google.com/sdk/docs/install # Login gcloud auth application-default login # Set project gcloud config set project YOUR_PROJECT_IDEnable Stitch MCP API:
gcloud beta services mcp enable stitch.googleapis.com --project=YOUR_PROJECT_ID
Installation
Option 1: npx (Recommended)
No installation needed. Configure directly in your MCP client.
Option 2: Global Install
npm install -g @keeponfirst/kof-stitch-mcpOption 3: Local Install
npm install @keeponfirst/kof-stitch-mcpConfiguration
Claude Code
Create .mcp.json in your project root:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "@keeponfirst/kof-stitch-mcp"],
"env": {
"GOOGLE_CLOUD_PROJECT": "your-project-id"
}
}
}
}Or add via CLI:
claude mcp add stitch --command "npx" --args "-y" "@keeponfirst/kof-stitch-mcp" \
--env GOOGLE_CLOUD_PROJECT=your-project-idCursor
Add to Cursor MCP settings:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "@keeponfirst/kof-stitch-mcp"],
"env": {
"GOOGLE_CLOUD_PROJECT": "your-project-id"
}
}
}
}Other MCP Clients
Any client supporting stdio MCP servers can use:
GOOGLE_CLOUD_PROJECT=your-project-id npx @keeponfirst/kof-stitch-mcpUsage Examples
After configuration, you can use natural language in your MCP client:
"List my Stitch projects"
ā Uses list_projects tool
"Generate a mobile login screen with email and social login"
ā Uses generate_screen_from_text tool
"Download the HTML code for screen abc123 in project xyz789"
ā Uses fetch_screen_code tool
"Download the DESIGN.md from my Stitch project xyz789"
ā Uses fetch_design_md tool
ā Saves DESIGN.md to your working directory
ā AI coding agents can now follow your design system when generating UIDESIGN.md Workflow (Vibe Design)
Google Stitch's new DESIGN.md feature (launched 2026-03-18) lets you define your design system in a portable Markdown file ā colors, typography, spacing, and component patterns ā that AI agents can read and follow.
1. Design in Stitch ā export DESIGN.md from project settings
2. fetch_design_md ā saves DESIGN.md to your repo
3. Claude Code reads DESIGN.md ā generates consistent UI componentsstitch-skills Integration
stitch-skills is Google's official Agent Skills library that adds advanced workflows on top of Stitch ā multi-page loops, React component conversion, Remotion video walkthroughs, and more.
kof-stitch-mcp is the authentication layer that makes stitch-skills work in Claude Code and Cursor, where Google OAuth is not natively supported.
Why use them together?
Without stitch-skills | With stitch-skills |
Manual prompt for each screen |
|
AI guesses design rules | Every screen enforced against |
Raw HTML output |
|
Static designs |
|
Setup (one-time)
Step 1 ā Configure kof-stitch-mcp (authentication bridge)
Add to your .mcp.json:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "@keeponfirst/kof-stitch-mcp"],
"env": { "GOOGLE_CLOUD_PROJECT": "your-project-id" }
}
}
}Step 2 ā Install stitch-skills
# Install the skills you need
npx skills add google-labs-code/stitch-skills --skill stitch-design
npx skills add google-labs-code/stitch-skills --skill stitch-loop
npx skills add google-labs-code/stitch-skills --skill design-md
npx skills add google-labs-code/stitch-skills --skill react-componentsStep 3 ā Initialize your project
In Claude Code, run:
Initialize my Stitch project <projectId> with init_stitch_projectThis creates:
.stitch/
āāā metadata.json ā screens map + project config (stitch-skills format)
āāā DESIGN.md ā design system template pre-filled from your Stitch theme
āāā SITE.md ā site vision and page checklist
āāā designs/ ā output directory for HTML + PNG exportsStep 4 ā Fill in the templates
Edit .stitch/DESIGN.md to complete your color palette, typography, and component rules. Edit .stitch/SITE.md to describe your site goals and pages.
Or let the design-md skill analyze your existing screens and fill in DESIGN.md automatically.
Step 5 ā Run advanced workflows
Run stitch-loop to generate all pages in my siteConvert my Stitch screens to React componentsEnvironment Variables
Variable | Required | Description |
| Yes | Your Google Cloud Project ID |
| Alt | Alternative to GOOGLE_CLOUD_PROJECT |
Troubleshooting
"gcloud CLI not found"
Install Google Cloud SDK: https://cloud.google.com/sdk/docs/install
"Your default credentials were not found"
gcloud auth application-default login"Stitch API has not been used in project"
Enable the MCP API:
gcloud beta services mcp enable stitch.googleapis.com --project=YOUR_PROJECT_ID"Permission denied"
Ensure your account has the required role:
gcloud projects add-iam-policy-binding YOUR_PROJECT_ID \
--member="user:your-email@gmail.com" \
--role="roles/serviceusage.serviceUsageConsumer"How It Works
On startup, the server verifies gcloud authentication
For each MCP tool call:
Gets fresh OAuth token via
gcloud auth application-default print-access-tokenCalls
https://stitch.googleapis.com/mcpwith proper headersReturns result to MCP client
Related
Google Stitch - Official Stitch web app
Stitch MCP Docs - Official documentation
MCP Protocol - Model Context Protocol spec
KeepOnFirst Agentic Workflow - Workflow starter using this package
License
MIT Ā© KeepOnFirst
This server cannot be installed
Maintenance
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
- Alicense-qualityDmaintenanceAn automated MCP server for Google Stitch that enables AI-driven UI design generation, accessibility audits, and design system management. It streamlines workflows for creating responsive screens, extracting design tokens, and maintaining visual consistency across professional web projects.Last updated13431Apache 2.0
- Alicense-qualityCmaintenanceA universal MCP server for Google Stitch that enables AI-powered UI/UX design generation by extracting design context and metadata from existing screens. It allows users to fetch screen code and images to create consistent, styled UI components across multiple projects.Last updated686119Apache 2.0
- Flicense-qualityDmaintenanceAn MCP server that exposes Google Stitch's AI-powered UI design capabilities as local tools. It enables project management, screen generation/editing, and design system operations by forwarding requests to Google's Stitch API.Last updated1
- AlicenseAqualityDmaintenanceAn intelligent MCP server for Google Stitch that generates production-ready UI from text prompts, with auto-orchestration of design systems, WCAG accessibility, responsive breakpoints, and framework conversion (React, Vue, Svelte).Last updated17427MIT
Related MCP Connectors
MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration
Secure, user-owned long-term memory for AI agents over OAuth-protected remote MCP. Save, search, recall, update, and govern preferences, project context, decisions, and task state across ChatGPT, Claude, Copilot, IDEs, and CLIs.
UI design from prompts, screenshots, and URLs for AI coding agents and theme tokens.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/keeponfirst/kof-stitch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server