Stitch

v1.0.0Developer Toolsstable

The Stitch extension for Gemini CLI enables you to interact with the Stitch MCP server using natural language commands.

gemini-cligemini-cli-extensionsgenaigooglestitch
Share:
424
Stars
0
Downloads
0
Weekly
0/5

What is Stitch?

Stitch is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to stitch extension for gemini cli enables you to interact with the stitch mcp server using natural language commands.

The Stitch extension for Gemini CLI enables you to interact with the Stitch MCP server using natural language commands.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • The Stitch extension for Gemini CLI enables you to interact

Use Cases

Interact with Stitch MCP server through Gemini CLI extensions.
Manage UI and UX tasks with natural language commands.
LicenseApache-2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx stitch

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Stitch

The Stitch extension for Gemini CLI brings Google's Stitch AI-powered UI/UX design service into your terminal through natural language commands. It allows you to list design projects, browse screens, download image and HTML assets, and generate entirely new screens or mobile app designs by describing them in plain text — all without leaving the CLI. Designers and front-end developers use it to rapidly prototype interfaces, iterate on existing Stitch projects, and generate visual assets programmatically as part of an AI-driven design workflow.

Prerequisites

  • Gemini CLI version 0.19.0 or newer installed
  • A Google account with access to Stitch (stitch.withgoogle.com)
  • Either a Stitch API key or Google Application Default Credentials (ADC) with a GCP project that has the Stitch API enabled
  • gcloud CLI installed if using the ADC authentication flow
1

Install the Stitch extension for Gemini CLI

Run the gemini extensions install command with the repository URL. The --auto-update flag keeps the extension current.

gemini extensions install https://github.com/gemini-cli-extensions/stitch --auto-update
2

Authenticate with an API key (simpler method)

Export your Stitch API key and use the provided sed command to write it into the extension's configuration file. This is the recommended approach for personal use.

export API_KEY="your-stitch-api-key-here"
sed "s/YOUR_API_KEY/$API_KEY/g" \
  ~/.gemini/extensions/Stitch/gemini-extension-apikey.json \
  > ~/.gemini/extensions/Stitch/gemini-extension.json
3

Authenticate with Application Default Credentials (team/enterprise)

If you prefer ADC, configure your GCP project, enable the Stitch API, and run gcloud auth. Replace YOUR_PROJECT_ID with your actual GCP project ID.

export PROJECT_ID="your-gcp-project-id"
gcloud config set project $PROJECT_ID
gcloud beta services mcp enable stitch.googleapis.com --project=$PROJECT_ID
gcloud auth application-default login
sed "s/YOUR_PROJECT_ID/$PROJECT_ID/g" \
  ~/.gemini/extensions/Stitch/gemini-extension-adc.json \
  > ~/.gemini/extensions/Stitch/gemini-extension.json
4

Verify the extension is active

Start Gemini CLI and invoke the extension with the /stitch prefix to confirm it is loaded and authenticated.

gemini
/stitch What Stitch projects do I have?
5

Generate a new design with a text prompt

Use a descriptive prompt to generate screens using Gemini 3 Pro or Flash as the generative backend. Stitch will return image assets and HTML for the generated screens.

Stitch Examples

Client configuration

The Stitch extension uses Gemini CLI's native extension mechanism rather than a standard MCP JSON config. Install and configure via the CLI commands shown in the steps above. For reference, the underlying config template path after installation is shown below.

# After install, config lives at:
~/.gemini/extensions/Stitch/gemini-extension.json

# Gemini CLI invocation (no separate mcpServers JSON needed):
gemini extensions install https://github.com/gemini-cli-extensions/stitch --auto-update

Prompts to try

Natural language commands to use inside Gemini CLI with the /stitch prefix.

- "/stitch What Stitch projects do I have?"
- "/stitch Tell me details about my project abc123"
- "/stitch Give me all the screens of project abc123"
- "/stitch Download the image of screen xyz789"
- "/stitch Design a mobile app for people who love skiing in the Alps, using Gemini 3 Pro"

Troubleshooting Stitch

Extension not found or '/stitch' command unrecognised

Ensure Gemini CLI is version 0.19.0 or newer ('gemini --version'). Re-run the install command and restart the CLI. The extension directory must exist at ~/.gemini/extensions/Stitch/.

Authentication fails with 'API key invalid'

Verify that gemini-extension.json was written correctly by the sed command and contains your actual key, not the placeholder 'YOUR_API_KEY'. Run 'cat ~/.gemini/extensions/Stitch/gemini-extension.json' to inspect the file.

ADC authentication returns permission denied on Stitch API

Confirm the Stitch API is enabled for your project: 'gcloud beta services list --project=$PROJECT_ID | grep stitch'. Also run 'gcloud auth application-default set-quota-project $PROJECT_ID' to associate billing with the correct project.

Frequently Asked Questions about Stitch

What is Stitch?

Stitch is a Model Context Protocol (MCP) server that stitch extension for gemini cli enables you to interact with the stitch mcp server using natural language commands. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Stitch?

Follow the installation instructions on the Stitch GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Stitch?

Stitch works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Stitch free to use?

Yes, Stitch is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "stitch": { "command": "npx", "args": ["-y", "stitch"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Stitch?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides