The job: “Get the screens of an app I built with Claude Code into Figma so my team can review and edit them”
Claude Code to Figma: send your running app to Figma as layers
Claude Code to Figma: capture the screens of your running web app as editable Figma layers with the Figma MCP server, then send edits back to code.
- Level Intermediate
- Time 20-30 minutes
- Works with
- Claude Code
On this page11 sections
Claude Code to Figma works through Figma’s official MCP server. Connect the remote server to Claude Code, ask it to “start a local server for my app and capture the UI in a new Figma file”, and each screen of your running app lands in Figma as editable design layers. Figma calls this feature code to canvas.
This guide is the reverse of Figma to code with Claude. There, a designer’s frame becomes code. Here, an app that already runs (often one Claude Code built) goes back into Figma, so people can comment on it, move things around and rewrite copy without running a build. When they are done, you hand Claude the link to the edited frame and it updates the code.
What you’ll have at the end
- Figma connected to Claude Code and signed in.
- Every screen of a small app, including an error state, captured into one Figma file as frames.
- A short prompt that sends an edited frame back to Claude Code to implement.
What you need, and what it costs
- Claude Code, installed and signed in.
- A Figma account. Figma’s code to canvas page lists Starter, Professional, Education, Organization and Enterprise plans, and the file type is Figma Design.
- A web app that runs in a browser. Any local project works. If you don’t have one, Step 2 builds a tiny one.
- Edit access to the Figma file, if you capture into an existing file instead of a new one.
Capturing does not count toward Figma’s MCP rate limits. Figma’s rate limit page lists generate_figma_design (the capture tool) among the tools that write to Figma and are exempt from its limits. Reading designs does count: View and Collab seats get up to 20 calls a month, and Full or Dev seats on paid plans get 200 to 600 a day. The full table is in our Figma to code guide.
What we tested: we ran the Step 2 build prompt with claude -p on a made-up three-screen signup flow. One run wrote the three files, and each screen opened at its own address with the error message working. We also ran the manual claude mcp add command; Claude Code listed the Figma server as “Needs authentication”. We did not install the Figma plugin, sign in to Figma or run a capture, so the plugin route and sign-in in Step 1, and Steps 3 to 6, follow Figma’s documentation and are untested.
Code to canvas, html_to_figma or write to canvas?
The Figma MCP server has three ways to put things on the canvas. They are easy to mix up.
| Code to canvas | html_to_figma | Write to canvas | |
|---|---|---|---|
| Tool | generate_figma_design | html_to_figma | use_figma |
| Starts from | Your app running in a browser | An HTML file (no app running) | A description of what to build |
| Result | Flat layers of what is on screen | Plain layers | Layers built from your components and variables |
| Uses your design system | No (colour, number and string variables can bind automatically if the file has a library) | No | Yes |
| Best for | Reviewing real screens and flows | A style sheet or a single HTML page | Building new screens the “proper” Figma way |
Quick rule: if the app runs, use code to canvas. Figma suggests combining them: capture your latest UI, then have your agent refine it with your design system.
Step 1: Connect Figma to Claude Code
Figma recommends its plugin, which adds the MCP server plus Figma’s skills:
claude plugin install figma@claude-plugins-official
Restart Claude Code if it was open. Type /plugin, press the right arrow to reach the Installed tab, select the figma server and press Enter twice to sign in. A browser page opens; click Allow access. Back in Claude Code, /plugin should show figma as connected.
If your organization blocks plugins, add the remote server by hand instead:
claude mcp add --scope user --transport http figma https://mcp.figma.com/mcp
Start a new session, type /mcp, select figma, choose Authenticate and click Allow access. Leave out --scope user if you only want it in this one project.
Use the remote server, not the desktop one. Code to canvas only exists on the remote server (https://mcp.figma.com/mcp). If you once set up the desktop server (http://127.0.0.1:3845/mcp), Figma says Claude Code may use it and never load the capture tool. Run claude mcp list, and if you see the desktop address, remove it with claude mcp remove figma-desktop, then restart Claude Code.
Step 2: Have an app to capture
Skip this if you already have one. Otherwise make a folder, save this as idea.md, and open Claude Code in that folder:
# Signup flow for "Sprout Notes" (made-up app)
Three screens: 1) Welcome with app name and "Get started" button, 2) Sign up form (name, email, password) with an inline error when email is invalid, 3) "You're in" screen with a checklist of 3 first steps.
Plain HTML, CSS and a little JavaScript. No frameworks. Mobile-friendly.
Then paste the prompt we tested:
Read idea.md and build this as a small static web app in this folder (index.html, styles.css, app.js). Each screen must be reachable by URL hash (#welcome, #signup, #done) so each one can be captured separately later. Then tell me the one command to serve it locally on port 5173.
In our run, Claude wrote the three files and suggested python3 -m http.server 5173. Giving each screen its own address makes captures easier: you can ask for each screen by name instead of clicking through the flow.
Step 3: Capture your first screen
Ask Claude Code, in plain words:
Start a local server for my app and capture the UI in a new Figma file.
According to Figma, Claude starts the server, adds the small script that code to canvas needs, and opens a browser window. It may ask which Figma team or organization to use. The first capture happens as soon as the window opens. New files go into your drafts.
Two other destinations are possible:
- An existing file: “Start a local server for my app and capture the UI in
.” You need edit access. If the link isn’t to a Figma Design file, Claude creates a new file instead. - Your clipboard: “…use the Figma MCP server to capture the UI to my clipboard.” Then paste the layers into any file.
If the server is already running, leave out “Start a local server for my app”.
Step 4: Capture the whole flow, including states
The browser window has a capture toolbar:
- Entire screen captures the full current view.
- Select element captures one part, like a card or a form.
Click through the app and capture each step. For the signup example, open the sign-up screen, type abc in the email field and press Sign up, then capture again so the error state is in Figma too. You can also keep prompting in the same conversation: “Capture the #done screen to the same file.” Figma says Claude usually assumes the same file, or asks to confirm.
When you finish, click Open file (or ask Claude to finish the capture). Your screens are now side by side, which is where problems like an unclear empty state or a confusing step show up.
Step 5: Review and edit in Figma
Captured frames are ordinary Figma layers. Your team can duplicate, rearrange, rewrite copy and leave comments. If the file has a library with variables, Figma binds matching colour, number and string variables to the captured layers automatically, so add your library to the file before you capture if you want that.
Keep in mind the layers are flat: they are not linked to your component library. For a polished redesign, ask Claude to rebuild the screen with your components (write to canvas) after capturing.
Step 6: Send the changes back to code
Once someone has edited a frame, copy a link to that frame and give it to Claude Code:
Here is the updated signup screen in Figma: <frame link>. Compare it with #signup in my app and change the code to match. List what you changed.
This is the round trip Figma describes: code to canvas for review, then back to code. Reading the frame uses the normal design tools, so it counts toward your seat’s rate limit.
What can go wrong
- Claude says it has no capture tool. The remote server isn’t set up, or the desktop server is hiding it. Check
claude mcp list, removehttp://127.0.0.1:3845/mcp, restart. - Plugin install fails. Your organization may block plugins. Use the manual
claude mcp addcommand. - Permission errors on a file. Ask Claude to run Figma’s
whoamitool to see which Figma account, plan and seat you are signed in with. - You want a live site, not a local app. Figma says to ask your agent to use a tool like Playwright MCP to add the required script. To capture an external website, Figma points to its Chrome extension instead.
Next steps
- Go the other way with Figma to code with Claude.
- Read the Figma MCP server profile for every tool and plan detail.
- Building the app from a picture first? See Screenshot to working UI.
- Not sure whether to start in Figma at all? Compare Claude Design vs Figma MCP.
Sources
- developers.figma.com/docs/figma-mcp-server/code-to-canvas/ (opens in a new tab)
- developers.figma.com/docs/figma-mcp-server/tools-and-prompts/ (opens in a new tab)
- developers.figma.com/docs/figma-mcp-server/remote-server-installation/ (opens in a new tab)
- developers.figma.com/docs/figma-mcp-server/rate-limits-access/ (opens in a new tab)
- developers.figma.com/docs/figma-mcp-server/write-to-canvas/ (opens in a new tab)
- code.claude.com/docs/en/mcp (opens in a new tab)
- code.claude.com/docs/en/discover-plugins (opens in a new tab)
- raw.githubusercontent.com/anthropics/claude-plugins-official/main/.claude-plugin/marketplace.json (opens in a new tab)
Related guides
Claude Design vs Figma MCP: which to use for UI work
Claude Design drafts screens for you; Figma MCP lets Claude read and edit your Figma files. Compare plans, limits and handoff, then use both in one workflow.
Beginner10 minutes to decide, about 30 minutes for the hands-on workflow
Claude skills vs MCP vs plugins: which do you need?
Skills teach Claude how to do a task, MCP connectors let it reach your apps and data, plugins bundle both. Decision table, plan notes and a tested example.
Beginner10 minutes to decide, about 30 minutes for the hands-on example
Claude Cowork plugins: install one, then build your own
What Cowork plugins are, how to install one from Customize > Plugins and connect its connectors, and how to build, test and upload your own small plugin (a meeting-notes plugin we tested with Claude Code).
Beginner10 minutes to install one, about 30 minutes to build your own