stitch-mcp-cli — Claude Code skill: what it does, how to install
stitch-mcp-cli brings Google Stitch UI designs into local dev workflows. Runs dev server previews, builds Astro sites, and feeds screens to coding agents via MCP.
no license 205 installs ★ 9 updated 2026-10-09
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a claude-codeWhat stitch-mcp-cli does
This skill connects Google Stitch interface designs with local codebases. Powered by the @_davideast/stitch-mcp CLI, it pulls HTML and CSS directly from project endpoints. Developers can inspect screen layouts in the terminal, spin up a local Vite server at http://localhost:5173, or scaffold a route-mapped Astro application.
For agent workflows, the package runs an MCP proxy with automated token refreshes. Agents receive high-level actions such as build_site, get_screen_code, and get_screen_image. Access requires valid credentials: you can complete the OAuth setup wizard with init, pass an existing STITCH_API_KEY, or plug in a system gcloud CLI. Without an active Google Cloud setup or API key, all screen requests will fail.
What it helps with
- spin up a local Vite preview server for Google Stitch screens
- generate a deployable Astro site by mapping screen IDs to routes
- provide screen HTML and screenshots to coding agents via an MCP proxy
- inspect Stitch project screens and metadata in the terminal
Example prompts for the agent
- Build an Astro site from Stitch project 123456 and map screen abc123 to the index route
- Start a local preview server for Stitch project 123456 on port 5173
- Retrieve the HTML code for screen abc123 from Stitch project 123456 using get_screen_code
How to install stitch-mcp-cli
1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a claude-code2Manually: put the files in place
~/.claude/skills/stitch-mcp-cli/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/stitch-mcp-cli/
1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a codex2Manually: put the files in place
.agents/skills/stitch-mcp-cli/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a cursor2Manually: put the files in place
.cursor/skills/stitch-mcp-cli/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/mcp-skills skills/stitch-mcp-cli2Manually: put the files in place
.github/skills/stitch-mcp-cli/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/stitch-mcp-cliManually: put the files in place
.devin/skills/stitch-mcp-cli/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about stitch-mcp-cli
How do I install stitch-mcp-cli in Claude Code?
Run npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a claude-code in your terminal. This saves the skill configuration under ~/.claude/skills/stitch-mcp-cli/SKILL.md.
What does stitch-mcp-cli do?
It bridges Google Stitch design output with local code. It exports HTML/CSS, generates Astro sites, runs local preview servers, and provides MCP tools for coding agents.
How do you authenticate stitch-mcp-cli with Stitch?
Run npx @_davideast/stitch-mcp init to start the interactive OAuth wizard. You can also provide a STITCH_API_KEY environment variable or rely on an existing system gcloud configuration.