Claude Code is excellent at logic, structure, and correctness. It's only average at guessing what a button, a spacing scale, or a color palette should look like without a reference. Google Stitch is Google Labs' AI tool that generates full UI screens (layouts, colors, typography, components) from a plain-English description or a reference image.
The whole trick is to design in Stitch first, then give Claude Code the real design to build from, instead of a paragraph describing what you want. A design file in your project beats a paragraph every time.
There are two paths. Most people should start with the first one.
Export your Stitch design as a DESIGN.md file and drop it in your project. Claude reads it on its own. No Google Cloud, no terminal.
Connect Stitch to Claude Code over MCP so it pulls your screens directly, each mapped to a route. More setup; needs a Google Cloud sign-in.
Best for a real multi-screen app.This is the part that changes everything. Instead of Claude guessing what the UI should be, you give it the real design as a file. DESIGN.md is a plain-markdown document (an open format introduced by Google Stitch) that lists your exact colors, fonts, spacing, and components. Claude reads it on its own and builds every screen from those exact values instead of inventing its own.
A design file in your project root beats a paragraph describing what you want. Here is the whole flow:
DESIGN.md at the top level of your Claude Code project. Keeping it at the root means Claude finds it no matter which subfolder it is working in.The advanced path: Claude Code calls Stitch directly and pulls each screen on demand. It talks to Google's real API as you, so it needs the Google Cloud CLI, a project with the Stitch API enabled, and application-default credentials.
console.cloud.google.com, sign in, click the project menu at the top → New Project → name it "Stitch" → Create, then copy the Project ID it gives you (e.g. stitch-471203). If it offers a "$300 free trial / add a card," you can ignore that. Stitch doesn't need billing.
On a healthy connection the real tool set shows up:
list_projectsget_projectcreate_projectlist_screensget_screengenerate_screen_from_textfetch_screen_codefetch_screen_imagecreate_design_systemapply_design_systemupload_design_mdRestart Claude Code after adding the config. On startup the server should log Auth verified and Server ready. If it logs Authentication failed, re-run gcloud auth application-default login.
| Say this | What happens |
|---|---|
| "List my Stitch projects" | Confirms the connection and shows the project IDs to reference. |
| "Pull the design system from the Home screen in [project]" | Claude fetches the real colors, fonts, and layout from that screen, not a guess. |
| "Build the Settings page in Next.js, matching that design" | It implements the page from the extracted tokens, so it matches the rest of the app. |
Here's what nobody warns you about: Stitch gives you static screens. They look great, but nothing works yet: no animations, no mobile layout, buttons that go nowhere. That's normal. It's a first draft, not a finished app.
Finish it in Claude Code one instruction at a time, not one giant prompt:
| Enable the API, not just auth | Logging in with gcloud is not enough. You also need gcloud services enable stitch.googleapis.com on the active project, or the server boots but every call errors. |
| Auth is Google Cloud, not just an API key | The community bridge signs requests with your gcloud application-default token (Bearer + X-Goog-User-Project), so you need the CLI installed and application-default login done. |
| Billing is optional | Stitch is free. A Google Cloud project without billing works fine (tested). No card required for either path. |
| Not an official Google↔Claude integration | The MCP bridge is a community package (MIT). It works against a real Google endpoint but isn't supported by Google or Anthropic, so expect occasional breakage if the API changes. Google's own codelab documents the flow for Antigravity. |
All trademarks belong to their owners. Easy Hive is not affiliated with or endorsed by them. This site is not part of Facebook, Instagram or Meta Platforms, Inc., and is not endorsed by Meta. Savings and results shown are examples, not guarantees; yours will vary. Educational content only, not legal, tax or financial advice. Full disclaimers.