# stitch-mcp-cli

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 205 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/stitch-mcp-cli/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/stitch-mcp-cli

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/stitch-mcp-cli/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/stitch-mcp-cli/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/stitch-mcp-cli/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/stitch-mcp-cli/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/stitch-mcp-cli
```

2. **Manually: put the files in place**
- File: `.github/skills/stitch-mcp-cli/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/stitch-mcp-cli
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/stitch-mcp-cli/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill stitch-mcp-cli -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/stitch-mcp-cli/SKILL.md

## When to use it
- 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
- 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

## Similar
- [stitch-ui-design](https://affpapa.org/en/nevibecode/skills/stitch-ui-design.md) — skill · 2 installs
- [google-stitch-skills](https://affpapa.org/en/nevibecode/skills/google-stitch-skills.md) — skill · 207 installs
- [stitch-utilities](https://affpapa.org/en/nevibecode/plugins/stitch-utilities.md) — plugin · ★ 11481 repo stars
- [taste-design-stitch](https://affpapa.org/en/nevibecode/skills/taste-design-stitch.md) — skill · 211 installs
- [stitch::react-components](https://affpapa.org/en/nevibecode/skills/stitchreact-components.md) — skill · 50400 installs
- [presentation](https://affpapa.org/en/nevibecode/skills/presentation.md) — skill · 4400 installs

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
