Command Palette

Search for a command to run...

UnylyUnyly
Browse all

StitchMCP

FreeNot checked

Local MCP server that wraps Google Stitch APIs into callable tools via stdio. Forwards requests to Stitch’s backend, enabling AI-driven UI generation inside MCP

GitHubEmbed

About

Local MCP server that wraps Google Stitch APIs into callable tools via stdio. Forwards requests to Stitch’s backend, enabling AI-driven UI generation inside MCP clients.

README

An MCP (Model Context Protocol) server that exposes Google Stitch capabilities as local tools by forwarding requests to the remote Stitch MCP endpoint.

What this does

This server:

  • Runs a local MCP tool server (stdio) using mcp.server.fastmcp.FastMCP
  • Forwards tool calls to https://stitch.googleapis.com/mcp
  • Requires a Stitch API key provided via the STITCH_API_KEY environment variable

Requirements

  • Python 3.11+
  • A Stitch API key (STITCH_API_KEY)

Installation

Create and activate a virtual environment, then install the package:

python -m venv .venv
source .venv/bin/activate
pip install -e .

Configuration

The server loads environment variables from a local .env file (via python-dotenv) if present.

Create a .env file:

STITCH_API_KEY=your_api_key_here

Run the server

You can run it via the installed script:

stitch-mcp

Or directly:

python server.py

In your MCP client, register a stdio server that runs stitch-mcp (or python server.py) and ensure STITCH_API_KEY is available in that process environment.

Available tools

Project management:

  • list_projects(filter: Optional[str] = None)
  • create_project(title: str)
  • get_project(name: str)

Screen management:

  • list_screens(projectId: str)
  • get_screen(name: str, projectId: str, screenId: str)

AI generation:

  • generate_screen_from_text(projectId: str, prompt: str, deviceType: str = "MOBILE", modelId: str = "GEMINI_3_FLASH")
  • edit_screens(projectId: str, selectedScreenIds: list[str], prompt: str, deviceType: str = "DEVICE_TYPE_UNSPECIFIED", modelId: str = "GEMINI_3_FLASH")
  • generate_variants(projectId: str, selectedScreenIds: list[str], prompt: str, variantCount: int = 3, creativeRange: str = "EXPLORE", aspects: Optional[list[str]] = None, deviceType: str = "DEVICE_TYPE_UNSPECIFIED", modelId: str = "GEMINI_3_FLASH")

Design systems:

  • list_design_systems(projectId: Optional[str] = None)
  • create_design_system(...)
  • update_design_system(...)
  • apply_design_system(projectId: str, assetId: str, screen_instance_ids: list[str], screen_source_names: list[str])

Notes and troubleshooting

  • If you see STITCH_API_KEY environment variable not set, verify your .env/environment and restart the MCP client process.
  • Some generation operations can take a few minutes. If a request times out, wait and call get_screen later (the server returns a timeout message in this case).

Development

agent.py is a small helper script for manually exercising the tools without an MCP client. Update the placeholder IDs and run:

python agent.py

Contribution

  • If you have any suggestions to this Project or about the Script, feel free to inform me. And if you liked, you are free to use it for yourself.(P.S. Star it too!! 😬 )

  • Your Contributions are much welcomed here!

    Fork the project

    Compile your work

    Call in for a Pull Request

Credits: Samuel Jayasingh

Last Edited on: 16/04/2026

from github.com/samueljayasingh/stitchMCP

Install StitchMCP in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install stitchmcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add stitchmcp -- uvx --from git+https://github.com/samueljayasingh/stitchMCP stitch-mcp

Step-by-step: how to install StitchMCP

FAQ

Is StitchMCP MCP free?

Yes, StitchMCP MCP is free — one-click install via Unyly at no cost.

Does StitchMCP need an API key?

No, StitchMCP runs without API keys or environment variables.

Is StitchMCP hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install StitchMCP in Claude Desktop, Claude Code or Cursor?

Open StitchMCP on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

LibreOffice Tools

Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a

passerbyflutterby passerbyflutter

Figma

Extract design specs and assets

Figmaby Figma

dannote/figma-use

Figma control: create shapes, text and components, and set styles, auto-layout, variables and exports.

dannoteby dannote

Logo.dev

Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content

NOVA-3951by NOVA-3951

Design Inspiration Server

Searches top design platforms like Dribbble and Behance to provide UI inspiration, color palettes, and layout patterns via the Serper API. It allows users to re

YonasValentinby YonasValentin

PIX4Dmatic

Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem

jangjo123by jangjo123

mcp-dockmaster

An Open-Sourced UI to install and manage MCP servers for Windows, Linux and macOS.

by Community

ariekogan/ateam-mcp

Build, validate and deploy multi-agent AI solutions on the ADAS platform: design skills with tools and manage the solution lifecycle.

ariekoganby ariekogan

thinkchainai/mcpbundles

Create custom tool bundles, connect providers with OAuth or API keys, and use one MCP server across many integrations, with a UI for bundles and credentials.

thinkchainaiby thinkchainai

jau123/MeiGen-AI-Design-MCP

Image generation and editing with a curated prompt library, prompt enhancement and routing across local ComfyUI, MeiGen Cloud and OpenAI-compatible APIs.

jau123by jau123

Compare StitchMCP with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All design MCPs