figma guide

How to Connect the Figma MCP Server to Your Code Editor

Set up the Figma MCP server in Claude Code, Cursor or VS Code: remote vs desktop, which seats get real limits, and what to fix in your file before prompting.

Intermediate Developers and design engineers who want an AI coding tool to read Figma frames, variables and components directly.

Published
Read time
7 min
Level
Intermediate
Editor
Abdus Salam

Quick answer

For most people, Figma MCP server setup means connecting your editor to Figma’s hosted remote server at https://mcp.figma.com/mcp and signing in with your Figma account. In Claude Code, Cursor and VS Code, the recommended route is Figma’s plugin for that editor, which adds the server plus Figma’s skills; a manual config is the fallback. Then copy a link to a frame in Figma, paste it into your agent’s chat, and ask it to build the design. The desktop server is the other option, meant for specific organization and enterprise needs.

Who this is for

  • Developers using Claude Code, Cursor, VS Code with Copilot, Codex or another supported agent who want it to read real Figma designs instead of screenshots.
  • Design engineers and design system leads deciding whether the team should use the remote or desktop server.
  • Designers who hand off in Dev Mode and want to know what the agent will actually see.

If you’re still choosing a code path in general, start with our overview of Figma-to-code devtools and site builders. More setup guides live in Figma guides.

Before you start: remote or desktop, and which seat

Figma’s guide to the MCP server describes two ways to connect:

Remote server (recommended)Desktop server
Addresshttps://mcp.figma.com/mcphttp://127.0.0.1:3845/mcp
Needs the Figma desktop appNoYes, open with a Design file
Who it’s forMost users; broadest feature setSpecific organization and enterprise needs
Seat and planAny plan can connect; limits depend on seatDev or Full seat on Professional, Education, Organization, Government or Enterprise
Write to canvas, send live UI to FigmaYes (remote only)No
Select a layer in the app instead of pasting a linkNoYes

Your seat matters more than it looks. According to Figma’s rate limits page, View and Collab seats, and anyone on the Starter plan, get up to 20 read tool calls per month. Full and Dev seats on Professional get up to 200 per day and 10 per minute; Organization raises that to 15 per minute, and Enterprise to 600 per day and 20 per minute. Twenty calls a month runs out in one afternoon of real work, so check your seat before you blame the setup. For plan costs, check the vendor.

Only clients listed in Figma’s MCP catalog can connect. VS Code, Cursor, Claude Code, Codex, Gemini CLI and Xcode are among them.

Steps

  1. Pick the server. Use the remote server unless your organization needs the desktop one. The rest of these steps cover the remote server; the desktop differences follow below.
  2. Claude Code: install the Figma plugin. In your terminal, run claude plugin install figma@claude-plugins-official, then restart Claude Code. Type /plugin, go to the Installed tab, select the figma server, press Enter to sign in, and click Allow access in the browser. If your organization blocks plugins, add the server manually instead with claude mcp add --transport http figma https://mcp.figma.com/mcp (add --scope user to use it in every project), start a new session, type /mcp, select figma and choose Authenticate.
  3. Cursor: add the Figma plugin. Open the command palette, search for Open chat, and submit /add-plugin figma, then click Add Plugin. Open Cursor Settings, select Tools & MCP, and click Connect next to Figma under Installed MCP Servers. Allow access when prompted. Without plugins, add a custom MCP server in Tools & MCP with { "mcpServers": { "figma": { "url": "https://mcp.figma.com/mcp" } } } and click Connect.
  4. VS Code: edit mcp.json. Open the command palette and choose MCP: Open User Configuration (all projects) or MCP: Open Workspace Folder Configuration (this workspace only). Paste { "inputs": [], "servers": { "figma": { "url": "https://mcp.figma.com/mcp", "type": "http" } } }, save, click Start above the server name, and allow access. Figma also recommends its plugin for GitHub Copilot, which adds the skills.
  5. Any other supported client: add a new MCP server using the HTTP transport and https://mcp.figma.com/mcp, then sign in when prompted. Your client’s own docs show where that setting lives.
  6. Check which account you signed in with. Ask your agent to run the whoami tool. It returns your email, plans and seat on each plan, which explains most permission errors and surprise rate limits.
  7. Copy a link to a frame. In Figma Design, right-click the frame or layer and choose Copy link to selection.
  8. Prompt with the link. Paste it into your agent’s chat and ask it to implement the design. The agent doesn’t open the link; it pulls out the node ID the server needs.
  9. Save design system rules (optional). Ask the agent to run create_design_system_rules, then save the result in your project’s rules or instructions folder so later prompts follow your stack.

Desktop server differences

Per Figma’s desktop setup docs, turn the server on inside the app first. Open a Design file in an up-to-date Figma desktop app, switch to Dev Mode with nothing selected (Shift D), and click Enable desktop MCP server in the MCP server section of the right sidebar. Then point your client at http://127.0.0.1:3845/mcp. In Claude Code that’s claude mcp add --transport http figma-desktop http://127.0.0.1:3845/mcp. In VS Code, use MCP: Add Server, choose HTTP and paste the address.

The desktop server only works while the app is open and the server is on. Its settings modal lets you choose how images are handled (localhost links or downloaded assets) and whether to include Code Connect mappings in responses.

What the agent gets back

Figma’s tools reference lists the read tools your agent calls:

ToolWhat it returns
get_design_contextThe main tool: design context for a layer or selection, as React and Tailwind by default (ask for another framework in your prompt)
get_variable_defsVariables and styles in the selection: colors, spacing, typography
get_metadataA light XML outline (layer IDs, names, types, positions, sizes), useful when a frame is too big
get_screenshotA screenshot of the selection so layout matches more closely; uses more tokens
get_code_connect_mapCode Connect mappings: component name, where it lives in your codebase, and snippets

That’s why file quality drives output quality. Variables come through as tokens only if you used variables, and your real components get reused only if they are components connected with Code Connect.

What to finish in the file first

Figma’s own advice on structuring files for better code lines up with a good handoff:

  • Turn anything that repeats (buttons, cards, inputs, nav items) into components.
  • Connect components to code with Code Connect; without it the agent guesses which code component matches.
  • Use variables for spacing, color, radius and type instead of raw values.
  • Rename layers like Frame1268 to names such as CardContainer or CTA_Button.
  • Use auto layout rather than absolute positioning, and resize the frame to check it behaves.
  • Add annotations and dev resources for behavior you can’t show visually.

Our checklist of what to finish in Figma before Dev Mode covers the same ground from the designer’s side.

Common mistakes

  • Running both servers by accident. If remote-only tools such as use_figma or generate_figma_design are missing, your client may be talking to the desktop server instead, per Figma’s troubleshooting page.
  • Signing in with the wrong account. The server only reads files your signed-in account can access. Run whoami and check that the account belongs to the plan that owns the file.
  • Testing on a View or Collab seat. At 20 calls a month you’ll hit the limit during setup and think it’s broken.
  • Pointing at a whole page. Large frames return too much at once. Select a section, or let the agent call get_metadata first and fetch only the parts it needs.
  • Expecting React when you wanted something else. The default output is React and Tailwind; name your framework in the prompt.
  • Forgetting the desktop app. With the desktop server, tools disappear when the app closes or the server is switched off.

FAQ

Do I need a paid Figma plan to use the MCP server?

Figma’s guide lists the MCP server for all plans, and the remote server is open to any seat. But View and Collab seats, and the Starter plan, are limited to 20 tool calls a month, while Full and Dev seats on paid plans get daily limits. The desktop server needs a Dev or Full seat on a paid plan. Check the vendor for current plan details.

Should I install the Figma plugin or add the server manually?

Use the plugin where your editor has one. Figma’s docs say it includes the server settings plus Figma’s skills, which help the agent get more reliable results. Add the server manually only if your organization blocks plugins, and then add the skills separately.

Why doesn’t my agent see my current selection?

Selection-based prompting only works with the desktop server, where the agent can read what’s selected in the open app. With the remote server, use Copy link to selection and paste the link into your prompt.

Next

Get the file ready before your first prompt: work through what to finish in Figma before Dev Mode, then compare other routes from design to production in Figma-to-code devtools and site builders.

Share on X

§ Keep reading

Next in path.