Stitch MCP — Get Project
Retrieves full metadata for a specific Stitch project. Useful for understanding an existing project's theme and screen list before generating additional screens.
Critical prerequisite
Only use this skill when the user explicitly mentions "Stitch".
Do NOT call this if you already have both projectId AND screenId. In that case, call stitch-mcp-get-screen directly — it's more efficient.
When to use
- User provides a Stitch project URL and you need its details
- You need to know the existing design theme before generating new consistent screens
- Verifying a project exists before proceeding
Step 1: Parse the project ID from context
The user may provide the project reference in several formats — always extract to the projects/ID format:
| Input format |
→ Argument for get_project |
3780309359108792857 (numeric) |
projects/3780309359108792857 |
projects/3780309359108792857 |
projects/3780309359108792857 (use as-is) |
https://stitch.withgoogle.com/projects/3780309359108792857 |
Extract ID → projects/3780309359108792857 |
Step 2: Call the MCP tool
{
"name": "get_project",
"arguments": {
"name": "projects/3780309359108792857"
}
}
Output schema
{
"name": "projects/3780309359108792857",
"title": "Analytics Dashboard",
"createTime": "2024-11-10T09:00:00Z",
"updateTime": "2024-11-15T10:30:00Z",
"deviceType": "DESKTOP",
"visibility": "PRIVATE",
"projectType": "TEXT_TO_UI",
"origin": "STITCH",
"metadata": {
"isRemixed": false,
"userRole": "OWNER"
},
"designTheme": {
"colorMode": "LIGHT",
"customColor": "#6366F1",
"colorVariant": "TONAL_SPOT",
"roundness": "ROUND_TWELVE",
"saturation": 3,
"spacingScale": 1,
"headlineFont": "INTER",
"bodyFont": "INTER",
"labelFont": "INTER",
"font": "INTER",
"headlineFontFamily": "Inter",
"bodyFontFamily": "Inter",
"labelFontFamily": "Inter",
"namedColors": {
"primary": "#5B5FC7",
"on_primary": "#FFFFFF",
"primary_container": "#E1DFFF",
"on_primary_container": "#414594",
"secondary": "#5C5D72",
"on_secondary": "#FFFFFF",
"tertiary": "#785572",
"on_tertiary": "#FFFFFF",
"surface": "#FBF8FF",
"on_surface": "#1B1B21",
"surface_container": "#EFEDF5",
"surface_container_low": "#F5F2FA",
"surface_container_high": "#E9E7EF",
"outline": "#777680",
"error": "#BA1A1A",
"on_error": "#FFFFFF"
},
"overridePrimaryColor": "",
"overrideSecondaryColor": "",
"overrideTertiaryColor": "",
"overrideNeutralColor": "",
"backgroundLight": "#FBF8FF",
"backgroundDark": "#131316",
"description": "Modern indigo-toned interface with clean surfaces",
"designMd": "# Design System\n\n## Color Palette\n..."
},
"screenInstances": [
{
"name": "projects/3780309359108792857/screens/88805...",
"id": "88805...",
"sourceScreen": "screens/88805...",
"type": "SCREEN_INSTANCE",
"width": 412,
"height": 892,
"x": 0,
"y": 0,
"hidden": false
},
{
"name": "projects/3780309359108792857/screens/99901...",
"id": "99901...",
"sourceScreen": "screens/99901...",
"type": "DESIGN_SYSTEM_INSTANCE",
"width": 412,
"height": 892,
"x": 500,
"y": 0,
"hidden": false,
"sourceAsset": "assets/design-system-123"
}
]
}
designMd is truncated above — in practice it's a full auto-generated design system doc (often 500+ lines). namedColors typically contains 40+ semantic tokens; only the most common are shown here.
DesignTheme field reference
| Field |
Type |
Values / Notes |
colorMode |
enum |
LIGHT, DARK |
customColor |
string |
Hex seed color (e.g. #6366F1). This is the color seed — NOT called primaryColor |
colorVariant |
enum |
MONOCHROME, NEUTRAL, TONAL_SPOT, VIBRANT, EXPRESSIVE, FIDELITY, CONTENT, RAINBOW, FRUIT_SALAD |
roundness |
enum |
ROUND_FOUR, ROUND_EIGHT, ROUND_TWELVE, ROUND_FULL |
spacingScale |
number |
0–3 (density multiplier) |
headlineFont |
enum |
68-font set: INTER, GEIST, DM_SANS, MANROPE, PLUS_JAKARTA_SANS, WORK_SANS, SPACE_GROTESK, SORA, OUTFIT, RALEWAY, QUICKSAND, MONTSERRAT, OSWALD, PLAYFAIR_DISPLAY, MERRIWEATHER, NOTO_SERIF, EB_GARAMOND, LITERATA, SOURCE_SERIF_4, SOURCE_SANS_3, NUNITO_SANS, JETBRAINS_MONO, BEBAS_NEUE, ANTON, ARCHIVO_NARROW — see stitch-ued-guide for the full 68-value list |
bodyFont |
enum |
Same 68-font set |
labelFont |
enum |
Same 68-font set |
font |
enum |
Deprecated — legacy single-font field, same enum |
namedColors |
object |
40+ semantic color tokens (primary, on_primary, surface, surface_container, outline, error, etc.) |
overridePrimaryColor |
string |
Hex override, empty string if unused |
overrideSecondaryColor |
string |
Hex override, empty string if unused |
overrideTertiaryColor |
string |
Hex override, empty string if unused |
overrideNeutralColor |
string |
Hex override, empty string if unused |
backgroundLight |
string |
Hex background for light mode |
backgroundDark |
string |
Hex background for dark mode |
description |
string |
Brief aesthetic description of the theme |
designMd |
string |
Auto-generated design system markdown — the full token spec. Can be very long |
spacing |
object |
Optional. Map of spacing token name → CSS value (e.g. {"sm": "8px"}) |
typography |
object |
Optional. Map of typography level name (e.g. h1, body) → Typography token (fontFamily, fontSize, fontWeight, letterSpacing, lineHeight, all optional strings) |
Project-level fields
| Field |
Type |
Values / Notes |
deviceType |
string |
MOBILE, DESKTOP, TABLET, AGNOSTIC, or DEVICE_TYPE_UNSPECIFIED |
visibility |
enum |
PRIVATE, PUBLIC |
projectType |
enum |
TEXT_TO_UI, PROJECT_DESIGN, etc. |
origin |
enum |
STITCH, IMPORTED_FROM_GALILEO |
metadata.isRemixed |
boolean |
Whether this project was remixed from another |
metadata.userRole |
string |
OWNER, VIEWER, etc. |
ScreenInstance fields
| Field |
Type |
Notes |
id |
string |
Numeric screen ID |
sourceScreen |
string |
Path reference to the source screen |
type |
enum |
SCREEN_INSTANCE, DESIGN_SYSTEM_INSTANCE, GROUP_INSTANCE |
width / height |
number |
Pixel dimensions |
x / y |
number |
Canvas position |
hidden |
boolean |
Whether hidden in the project |
sourceAsset |
string |
Present on DESIGN_SYSTEM_INSTANCE types — references the design system asset |
Using the theme data
Use designMd and namedColors when generating new screens — they contain the authoritative design system for this project. Pass namedColors to stitch-design-system for instant token extraction.
After getting the project
- Note the
designTheme — use it to keep new screens visually consistent
- Note the
screenInstances list — extract screenId values if you need to inspect specific screens
- Use
stitch-mcp-list-screens for a richer view of the screen list including thumbnails
1---2name: stitch-mcp-get-project3description: Retrieves metadata for a specific Stitch project — title, theme, create/update time. Use to inspect a project before generating new screens. Do NOT use this if you already have a screenId — use stitch-mcp-get-screen instead.4---56# Stitch MCP — Get Project78Retrieves full metadata for a specific Stitch project. Useful for understanding an existing project's theme and screen list before generating additional screens.910## Critical prerequisite1112**Only use this skill when the user explicitly mentions "Stitch".**1314**Do NOT call this if you already have both `projectId` AND `screenId`.** In that case, call `stitch-mcp-get-screen` directly — it's more efficient.1516## When to use1718- User provides a Stitch project URL and you need its details19- You need to know the existing design theme before generating new consistent screens20- Verifying a project exists before proceeding2122## Step 1: Parse the project ID from context2324The user may provide the project reference in several formats — always extract to the `projects/ID` format:2526| Input format | → Argument for `get_project` |27|---|---|28| `3780309359108792857` (numeric) | `projects/3780309359108792857` |29| `projects/3780309359108792857` | `projects/3780309359108792857` (use as-is) |30| `https://stitch.withgoogle.com/projects/3780309359108792857` | Extract ID → `projects/3780309359108792857` |3132## Step 2: Call the MCP tool3334```json35{36 "name": "get_project",37 "arguments": {38 "name": "projects/3780309359108792857"39 }40}41```4243## Output schema4445```json46{47 "name": "projects/3780309359108792857",48 "title": "Analytics Dashboard",49 "createTime": "2024-11-10T09:00:00Z",50 "updateTime": "2024-11-15T10:30:00Z",51 "deviceType": "DESKTOP",52 "visibility": "PRIVATE",53 "projectType": "TEXT_TO_UI",54 "origin": "STITCH",55 "metadata": {56 "isRemixed": false,57 "userRole": "OWNER"58 },59 "designTheme": {60 "colorMode": "LIGHT",61 "customColor": "#6366F1",62 "colorVariant": "TONAL_SPOT",63 "roundness": "ROUND_TWELVE",64 "saturation": 3,65 "spacingScale": 1,66 "headlineFont": "INTER",67 "bodyFont": "INTER",68 "labelFont": "INTER",69 "font": "INTER",70 "headlineFontFamily": "Inter",71 "bodyFontFamily": "Inter",72 "labelFontFamily": "Inter",73 "namedColors": {74 "primary": "#5B5FC7",75 "on_primary": "#FFFFFF",76 "primary_container": "#E1DFFF",77 "on_primary_container": "#414594",78 "secondary": "#5C5D72",79 "on_secondary": "#FFFFFF",80 "tertiary": "#785572",81 "on_tertiary": "#FFFFFF",82 "surface": "#FBF8FF",83 "on_surface": "#1B1B21",84 "surface_container": "#EFEDF5",85 "surface_container_low": "#F5F2FA",86 "surface_container_high": "#E9E7EF",87 "outline": "#777680",88 "error": "#BA1A1A",89 "on_error": "#FFFFFF"90 },91 "overridePrimaryColor": "",92 "overrideSecondaryColor": "",93 "overrideTertiaryColor": "",94 "overrideNeutralColor": "",95 "backgroundLight": "#FBF8FF",96 "backgroundDark": "#131316",97 "description": "Modern indigo-toned interface with clean surfaces",98 "designMd": "# Design System\n\n## Color Palette\n..."99 },100 "screenInstances": [101 {102 "name": "projects/3780309359108792857/screens/88805...",103 "id": "88805...",104 "sourceScreen": "screens/88805...",105 "type": "SCREEN_INSTANCE",106 "width": 412,107 "height": 892,108 "x": 0,109 "y": 0,110 "hidden": false111 },112 {113 "name": "projects/3780309359108792857/screens/99901...",114 "id": "99901...",115 "sourceScreen": "screens/99901...",116 "type": "DESIGN_SYSTEM_INSTANCE",117 "width": 412,118 "height": 892,119 "x": 500,120 "y": 0,121 "hidden": false,122 "sourceAsset": "assets/design-system-123"123 }124 ]125}126```127128> `designMd` is truncated above — in practice it's a full auto-generated design system doc (often 500+ lines). `namedColors` typically contains 40+ semantic tokens; only the most common are shown here.129130## DesignTheme field reference131132| Field | Type | Values / Notes |133|-------|------|----------------|134| `colorMode` | enum | `LIGHT`, `DARK` |135| `customColor` | string | Hex seed color (e.g. `#6366F1`). This is the color seed — NOT called `primaryColor` |136| `colorVariant` | enum | `MONOCHROME`, `NEUTRAL`, `TONAL_SPOT`, `VIBRANT`, `EXPRESSIVE`, `FIDELITY`, `CONTENT`, `RAINBOW`, `FRUIT_SALAD` |137| `roundness` | enum | `ROUND_FOUR`, `ROUND_EIGHT`, `ROUND_TWELVE`, `ROUND_FULL` |138| `spacingScale` | number | `0`–`3` (density multiplier) |139| `headlineFont` | enum | 68-font set: `INTER`, `GEIST`, `DM_SANS`, `MANROPE`, `PLUS_JAKARTA_SANS`, `WORK_SANS`, `SPACE_GROTESK`, `SORA`, `OUTFIT`, `RALEWAY`, `QUICKSAND`, `MONTSERRAT`, `OSWALD`, `PLAYFAIR_DISPLAY`, `MERRIWEATHER`, `NOTO_SERIF`, `EB_GARAMOND`, `LITERATA`, `SOURCE_SERIF_4`, `SOURCE_SANS_3`, `NUNITO_SANS`, `JETBRAINS_MONO`, `BEBAS_NEUE`, `ANTON`, `ARCHIVO_NARROW` — see `stitch-ued-guide` for the full 68-value list |140| `bodyFont` | enum | Same 68-font set |141| `labelFont` | enum | Same 68-font set |142| `font` | enum | **Deprecated** — legacy single-font field, same enum |143| `namedColors` | object | 40+ semantic color tokens (`primary`, `on_primary`, `surface`, `surface_container`, `outline`, `error`, etc.) |144| `overridePrimaryColor` | string | Hex override, empty string if unused |145| `overrideSecondaryColor` | string | Hex override, empty string if unused |146| `overrideTertiaryColor` | string | Hex override, empty string if unused |147| `overrideNeutralColor` | string | Hex override, empty string if unused |148| `backgroundLight` | string | Hex background for light mode |149| `backgroundDark` | string | Hex background for dark mode |150| `description` | string | Brief aesthetic description of the theme |151| `designMd` | string | Auto-generated design system markdown — the full token spec. Can be very long |152| `spacing` | object | Optional. Map of spacing token name → CSS value (e.g. `{"sm": "8px"}`) |153| `typography` | object | Optional. Map of typography level name (e.g. `h1`, `body`) → Typography token (`fontFamily`, `fontSize`, `fontWeight`, `letterSpacing`, `lineHeight`, all optional strings) |154155## Project-level fields156157| Field | Type | Values / Notes |158|-------|------|----------------|159| `deviceType` | string | `MOBILE`, `DESKTOP`, `TABLET`, `AGNOSTIC`, or `DEVICE_TYPE_UNSPECIFIED` |160| `visibility` | enum | `PRIVATE`, `PUBLIC` |161| `projectType` | enum | `TEXT_TO_UI`, `PROJECT_DESIGN`, etc. |162| `origin` | enum | `STITCH`, `IMPORTED_FROM_GALILEO` |163| `metadata.isRemixed` | boolean | Whether this project was remixed from another |164| `metadata.userRole` | string | `OWNER`, `VIEWER`, etc. |165166## ScreenInstance fields167168| Field | Type | Notes |169|-------|------|-------|170| `id` | string | Numeric screen ID |171| `sourceScreen` | string | Path reference to the source screen |172| `type` | enum | `SCREEN_INSTANCE`, `DESIGN_SYSTEM_INSTANCE`, `GROUP_INSTANCE` |173| `width` / `height` | number | Pixel dimensions |174| `x` / `y` | number | Canvas position |175| `hidden` | boolean | Whether hidden in the project |176| `sourceAsset` | string | Present on `DESIGN_SYSTEM_INSTANCE` types — references the design system asset |177178## Using the theme data179180Use `designMd` and `namedColors` when generating new screens — they contain the authoritative design system for this project. Pass `namedColors` to `stitch-design-system` for instant token extraction.181182## After getting the project183184- Note the `designTheme` — use it to keep new screens visually consistent185- Note the `screenInstances` list — extract screenId values if you need to inspect specific screens186- Use `stitch-mcp-list-screens` for a richer view of the screen list including thumbnails