●SONNET 4.5 — Sonnet 4.5 was retired from the Claude API on 11/30. Calls now return an error. Move to Sonnet 5.5●PROJECTS — The Enterprise Analytics API now reports daily usage for the new projects experience (beta)●OPUS 4.5 — claude-opus-4-5 retires on 2027/1/22, 52 days from now. The replacement is claude-opus-5-5●LANGUAGE — Some users say Claude switches to another language mid-session while they write in English●NEW — New: Weekly usage looks like it jumped right after a plan upgrade? Check this first●COWORK — Handing Cowork a folder for the first time? Start with a task that only reads files●SONNET 4.5 — Sonnet 4.5 was retired from the Claude API on 11/30. Calls now return an error. Move to Sonnet 5.5●PROJECTS — The Enterprise Analytics API now reports daily usage for the new projects experience (beta)●OPUS 4.5 — claude-opus-4-5 retires on 2027/1/22, 52 days from now. The replacement is claude-opus-5-5●LANGUAGE — Some users say Claude switches to another language mid-session while they write in English●NEW — New: Weekly usage looks like it jumped right after a plan upgrade? Check this first●COWORK — Handing Cowork a folder for the first time? Start with a task that only reads files
Claude Code × Figma MCP — Choosing a Connection, Then Keeping Generated UI From Drifting
How to connect Figma MCP to Claude Code (remote vs desktop), a troubleshooting table for when it won't connect, the Figma-side prep that decides output quality, and how I split Design.md from project rules.
The first time I pasted a Figma frame link into Claude Code and watched working components appear, I stayed up far too late just looking at them. The thrill was real. So was the lesson of the following weeks: "the first generation runs" and "it survives real maintenance" are two very different things.
I rebuild the admin screens for my wallpaper and healing-sound apps on my own, and the time I spend bouncing between design and implementation is, quite literally, the ceiling on how fast I ship. That is why I've leaned on Figma MCP as hard as I have.
The thing I'd most like you to take away is this: output quality depends less on the prompt you give Claude Code and more on how you connect, how you prepare the Figma file, and how much you hand over at once. I'll go through those in that order, with the mistakes I made and the lines I now hold. Everything about the tooling below was checked against Figma's official documentation and the official figma/mcp-server-guide repository as of November 2026.
Decide First: Remote or Desktop Server
Figma MCP comes in two forms: a remote server hosted by Figma, and a desktop server that runs inside the Figma desktop app. Figma strongly recommends the remote one. For a long time I used only the desktop server, and more than once I came back to a stalled task because the app had been closed overnight.
Aspect
Remote server
Desktop server
Endpoint
mcp.figma.com/mcp (HTTPS, OAuth)
127.0.0.1:3845/mcp (local HTTP)
Requires
A Figma account
Figma desktop app running, server enabled in Dev Mode
Seat
Limits vary by plan and seat (table below)
A Dev or Full seat on a paid plan
How you point at a design
A frame or layer link (with node-id)
A link, or whatever is selected in Figma
Writing to the canvas
Yes (use_figma and others, beta)
No
Best for
Everyday implementation, unattended runs
Interactive back-and-forth on a live selection
My rule of thumb: when in doubt, use remote; reach for desktop only when you want to hand over your current selection on the spot. Registering both under different names works fine.
Registering it in Claude Code
The official repository now recommends installing the Figma plugin, which bundles the MCP settings with a set of skills:
# Recommended: install the Figma plugin from Anthropic's official marketplaceclaude plugin install figma@claude-plugins-official
If you prefer to register it by hand, add the remote server over HTTP, then open /mcp inside Claude Code, pick Figma, and finish the sign-in in your browser:
# Remote server (recommended)claude mcp add --transport http figma https://mcp.figma.com/mcp# Desktop server (enable it in the Figma desktop app first)claude mcp add --transport http figma-desktop http://127.0.0.1:3845/mcp# Check what's registeredclaude mcp listclaude mcp get figma-desktop
To start the desktop server, open a design file in the Figma desktop app, make sure nothing is selected, switch to Dev Mode (Shift + D), and click "Enable desktop MCP server" in the MCP server section of the right sidebar. A confirmation appears at the bottom of the screen once it's running. The option doesn't exist in Figma in the browser.
Usage limits by plan and seat
I tripped over this one. Read tools are rate-limited, and on view-type seats you run out after a handful of calls a month.
Plan / seat
Limit on read tools (official, November 2026)
Starter plan, or View / Collab seats on paid plans
Up to 6 tool calls per month
Dev or Full seat on Professional / Organization / Enterprise
Per-minute limits, matching Tier 1 of the Figma REST API
Some write tools are exempt, and Figma notes it may change these limits, so it's worth a quick look at the official page before you build anything that depends on them.
When It Won't Connect or Returns Nothing
This is the order I check things in. Working top to bottom usually finds the cause within ten minutes.
Symptom
Likely cause
How to check
Fix
Figma doesn't appear in the tool list
Not registered, or not authenticated
claude mcp list and the /mcp screen
Re-run the sign-in from /mcp for the remote server
Only figma-desktop fails
Desktop app closed, or server disabled
The MCP server section in the Dev Mode sidebar
Click "Enable desktop MCP server" again, then reconnect from Claude Code
A reply saying it can't tell which node you mean
The link has no node-id
Look for node-id= in the URL
Select the frame and use "Copy link to selection"
Stops working after a few uses
Monthly cap on Starter or View / Collab seats
The whoami tool (remote) shows your plan and seat
Use a Dev or Full seat, or design the flow to make fewer calls
Output is cut off or very slow
Selection is too large
Split the screen in half and compare
Map it with get_metadata, then call get_design_context only on the nodes you need
Colors come back as a mix of hex and utility classes
No Figma variables, or the token tool wasn't called
Does get_variable_defs return variable names?
Register Variables and ask explicitly for the variable names and values in the frame
What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.
WHAT YOU'LL LEARN
✦Compare the remote and desktop servers, plus the per-plan and per-seat usage limits, and decide which one fits your setup
✦Know what get_design_context, get_metadata, and get_variable_defs each return, so you can diagnose truncated output and mixed hex/utility colors yourself
✦Combine Design.md with project rules to ship design updates as scoped diffs (2–3 hours down to 15–30 minutes in my own solo work)
Secure payment via Stripe · Cancel anytime
✦
Unlock This Article
Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.
I used to picture Figma MCP handing Claude Code a big JSON dump of the layer tree for it to interpret. That isn't really how the core of it works.
The tools that matter for design-to-code
Tool
Returns
When to use it
get_design_context
Code representing the selection (React + Tailwind by default)
The main tool; the rest support it
get_metadata
A lightweight XML outline: layer IDs, names, types, positions, sizes
A map for narrowing down large designs
get_variable_defs
Variables and styles used in the selection (color, spacing, type)
When you want token names in the generated code
get_screenshot
A screenshot of the selection
Visual comparison; it costs more tokens
get_code_connect_map
Mappings between Figma components and your code components
When you want existing components reused
get_motion_context
Keyframe animation data and code snippets
Bringing animation built in Figma into code
There is also one MCP prompt, create_design_system_rules, which drafts project rules for you.
Three misconceptions worth correcting
"The generated code is the finished product." Figma's own suggested rules say to treat the get_design_context output as a representation of design and behavior, not as final code style. React + Tailwind is only the starting point; ask for Vue, SwiftUI, plain HTML and CSS, or "use the components in src/components/ui," and it gets translated accordingly.
"It reads prototype transitions and hover behavior too." In the official tool list as of November 2026, the closest thing I could find is get_motion_context for keyframe animation. I couldn't confirm anything that reads prototype transition settings, so I write hover and fade values into Design.md and Figma annotations instead (more below).
"Hand it the whole file and you get every screen in one go." Figma's guidance says large selections slow the tools down and can cause errors or incomplete responses. In my own work, one screen at a time (roughly 20–40 components) settled initial generation at 20–30 seconds; ten screens at once drifted in naming halfway through and cost me over an hour of cleanup.
What it can't read, or what you fill in yourself
Complex masks and blend modes that CSS can't express cleanly — I adjust those by hand
Images, which come through download_assets (remote only) or your own exports, not get_design_context
Data that third-party plugins keep to themselves
The intent behind ideas made outside Figma, such as in Google Stitch — anything structural goes into Design.md
Output Quality Is Decided in Figma
Once the connection and the tools were sorted, the place I invested the most time wasn't the prompt. It was preparing the Figma file. The same screen produced wildly different code depending on how its layers were built, and realizing that stopped me in my tracks for a while.
Fifteen to twenty minutes of prep before handing it over is where the leverage is.
Name layers after their role
Hand over Frame 123 or Group 45 and the component names in the output mean nothing either. Name them HeroSection, PricingCard, NavigationBar, and the component and class names become readable on their own. Layer names are the shortest documentation that reaches Claude Code.
Promote repeating elements to components
Buttons, cards, headers — anything that appears twice or more becomes a Figma component, and Claude Code splits it out as its own component. When I skipped this, identical-looking elements came back as separate, duplicated markup. Link them to your code with Code Connect as well, and the output reuses your real components instead of guessing.
Replace absolute positioning with auto layout
This made the biggest difference of all.
In Figma
Generated code
When the viewport changes
Absolute (fixed x, y)
position: absolute, fixed px
Breaks; needs manual fixes
Auto layout
Flexbox / CSS Grid
Adapts as-is
Before generating, I resize the frame in Figma and check that it stretches the way I expect. A screen that breaks here will break in code too.
Put invisible behavior in annotations
Hover color changes, scroll-linked fade-ins — anything a static frame can't show goes into a Figma annotation. Design.md's Animation & Motion section says what the values are; annotations say where they apply. Only with both did motion come out the way I'd specified.
The difference it makes
Aspect
Prepared file
Unprepared file
Component reuse
Split along the Figma hierarchy
Same visuals expanded inline repeatedly
Responsiveness
Flexbox / Grid adapts
Fixed px breaks
Naming
Role names carried through
Frame1, Group2 left behind
Color references
Consistent token names
Hex mixed with utility classes
Post-generation work
Minor tweaks
Structural rewrite
Design.md and Project Rules: Keep Two Sources of Truth Apart
When I started, I packed everything — color values and generation steps alike — into a single Design.md. It didn't go well. Claude Code mistook procedural notes for design specs and tried to implement a sentence of instructions sitting inside the Button section as if it were part of the component.
Now I keep them apart. Values go in Design.md; procedure goes in the project rules (CLAUDE.md). Values are the source of truth that both Figma and code read; procedure only governs how Claude Code behaves.
### v1.2.0 (2026-04-04)
- Added: dark mode color scale
- Changed: Button padding 12px 24px → 14px 28px
- Deprecated: color-accent-light
### v1.1.0 (2026-03-15)
- Added: Input error state spec
I version it as X.Y.Z: X for a brand refresh, Y for new components or color families, Z for spacing and weight tweaks. Once a month I compare get_variable_defs output against Design.md to catch drift between Figma Variables and the document.
What goes in the project rules
This is a shortened version of the flow suggested in Figma's official repository, adapted to my projects. Since putting it in CLAUDE.md, I no longer explain the procedure in every prompt.
## Figma MCP rules for this repository1. Take the target node as a link and call get_design_context first2. If the response is too large or truncated, use get_metadata to see the whole, then re-fetch only the nodes needed3. Check get_screenshot before implementing4. Use variable names from get_variable_defs for color, spacing, and type; never hard-code hex5. Treat the React + Tailwind output as a representation of the design; swap in existing parts from src/components/ui6. Change only the files in scope for the requested diff7. Before finishing, compare against the screenshot and check contrast and keyboard navigation
The create_design_system_rules prompt will draft rules tailored to your codebase. I'd use that as a starting point, then add your own boundaries and trim it down rather than adopting it wholesale.
Three Implementation Patterns
Pattern 1: Build one new screen at a time
Please implement this frame.https://www.figma.com/design/FILE_KEY/MyProject?node-id=12-345- Next.js (App Router) + TypeScript strict- Tailwind for styling; use Design.md token names for color and spacing- Reuse shared parts from src/components/ui- Write to src/app/(marketing)/pricing/page.tsx
An earlier version of this article started its examples with a /code command. Claude Code has no such built-in command, and I'm sorry for the confusion. A link plus plain-language requirements, as above, is all it takes.
What the output looks like: tokens to props
Design.md tokens and Figma component properties end up as code like this:
// Button.tsx — Before: props copied straight from Figma propertiesinterface ButtonProps { size?: "small" | "medium" | "large"; state?: "default" | "hover" | "active" | "disabled";}// After: reshaped into idiomatic Reactinterface ButtonProps { size?: "small" | "medium" | "large"; disabled?: boolean; // hover and active belong to CSS pseudo-classes}
Code that is faithful to Figma and code that feels natural in React differ by exactly this last step. The prop types are the first thing I review after generation. If something vague like variant?: string shows up, it almost always means the Figma component property wasn't defined as a variant — the types let you trace the gap back to the design file.
Pattern 2: Screens with motion
Please implement this frame.https://www.figma.com/design/FILE_KEY/MyApp?node-id=40-12- Toggle open/close animation uses "Normal" (250ms) from Design.md Animation & Motion- Layout uses CSS Grid per Design.md Layout Grid- Put copy in messages/ja.json and messages/en.json; long English strings must not break the layout
With the values pinned in Design.md, Claude Code stops filling in ease or 300ms on its own and writes exactly what the spec says, such as transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);.
Pattern 3: Apply design updates as a scoped diff
Back when I asked it to "regenerate everything" after each update, unrelated files changed too, and regression checks became a knot in my stomach. Now I list the changes and spell out what may be touched:
Apply these Figma changes to the code.https://www.figma.com/design/FILE_KEY/MyApp?node-id=8-90Changes:- Button font-weight 600 → 700- Button padding 12px 24px → 14px 28px- Card radius 4px → 12px- primary-500 #3B82F6 → #2563EB (update Design.md too)Scope: Button.tsx, Card.tsx, tailwind.config.ts, Design.md only. Touch nothing else.Show me git diff --stat at the end.
Switching to this format took a single update from two or three hours down to fifteen to thirty minutes. The git diff --stat at the end is there so I can see at a glance whether anything outside the scope slipped in.
Things I Learned From Running It
Turn colors into Variables before handing them over
With raw hex values, Claude Code tends to mix #3B82F6 and bg-blue-500 for the same color. After registering them as Figma Variables and writing token names in Design.md, roughly 80% of color references in my output settled on token names.
Accessibility always dips right after generation
Freshly generated code usually has weaker contrast and focus rings than Design.md intends. I always add a pass for contrast and keyboard navigation right after generation. Skipping it meant individual fixes piled up later and slowed everything down.
If you run it unattended
If a scheduled Claude Code job includes pulling designs, use the remote server, not the desktop one. A setup that assumes the app is awake will, sooner or later, be found stalled in the morning. If you allow Figma tools through permission rules, the rule syntax can change between versions, so it's worth rechecking with If you wrote MCP allow rules as mcp__servername.
Figma MCP generates; I decide the scope and the values. Every week I let that line slip, the cleanup grew.
The Whole Flow (My Own Rough Times)
Stage
Work
Time
Day 1: Setup
Write Design.md, generate a few directions in Stitch, pick one
~3.5 h
Day 2: Figma prep
Auto layout, components, naming, Variables, annotations
~4.5 h
Day 3: Generation
One screen at a time, review props and types, build check
~2 h
Day 4+: Polish
Responsive and accessibility checks, copy and images, launch
~4 h
That's about 14–16 hours in total. Laying it out in a table, I noticed that more than half the time goes into preparing Figma. Spending more on preparation, not generation, is what makes the whole thing shorter.
Where You'll Get Stuck Next: Code Connect
With all of the above you can build screens, but after a while you'll hit this: you already have a Button, yet a near-identical new Button keeps appearing. That's because your Figma components aren't linked to your code components, and Figma itself describes Code Connect as the best way to get consistent component reuse.
On the remote server, get_code_connect_map reads those mappings, and you ask the agent to set clientFrameworks to your Code Connect label, such as React or SwiftUI. On Professional plans only one framework can be active at a time. I'd start by linking just Button and Card, then check whether the output begins using them.
As a first step, pick one screen you have right now, fix only its auto layout and layer names, and have Claude Code implement it through the remote server. Comparing the output before and after that prep shows you, better than any guide, where your time should go. That comparison is how I rebuilt this whole process myself.
Share
Thank You for Reading
Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.