You hand Claude a screenshot of a Figma frame and say "build this". You get something that looks close, with the wrong greys, a made-up button and padding that's almost right. You fix it by hand. Then you do it again for the next screen.
The Figma MCP server skips the screenshot. It lets Claude Code read the frame itself: layout, components and variables. This post is the setup, the tools, the limits that bite, and the habits that make the output match your codebase.
One honest note first. I read Figma's own documentation for everything below and checked the commands against it, but I did not run the server against a live Figma account for this post. So this is a verified setup guide, not a review of how well the output turns out. Where I give prompt examples, they're templates for you to try.
The verdict first
- Setup takes about five minutes with Figma's plugin for Claude Code, or one
claude mcp addcommand if you'd rather not install a plugin. - You need a Full or Dev seat in Figma for normal use. Other seats have tight usage limits.
- It works from links. You copy a link to a frame or layer and paste it into your prompt.
- The output is only as good as your Figma file. Variables for colour, spacing, radius and type, plus Code Connect for components, are what stop it guessing.
- Keep selections small. A card or a header works. A whole page often doesn't.
What it does, in one picture
Figma frame Figma MCP server Claude Code
(link to a layer) ───────► mcp.figma.com/mcp ───────► reads design,
get_design_context writes code in
get_variable_defs YOUR framework
get_screenshot using YOUR
components
▲
│ Code Connect maps Figma components
└─ to the real ones in your repoThe server gives the agent structured information about the design, so it isn't reading pixels. According to Figma's guide, the main design tool returns a representation of your selection that is currently React plus Tailwind, which the agent then adapts to your stack.
What you need
| Requirement | Detail |
|---|---|
| Figma seat | A Full or Dev seat. Other seats have usage limits (see the limits table below) |
| File type | A Figma Design, Figma Make or FigJam file |
| File access | Edit or view access. If someone else owns the file, they need to share it with you |
| Client | A client listed in Figma's MCP catalog. Figma's page names Claude Code, Codex, Cursor, VS Code, Gemini CLI and Xcode (Xcode needs the Xcode 27 beta) |
| Transport | The client must support Streamable HTTP, according to Figma's guide |
| Terms | Using the server means agreeing to the Figma Developer Terms |
Figma recommends the remote server (hosted by Figma) because it gets the latest tools and skills. A desktop server also exists. If you installed the remote one earlier, Figma's help article says to reinstall it using the updated guide.
Set it up in Claude Code
Option A: the plugin (Figma's recommended route)
claude plugin install figma@claude-plugins-official- Restart Claude Code if it was running.
- Type
/plugin, open the Installed tab and selectfigma. - Start sign-in and click Allow access in the browser window that opens.
- Run
/pluginagain.figmashould show as connected.
The plugin includes Figma's skills. If the install command fails, your organisation may have blocked plugins.
Option B: add the server by hand
claude mcp add --transport http figma https://mcp.figma.com/mcpAdd --scope user if you want it in every project. By default it applies only to the current one.
- Start a new Claude Code session.
- Type
/mcp, select figma, then choose Authenticate. - Click Allow access in the browser.
- Run
/mcpagain and check it shows as connected.
This route does not install Figma's skills.
Your first run
- In Figma, right-click a frame or layer and choose Copy link to selection. (Or copy the URL from the address bar, which contains the node ID.)
- Paste it into Claude Code with a prompt that says what you want and where it goes.
A template to start from:
Implement this Figma frame as a React component.
Link: <paste link>
Use the components in src/components/ui before creating new ones.
Use the CSS variables from src/styles/tokens.css, no hardcoded colours.
Write it to src/features/pricing/PricingCard.tsx.Figma's own advice matches that shape: be explicit about the framework, the styling system and the file paths, and break large selections into smaller pieces.
The tools it gives Claude
Names and purposes from Figma's server guide:
| Tool | What it does | When it matters |
|---|---|---|
get_design_context | Returns a structured representation of the selected design (currently React + Tailwind) | The main one. Used when you ask for code |
get_variable_defs | Pulls the variables and styles used in the selection: colours, spacing, type | When you want real token names, not raw hex |
get_metadata | A high-level map of nodes | When the design context is too large for one response |
get_screenshot | A visual reference of the variant being built | Gives the agent something to compare against |
generate_image | Makes placeholder images when sources are missing | The agent must ask permission and disclose Figma AI credit use first |
upload_assets | Uploads generated images and applies them to the design | Write-side helper |
The remote server can also write to Figma files from your client. That is remote-only, free during the beta, and Figma says it will become a usage-based paid feature later. Treat that as a "check the pricing page before relying on it" item.
Make the output match your codebase
This is where most of the time goes. There are three levers.
1. Variables in Figma. Figma's guide recommends using variables for spacing, colour, radius and type. With those in place, get_variable_defs can report the names, and generated code can reference them. If you get raw hex values back, ask Claude for the variable names and values used in the frame. Pair that with a token build on your side, which I walk through in Design Tokens Explained.
2. Code Connect. It links Figma components to components in your codebase, so generated code reuses the real ones. Figma's guide says that without it the model is guessing, and I'd take that at face value. If you already use one of the libraries in Best Open-Source Design Systems for Developers, this is the step that connects your Figma kit to it.
3. A rules file. Put your conventions where Claude reads them each session, in your project instructions file. Figma suggests this for things like preferred components, naming and what not to hardcode. An example you can adapt:
# Design to code rules (example)
- Use components from src/components/ui before creating new ones.
- Never hardcode colours or spacing. Use the CSS variables in src/styles/tokens.css.
- One component per file, named in PascalCase.
- Keep Figma layer names out of class names.[ADD YOUR STORY: a screen you handed off by screenshot or by eye that went wrong, and what it cost you in rework. Leave this out if you have no example.]
Limits that catch people out
| Who | What Figma says |
|---|---|
| Starter plan, or View or Collab seats on paid plans | 6 tool calls per month |
| Dev or Full seats on Professional, Organization or Enterprise | Per-minute limits matching the Tier 1 Figma REST API. Figma may change these |
| Tools that write to Figma | Exempt from the read limits |
| Large selections | Can slow the tools or return incomplete responses |
| Skills | Beta |
Six calls a month is the number to remember. If you're on a free Starter plan, you'll use it up in one afternoon of testing.
When it goes wrong
It returns raw hex instead of tokens. Ask for the variable names and values used in the frame. If your Figma file has no variables, there's nothing to report. Add them first.
The response is huge or incomplete. Select a smaller layer, or use get_metadata to find the right node first and then ask for that one.
It rebuilds a button you already have. You probably don't have Code Connect set up, or your rules file doesn't tell Claude where your components live.
The plugin install fails. Your organisation may have blocked plugins. Use Option B.
Auth doesn't open. Run /mcp (or /plugin), select figma and start Authenticate again, then check that you clicked Allow access in the browser.
It works for one person and not another. Check the seat type and whether the file is shared with them.
When not to use it
- You have no design file. Generate the UI straight from a prompt, and use a design skill to avoid the generic look. I cover that in How to Design and Build a SaaS Without a Designer.
- The design is a full page you want in one go. Break it into sections.
- Your component library isn't mapped. Without Code Connect, expect a clean-up pass.
If you want a bigger list of skills to pair with this, the Claude Code skills directory has a Design, UI and UX section.
What I checked, and what I didn't
Checked against Figma's pages: the install commands for both options, the server URL, the supported clients, the tool names and purposes, the seat and rate-limit statements, and the Code Connect and variables advice.
Did not do: run the server against a live Figma file, test Code Connect, or measure how close the generated code is to a design. Treat the prompt templates as starting points, and tell me what you change.
FAQ
What is the Figma MCP server?
A server that lets AI coding agents read information from Figma designs, such as layout, components and variables, and use it to generate code.
How do I connect Figma to Claude Code?
Run claude plugin install figma@claude-plugins-official, restart, then sign in from /plugin. Or run claude mcp add --transport http figma https://mcp.figma.com/mcp and authenticate from /mcp.
Do I need a paid Figma plan?
Not strictly, but limits apply. Starter plan users and people with View or Collab seats are limited to 6 tool calls a month, so real use needs a Full or Dev seat.
Does it work with Cursor or VS Code?
Figma's page lists Cursor and VS Code as supported clients. VS Code also needs an enabled GitHub Copilot account to use MCP, according to Figma's guide.
What is Code Connect?
A way to link Figma components to your code components, so generated code uses your real ones instead of guessing.
Can it write to Figma?
Yes, on the remote server. Figma says it's free during the beta and will later become a usage-based paid feature.
Final thoughts
The server gives Claude better eyes, but it can't give it taste or your component names. The wins come from the boring prep: variables in Figma, Code Connect for your components, and a rules file that says where things live.
Launching what you build? The SaaS directories list covers 390+ places to submit, filterable by fee and category. More posts like this go out in the monthly ihatereading magazine.