N figma mcp: design your app in plain english with claude code - Netscape _ □ ×
Back Forward Home Reload Guides Sign
URL: http://www.nicnonac.com/guides/figma-mcp-design-with-claude-code/
☷ figma mcp: design your app in plain english with claude code - nicnonac guides _□×

← back to guides

figma mcp: design your app in plain english with claude code

Stacks · 8 min read · posted Nov 20, 2026, 2:57 am

The Figma MCP connects Claude Code to Figma in both directions. Claude can draw screens into a Figma file from a plain English description, and it can read a finished design back out with the real spacing and colours, then build it in code. Setup is one terminal command and a login.

This is part 1 of how I built Oynk, my startup's app, as a solo developer. Design goes first because it's the part AI is worst at when left alone.

Docs: developers.figma.com/docs/figma-mcp-server

ai codes well and designs badly

Ask a coding agent for an app screen and you get working code in a minute. You also get the screen every other AI-built app has, rounded cards in default blue with spacing that is almost right. The model isn't bad at layout so much as blind. It writes UI code without seeing the result, and you only find out what it made after the build.

So you end up iterating in the slowest place available. Every "make the header smaller" is a code change and a rebuild before you can even look. Comparing two directions means building both.

Having a design doesn't fully fix it either. The usual move is to screenshot the design and paste it into the chat. A screenshot is pixels, so Claude has to guess the padding and the hex values from an image. The guesses land close enough to pass a glance and far enough off that the screen feels wrong.

what the mcp changes

Claude draws on a real canvas. The write tool, use_figma, runs code through Figma's Plugin API inside your file. What comes out is not a flat picture. It's frames with auto layout, components, colour variables and text styles, the same parts a designer would build by hand, and you can edit all of it.

You compare designs before any code exists. I asked for a calorie tracker in three styles and got 12 screens in one file, lined up so the same screen sits side by side across all three. That took about 8 tool calls. Picking a direction was a minute of looking.

The same calorie tracker Today screen in three styles: a light one with a green ring, a dark one with a lime segmented bar, and a cream one with orange cards and thick outlines

The trip back to code is exact. get_design_context hands Claude the values in the file, like spacing in pixels and colours by their variable names. It also knows which layer is which component. Nothing gets estimated from an image.

No desktop app needed. The remote server lives at mcp.figma.com and talks to Figma's cloud, so Figma in a browser tab works fine.

step 1: get figma (skip this if you already use it)

Make an account at figma.com. The desktop app is at figma.com/downloads if you want it.

On the home screen, hit Design at the top to create a design file. You land on an empty canvas, and that is all the Figma setup there is. You don't need to learn the toolbar, because Claude does the drawing.

A new, empty Figma design file: blank grey canvas, toolbar at the bottom, and Figma's own chat panel on the left

The panel on the left is Figma's own AI agent. Ignore it for this guide. The designing here happens from Claude Code, which is also where the code gets written later.

Four words you'll see Claude use, so they aren't noise:

  • A frame is one screen.
  • Auto layout means a frame spaces its own contents, so things don't overlap when the text changes.
  • Components are reusable pieces, like a button you draw once and place twenty times.
  • A variable is a named value. Change the colour called accent and every screen using it updates.

Sort out your plan now, because it decides what works. Reading designs into code works on the free Starter plan, capped at 20 tool calls a month. Claude drawing into Figma needs a paid plan: Professional is $16 a month for a Full seat. If you're a student or a teacher, the Education plan is free once you verify, and it includes the drawing part.

step 2: connect claude code to figma

You need Claude Code installed. If you don't have it yet, this guide covers it in three steps.

In your terminal (your normal terminal, not inside a Claude session), run:

claude mcp add --transport http figma https://mcp.figma.com/mcp

That adds the server to the current project folder only. To have it in every project, use this one:

claude mcp add --scope user --transport http figma https://mcp.figma.com/mcp

Now start a new Claude Code session and type /mcp. Select figma, then Authenticate. A browser tab opens. Click Allow access, go back to the terminal, and you should see "Authentication successful. Connected to figma".

Figma's own recommendation is their Claude Code plugin. It installs the same server plus a set of skills, which are instruction files that teach Claude how to use the Figma tools properly:

claude plugin install figma@claude-plugins-official

Restart Claude Code, type /plugin, open the Installed tab, select figma and sign in the same way. I show the one-line command in the video because it's the shortest thing to type on camera. If you plan to design a lot, take the plugin. Pick one route, not both.

step 3: describe the app in plain english

Copy the link to your empty file (Share, then Copy link, or the address bar if you're in a browser) and hand it to Claude with a description. This is the shape of prompt I use:

here is an empty figma file: <paste the file link>

design a calorie tracker app for iphone. give me 3 different visual
directions in this one file, side by side, so i can compare them.

each direction gets the same 4 screens: today, log food, food detail,
progress. use the same sample data in all of them.

build it properly: auto layout on everything, colour variables,
text styles, and components for anything repeated.

One file, side by side, because comparing is the whole point. Three separate files means flicking between tabs and trying to remember what the last one looked like.

Every direction gets the same screens and the same data. Then the only thing that changes between them is the style, which is the thing you're choosing.

The last paragraph of the prompt is there for step 5. Variables and components are what Claude reads back when it writes the code. A design made of loose rectangles gives it nothing to hold on to.

You can also skip the link and ask Claude to create the file. If your account is in more than one team, it asks which one to put it in.

If there's an app whose look you like, give Claude a screenshot of it. Drag the image into the Claude Code window, or copy it and paste with ctrl+v (ctrl, not cmd, on a Mac. alt+v on Windows). Then say what you like about it: "use this as the style reference, i like the thick outlines and the cream background". A reference plus a reason beats a paragraph of adjectives.

step 4: iterate on the picture, not the code

Keep the file open in Figma while Claude works and the screens appear on the canvas. From here, every change is a sentence:

i like direction 3. keep the layout and give me 3 more colour
palettes for it, next to the original.

The cream and orange Today screen next to three recolours of the same layout: pink, blue and green

In my file those palettes came back as variable modes. The colours live in one panel, and editing one there recolours every screen that uses it.

Small fixes are faster by hand. Drag a label, retype a word. It's a design tool, you're allowed to touch it.

Oynk's real Figma file went through a lot of rounds like this before I had a design I liked, and it still has pages of explorations that never shipped. That's the trade working as intended. A rejected design costs one prompt. A rejected build costs an afternoon.

step 5: pull the design back into code

When a screen is right, right click its frame in Figma, choose Copy/Paste as, then Copy link to selection. Open Claude Code inside your app's project and paste:

build this figma frame as a swiftui screen, show it in ContentView,
then run it: <paste the frame link>

Swap swiftui and ContentView for whatever your app is written in. You'll see Claude call get_design_context and get_screenshot, then write the screen. No app project yet? Ask Claude Code to create an empty one first, then come back to this step.

Two habits that keep this step cheap:

  • Link the exact frame. Don't say "find the settings screen in my file". Claude will go looking layer by layer, and every look is a tool call against your limit. The handover I wrote for Oynk's changing room opens with a table of Figma links, one per screen and one per component set.
  • One screen per prompt. Build it, compare it to the frame, fix what's off, then move to the next.

honest limitations

Drawing sits behind a paid plan. Per Figma's docs, write to canvas is available on Professional, Education, Organization and Enterprise. It's also in beta: Figma says it is "free to use during the beta period" and "will eventually become a usage-based paid feature", so expect a meter at some point.

The free plan is a demo. Starter gets 20 tool calls a month, and building a single screen uses a few. A Full or Dev seat on Professional gets 200 a day, 10 a minute, and you can still burn through that. I locked myself out for the rest of a day once, when Claude went scanning a big file layer by layer. That's where the frame link habit comes from.

Images are the weak spot. use_figma can't add new images to a file on its own, so designs made this way lean on shapes and icons. Raster art that's already in your file comes through exactly as it was exported: the hat illustrations in Oynk's changing room had white backgrounds baked in, and they needed re-exporting with transparency.

Two smaller ones. Fonts have to be in your Figma account, so one that's only installed on your computer isn't available to Claude. And the MCP can create a file but can't rename or delete one, which makes the leftover drafts yours to clean up.

You get a starting point, not a finished screen. Figma calls the output "beta quality" that "may need manual review and cleanup", and the code direction is the same. Expect a screen that's most of the way there and a short list of fixes.

Still faster than arguing about padding in code.

← all guides

Done nicnonac.com 56.6k