loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

stitch-sdk

MCP Tool

google-labs-code/stitch-sdk

Generate UI screens from text prompts and extract their HTML and screenshots programmatically.

Install

$ npx loaditout add google-labs-code/stitch-sdk

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "stitch-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "stitch-sdk"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

@google/stitch-sdk

[](https://www.npmjs.com/package/@google/stitch-sdk)

Generate UI screens from text prompts and extract their HTML and screenshots programmatically.

Quick Start

Set your API key and generate a screen:

import { stitch } from "@google/stitch-sdk";

// STITCH_API_KEY must be set in the environment
const project = stitch.project("your-project-id");
const screen = await project.generate("A login page with email and password fields");
const html = await screen.getHtml();
const imageUrl = await screen.getImage();

html is a download URL for the screen's HTML. imageUrl is a download URL for the screenshot.

Need to create a project first? Use the tool client:

const result = await stitch.callTool("create_project", { title: "My App" });
Install
npm install @google/stitch-sdk

To use stitchTools() with the Vercel AI SDK, install ai as well:

npm install @google/stitch-sdk ai
Working with Projects and Screens
List existing projects
import { stitch } from "@google/stitch-sdk";

const projects = await stitch.projects();
for (const project of projects) {
  console.log(project.id, project.projectId);
  const screens = await project.screens();
  console.log(`  ${screens.length} screens`);
}
Reference a project by ID

If you already have a project ID, reference it directly:

const project = stitch.project("4044680601076201931");
// Call methods on it — each method fetches data as needed
const screens = await project.screens();
Edit a screen
const screen = await project.generate("A dashboard with charts");
const edited = await screen.edit("Make the background dark and add a sidebar");
const editedHtml = await edited.getHtml();
Generate variants
const variants = await screen.variants("Try different color schemes", {
  variantCount: 3,
  creativeRange: 

Tags

stitchmcpuigenerative-aigoogle

Reviews

Loading reviews...

Quality Signals

1.5k
Stars
0
Installs
Last updated10 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcenpm
Last commit4/6/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/google-labs-code/stitch-sdk)](https://loaditout.ai/skills/google-labs-code/stitch-sdk)