Stitch MCP Server logo

Stitch MCP Server

Generate, edit, preview, and export HTML interfaces from natural-language prompts through Google Stitch.

Install Stitch MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "stitch-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "stitch-mcp-server@latest"
      ],
      "env": {
        "STITCH_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 9 tools correctly (10d ago).

Overview

stitch-mcp-server connects MCP-compatible coding assistants to Google's Stitch UI Generation API through the Stitch SDK. It supports project management, prompt-based screen generation, natural-language edits, design variants, HTML retrieval, screenshot previews, and local file scaffolding. Use it when an agent needs to turn interface descriptions into editable web UI artifacts inside a development workspace. The server runs with Node.js and authenticates requests with a Stitch API key.

Use cases

  • Generate landing pages from natural-language requirements
  • Create dashboard and login screen prototypes
  • Iterate on existing UI designs with prompts
  • Compare alternative color schemes and layouts
  • Export generated HTML into project files

Key features

  • Prompt-based HTML screen generation
  • Natural-language screen editing
  • Design variant generation
  • HTML and screenshot retrieval
  • Local project file scaffolding
  • Project and screen MCP resources

Tools9

What Stitch MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

What it can do

From the 9 tools this server returned when we ran it.

Makes network requests · 3Read-only tools · 9
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age226 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · stitch-mcp-server@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads934Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed9Callable tools this server registers over MCP.

How Stitch MCP Server works

What stitch-mcp-server does

stitch-mcp-server exposes Google's Stitch UI generation capabilities to MCP clients such as Claude Desktop, Cursor, and Cline in VS Code. An AI assistant can create and manage Stitch projects, describe a screen in natural language, revise an existing design, and request alternative designs. Generated screens can be inspected as HTML or previewed through a screenshot URL.

The server also supports moving generated output into a local project. Its scaffolding operation writes HTML to project files, making it useful for prototyping pages or components from an assistant-driven workflow. A combined generation-and-fetch operation reduces the number of calls needed when the immediate goal is obtaining the generated source.

How it works

The server communicates with the Stitch UI Generation API using the Google Stitch SDK and exposes the operations through MCP. Typical workflows begin by creating or selecting a project, then generating a screen from a description. Subsequent calls can edit that screen, create design alternatives, retrieve its HTML, or obtain a screenshot URL.

Two MCP resources provide project context: stitch://projects lists projects, while stitch://projects/{id}/screens lists the screens associated with a project. The create_web_app prompt provides a guided workflow for taking a web app idea through generation and file scaffolding.

Setup and configuration

Node.js 18 or newer and a Stitch API key are required. The key is supplied through the STITCH_API_KEY environment variable. Google Stitch provides the key after signing in at stitch.google.com.

The interactive setup command is:

Terminal
npx stitch-mcp-server setup

The setup wizard asks which supported AI tools to configure, collects the API key, and updates their MCP configuration. For manual setup, register the server with the npx command and pass -y stitch-mcp-server@latest as its argument. Add STITCH_API_KEY to the server's environment configuration, then restart the client.

For local development, clone the repository, install dependencies, build the TypeScript project, and start it with the key in the environment:

Terminal
npm install
npm run build
STITCH_API_KEY=your-key npm start

Tools and capabilities

The MCP tool set includes:

  • create_project: creates a Stitch project.
  • list_projects: returns the user's projects.
  • generate_screen: creates a UI screen from a description.
  • edit_screen: changes an existing screen using a prompt.
  • generate_variants: produces alternative designs.
  • get_screen_code: retrieves a screen's HTML source.
  • get_screen_image: returns a screenshot URL.
  • generate_and_fetch_code: generates a screen and fetches its code in one operation.
  • scaffold_project_files: writes generated HTML into local files.

Inputs are checked with Zod schemas. File writes include path-traversal protection so output cannot be written outside the workspace. API key files created by the setup flow use restricted permissions, and HTTP responses receive validation and error handling.

Limitations and notes

The server depends on access to Google's Stitch UI Generation API, so a valid Stitch API key is needed for operation. Generated output is HTML, and the local export workflow writes that HTML into project files; additional application logic or framework conversion is outside the listed capabilities. The package uses a standard MCP configuration with npx, and the documented runtime requirement is Node.js 18 or newer.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Stitch MCP Server

stitch-mcp-server is an MCP server that connects AI coding assistants to Google's Stitch UI Generation API through the Stitch SDK. Its tools create and list projects, generate and edit screens, produce variants, retrieve HTML or screenshots, combine generation with code fetching, and save HTML into local project files.

Run `npx stitch-mcp-server setup` to use the interactive installer. It asks which AI clients to configure, requests the Stitch API key, and updates MCP configuration files. For manual installation, register `npx` with `stitch-mcp-server@latest` and set `STITCH_API_KEY` in the server environment.

Yes, stitch-mcp-server works with Cursor through a workspace `.cursor/mcp.json` configuration. Register the server with `npx`, pass `-y stitch-mcp-server@latest`, add the `STITCH_API_KEY` environment variable, and restart Cursor after saving the configuration.

It requires a Stitch API key supplied through `STITCH_API_KEY`. The key is obtained from stitch.google.com after signing in with Google, then added to the MCP server environment or entered during the setup wizard.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStitch MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stitch-mcp-server?style=directory)](https://allmcps.com/mcp/stitch-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/stitch-mcp-server"><img src="https://allmcps.com/api/badge/stitch-mcp-server?style=directory" alt="Stitch MCP Server on AllMCPs" /></a>