stitch-bridge
Provides tools to create, edit, and manage UI designs through Google Stitch, generating HTML and screenshots for UI prototyping.
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., "@stitch-bridgeGenerate a mobile login screen with email and Google sign-in"
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.
stitch-bridge
MCP server that gives AI coding agents the ability to design UIs through Google Stitch.
Your agent describes what it wants. Stitch generates production-ready HTML. stitch-bridge handles everything in between.
How it works
Your AI Agent <--> stitch-bridge (MCP) <--> Google Stitch SDK --> HTML / Screenshotsstitch-bridge runs as a local Model Context Protocol server over stdio. Any MCP-compatible client (Claude Code, Cursor, Windsurf, etc.) can connect to it and use 9 tools to create, edit, and manage UI designs, all through natural language prompts.
The Stitch SDK handles the actual generation using Gemini models. stitch-bridge fetches the results (HTML source, base64 screenshots) and returns them directly to the agent, so it can inspect, iterate, or save the output without leaving its workflow.
Related MCP server: Stitch-MCP
Quick start
1. Get a Stitch API key
Sign up at stitch.google.com and grab your API key.
2. Add to your MCP client
Add to your MCP config (e.g. .mcp.json, claude_desktop_config.json, or your editor's MCP settings):
{
"mcpServers": {
"stitch-bridge": {
"command": "npx",
"args": ["-y", "stitch-bridge"],
"env": {
"STITCH_API_KEY": "your-api-key"
}
}
}
}Or install globally:
npm install -g stitch-bridgeThen configure with command: "stitch-bridge" instead of using npx.
3. Use it
Ask your agent to design something:
"Create a project and generate a mobile login screen with email and Google sign-in"
The agent will call create_project, then generate_screen, and return the full HTML.
Tools
Tool | Description | Required params |
| List all accessible projects | - |
| Create a new project | - |
| Generate UI from a text prompt |
|
| Edit an existing screen |
|
| Create 1-5 design alternatives |
|
| List screens in a project |
|
| Get full HTML of a screen |
|
| Get base64 screenshot |
|
| Assemble multi-page site from screens |
|
Options
Device types: MOBILE, DESKTOP, TABLET, AGNOSTIC
Models: GEMINI_3_PRO, GEMINI_3_FLASH (default)
Both are optional parameters on generate_screen, edit_screen, and generate_variants.
Output
Every tool returns JSON. The key outputs:
Generated screens return the full HTML source inline:
{
"projectId": "proj-abc",
"screenId": "scr-123",
"html": "<!DOCTYPE html><html>..."
}Screenshots return base64-encoded images:
{
"screenId": "scr-123",
"base64": "iVBORw0KGgo...",
"mimeType": "image/png"
}Multi-page sites return HTML per route:
{
"projectId": "proj-abc",
"pages": [
{ "route": "/", "screenId": "scr-1", "html": "..." },
{ "route": "/about", "screenId": "scr-2", "html": "..." }
]
}Configuration
Environment variable | Description |
| Stitch API key (recommended) |
| Alternative: OAuth access token |
One of the two is required.
Development
npm install
npm run build # Compile TypeScript
npm run dev # Watch mode
npm test # Run tests
npm start # Run the MCP serverRequires Node.js >= 18.
License
MIT
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-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
- Alicense-qualityBmaintenanceAn MCP server that turns natural-language descriptions into interactive HTML/JS UI components, leveraging OpenGenerativeUI and AG-UI protocol.Last updated9MIT
- Alicense-qualityAmaintenanceMCP server that enables AI coding agents to read and write to a local-first HTML/CSS design canvas, bridging visual design and code generation.Last updatedMIT
Related MCP Connectors
MCP server for Google Veo AI video generation
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for generating rough-draft project plans from natural-language prompts.
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/jlhernando/stitch-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server