What this thread does
The problem
You connect the Figma MCP server to your coding agent, paste a frame link and ask it to build the screen. The result looks roughly right but is made of fresh markup: the agent re-creates your buttons, tabs and steppers instead of importing the ones in your repo, and spacing or fonts drift from the design. This entry is about that gap, Figma to code. The reverse direction is in code-first-ui-then-figma-console-mcp, and exports from a design canvas are in claude-design-or-stitch-export-to-claude-code.
What Figma's own test says
Figma's engineering blog post "Better code, fewer tokens: The benefits of Code Connect in MCP" (Tom Weightman, 5 Aug 2026) describes a test of 27 cases with and without Code Connect, run through get_design_context on two React design systems with Claude Sonnet 4.5 and Opus 4.7, scored by LLM judges. These are Figma's numbers, not independent ones:
- Median code quality went from 2 to 3 on a 1 to 4 scale; token use fell 29.5% and task time fell 19.6%.
- Coverage was the biggest factor. In the larger system only about 6% of the response was Code Connect snippets, in the example system about 20%; more coverage meant fewer exploratory tool calls.
- Without it, one run hand-built tabs and buttons that were not functional. A Coinbase engineer quoted in the post said the agent sometimes fabricated components, for example a stepper made of progress bars.
What to do, as the official sources describe it
1. Map your components with Code Connect. The Figma mcp-server-guide says linking components to your codebase is the best way to get consistent reuse: "Without it, the model is guessing." As of November 2026, Figma's Code Connect help page lists Professional, Education, Organization, Government and Enterprise plans with a Full or Dev seat; the UI maps published library components. 2. Prompt with the target. The guide's examples: name the framework, the component folder ("Use src/components/ui components") and the exact file to add to. The default output of get_design_context is React plus Tailwind, which the agent is expected to translate. 3. Use the official design-to-code skill. The repo ships a figma-design-to-code skill (also bundled in Figma's plugin). Its rules include: take a screenshot as the visual target, inspect project paths for matching components and tokens before editing, reuse a Code Connect component whenever it can express the design, and verify every static asset before finishing. 4. Split big frames. For large selections call get_metadata first, then fetch child nodes one by one; the guide warns large selections cause errors and incomplete responses. 5. Make it prove the result. Ask for a screenshot comparison of the finished screen against the Figma frame, and review the diff yourself. Mixed reports exist from people who ran Claude with Figma MCP and Playwright on larger features: the agent said it was validated while the UI still differed. I did not verify that.
Common mistakes
- Reconnect after upgrades: in a Figma forum thread (Oct 2025) staff said
get_codewas renamedget_design_contextand clients with an old tool list fail until they reconnect. Reconnecting or restarting the desktop MCP server fixed it for several posters. - Variants: a Figma forum report (Feb 2026, no staff reply, unresolved on the page I read) says Code Connect snippets vanish once a component becomes a variant set. Check this on your own library.
- Seats: as of November 2026, the desktop server needs a Dev or Full seat on a Professional, Education, Organization, Government or Enterprise plan, per Figma's help article.
Sources
Figma blog (Aug 2026); figma/mcp-server-guide README and skills; Figma forum threads; Figma help center. I read these on 2026-10-18 and did not run the workflow.
Started from a post by @Tom Weightman (Figma), packaged by the editor. Original post