stitch-mcp
Go MCP server for Google Stitch with resilient screen generation and automatic gcloud authentication
Install / Use
claude mcp add obinnaokechukwu -- npx -y github:obinnaokechukwu/stitch-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of stitch-mcp
stitch-mcp scores 71/100 on our quality scale, 2322nd of 2,607 Automation skills we index.
Its MCP Server is 2.8 KB long, well organised into 9 sections with 4 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 8 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-09-26 found the source still online.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 86/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-26. Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
stitch-mcp compared with similar skills
All 4 of these similar skills score higher than stitch-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| stitch-mcp (this skill)by obinnaokechukwu | 71 | 3 | 8mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 86.3k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.1k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.6k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install stitch-mcp?
- Run
claude mcp add obinnaokechukwu -- npx -y github:obinnaokechukwu/stitch-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does stitch-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is stitch-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 86/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is stitch-mcp still maintained?
- The repository was last updated about 8 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubstitch-mcp
A Go MCP server that proxies Google Stitch API calls with resilient screen generation. It handles authentication, token refresh, and automatic recovery from connection drops during long-running screen generation requests.
Features
- Dynamic tool discovery — Fetches available tools from the Stitch API at startup
- Resilient screen generation — Automatically recovers from TCP connection drops (common during 2-10 min generation requests) by polling for new screens
- Automatic authentication — Uses gcloud Application Default Credentials with background token refresh and 401 retry
- Generation tracking — Virtual tools (
generation_status,list_generations) provide visibility into in-flight work - STDIO transport — Works with any MCP client (Claude Code, Claude Desktop, etc.)
How It Works
Screen generation (generate_screen_from_text) takes 2-10 minutes and the Stitch API frequently drops the TCP connection after ~60 seconds. The proxy handles this transparently:
- Snapshot existing screens via
list_screens - Fire the generation request (may succeed directly or connection may drop)
- Poll
list_screenson connection drop until a new screen appears - Return the new screen details to the client as if nothing happened
Prerequisites
- Go 1.23+
- gcloud CLI authenticated:
gcloud auth application-default login
Installation
go install github.com/obinnaokechukwu/stitch-mcp@latest
Or build from source:
git clone https://github.com/obinnaokechukwu/stitch-mcp.git
cd stitch-mcp
go build -o stitch-mcp .
Configuration
| Environment Variable | Description | Default |
|---|---|---|
| STITCH_API_KEY | API key (skips OAuth if set) | — |
| STITCH_HOST | Stitch API endpoint | https://stitch.googleapis.com/mcp |
| STITCH_PROJECT_ID | GCP project for billing | Auto-detected from gcloud |
| STITCH_DEBUG | Enable debug logging (1) | 0 |
Usage with Claude Code
Add to your MCP settings (~/.claude/settings.json):
{
"mcpServers": {
"stitch": {
"command": "stitch-mcp",
"env": {
"STITCH_DEBUG": "1"
}
}
}
}
Available Tools
From Stitch API (discovered dynamically):
create_project— Create a new Stitch projectlist_projects— List accessible projectsget_project— Get project detailslist_screens— List screens in a projectget_screen— Get screen detailsgenerate_screen_from_text— Generate a UI screen from a text prompt (resilient)
Virtual tools (proxy-only):
generation_status— Check status of a screen generation by IDlist_generations— List all in-flight and recent generations
License
Apache 2.0 — see LICENSE
Related Skills
Agent-Reach
86.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.6k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
