Metabase
Search, query, and visualize Metabase data, all scoped to user permissions.
MEmetabase/metabase51k219 new stars in the last 7 days
A CLI for moving AI-generated UI designs from Google’s Stitch platform into your development workflow.
A CLI for moving AI-generated UI designs into your development workflow — preview them locally, build sites from them, and feed them to coding agents.
AI-generated designs in Google's Stitch platform live as HTML/CSS behind an API. Getting them into a local development environment — for previewing, building, or handing off to coding agents — requires fetching, serving, and structuring them. stitch-mcp handles this through a set of CLI commands that connect to Stitch.
# Set up authentication and MCP client config
npx @_davideast/stitch-mcp init
# Serve all project screens on a local dev server
npx @_davideast/stitch-mcp serve -p <project-id>
# Build an Astro site by mapping screens to routes
npx @_davideast/stitch-mcp site -p <project-id>
Add this to your MCP client config to give coding agents access to Stitch tools:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["@_davideast/stitch-mcp", "proxy"]
}
}
}
Supported clients: VS Code, Cursor, Claude Code, Gemini CLI, Codex, OpenCode.
The proxy exposes these tools alongside the upstream Stitch MCP tools. They combine multiple API calls into higher-level operations for coding agents:
build_site — Builds a site from a project by mapping screens to routes. Returns the design HTML for each page.get_screen_code — Retrieves a screen and downloads its HTML code content.get_screen_image — Retrieves a screen and downloads its screenshot image as base64.build_site input schema:
{
"projectId": "string (required)",
"routes": [
{
"screenId": "string (required)",
"route": "string (required, e.g. \"/\" or \"/about\")"
}
]
}
Example:
npx @_davideast/stitch-mcp tool build_site -d '{
"projectId": "123456",
"routes": [
{ "screenId": "abc", "route": "/" },
{ "screenId": "def", "route": "/about" }
]
}'
Use view and tool to browse your design data and understand what's available before prompting agents.
# Browse all projects
npx @_davideast/stitch-mcp view --projects
# Inspect a specific screen
npx @_davideast/stitch-mcp view --project <project-id> --screen <screen-id>
# Invoke any MCP tool from the CLI
npx @_davideast/stitch-mcp tool [toolName]
Inside the view browser: c copies the selected value, s previews HTML in your browser, o opens the project in Stitch, and q quits. Use arrow keys to navigate and Enter to drill into nested data.
Run tool without a name to list all available tools, or with -s to see a tool's schema.
Run directly with npx (no install needed):
npx @_davideast/stitch-mcp <command>
Or install globally:
npm install -g @_davideast/stitch-mcp
stitch-mcp <command>
| Command | Description |
|---|---|
| Setup | |
init | Set up auth, gcloud, and MCP client config |
doctor | Verify configuration health |
logout | Revoke credentials |
| Development | |
serve -p <id> | Preview project screens locally |
screens -p <id> | Browse screens in terminal |
view | Interactive resource browser |
| Build | |
site -p <id> | Generate Astro project from screens |
snapshot | Save screen state to file |
| Integration | |
tool [name] | Invoke MCP tools from CLI |
proxy | Run MCP proxy for agents |
Run any command with --help for full options.
Automatic (recommended): Run init and follow the wizard. It handles gcloud installation, OAuth, credentials, and project setup.
npx @_davideast/stitch-mcp init
API key: Set the STITCH_API_KEY environment variable to skip OAuth entirely.
export STITCH_API_KEY="your-api-key"
Manual (existing gcloud): If you already have gcloud configured:
gcloud auth application-default login
gcloud config set project <PROJECT_ID>
gcloud beta services mcp enable stitch.googleapis.com --project=<PROJECT_ID>
Then use the proxy with STITCH_USE_SYSTEM_GCLOUD=1:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["@_davideast/stitch-mcp", "proxy"],
"env": {
"STITCH_USE_SYSTEM_GCLOUD": "1"
}
}
}
}
| Variable | Description |
|---|---|
STITCH_API_KEY | API key for direct authentication (skips OAuth) |
STITCH_ACCESS_TOKEN | Pre-existing access token |
STITCH_USE_SYSTEM_GCLOUD | Use system gcloud config instead of isolated config |
STITCH_PROJECT_ID | Override project ID |
GOOGLE_CLOUD_PROJECT | Alternative project ID variable |
STITCH_HOST | Custom Stitch API endpoint |
Ensure you have Owner or Editor role, billing is enabled, and the Stitch API is enabled. Run doctor --verbose to diagnose.
The tool prints authentication URLs to the terminal with a 5-second timeout. Look for a URL starting with https://accounts.google.com. If using proxy with --debug, check /tmp/stitch-proxy-debug.log.
The bundled gcloud SDK maintains separate authentication from your global gcloud installation. To fully clear authentication:
npx @_davideast/stitch-mcp logout --force --clear-config
Run doctor --verbose to diagnose. Verify your project has billing and the Stitch API enabled. If issues persist, re-authenticate:
npx @_davideast/stitch-mcp logout --force
npx @_davideast/stitch-mcp init
The CLI detects WSL, SSH sessions, Docker containers, and Cloud Shell. In these environments, browser-based auth may not work automatically. Copy the OAuth URL from your terminal and open it in a browser manually.
# Install dependencies
bun install
# Run locally
bun run dev init
# Run tests
bun test
# Build
bun run build
# Verify package
bun run verify-pack
Apache 2.0 © David East
Warning
Experimental Project - This is an independent, experimental tool.
This project is:
"Stitch" and "Google Cloud" are trademarks of Google LLC.
USE AT YOUR OWN RISK.
Search, query, and visualize Metabase data, all scoped to user permissions.
MEmetabase/metabase51k219 new stars in the last 7 days
Describe a diagram in a sentence to generate architecture diagrams, select shapes to edit, and undo every change.
DADayuanJiang/next-ai-draw-io37k119 new stars in the last 7 days
Turn any GitHub repo into an interactive architecture diagram, with Mermaid source and a narrated video.
AHahmedkhaleel2004/gitdiagram19k85 new stars in the last 7 days
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
GLGLips/Figma-Context-MCP16k56 new stars in the last 7 days
A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.
GOgoogle-labs-code/stitch-skills15k2,572 new stars in the last 7 days
Read Figma designs, replace text in bulk, and propagate component overrides.
GRgrab/cursor-talk-to-figma-mcp7.1k11 new stars in the last 7 days