FigmaDesign & Product
Content type: Hands-on
5 min read
Figma Dev Mode MCP Server connects AI agents to real design components and tokens
- Reading
- 5 min
- Tables
- 1
- Code
- 2
Figma's MCP protocol lets Claude, Cursor, ChatGPT, Gemini CLI, and VS Code read components, variables, and layout directly from the design file, instead of guessing from a screenshot.
The problem: AI that draws CSS from memory
When a generative AI agent receives only a screenshot or a text description, it tends to invent values: a blue that's similar but not exactly the design system's tone, generic spacing when the grid uses something else, a new component when a ready-made Button/Primary already exists in the library. The code comes out looking similar, but breaks the design system at the first review.
The Figma Dev Mode MCP Server, documented in Figma's Help Center, tackles this problem at the root. Instead of the agent guessing from an image, it reads the file's actual structure: components, variables, layout, and specs as they were actually built.
What the protocol actually does
MCP (Model Context Protocol) is an open standard for AI agents to communicate with external applications. Figma's implementation connects the design file to the MCP client the team already uses day to day: Claude, Cursor, VS Code, ChatGPT, Gemini CLI, or Xcode.
Once connected, the client gains two distinct capabilities, according to the documentation:
- Read: fetch components, variables, and layout details, so the generated code matches how the interface was actually built.
- Write: create and update content in Figma Design, FigJam, and Figma Slides, using the existing design system's components and variables.
The remote server is the recommended path
Figma offers a remote version (hosted by Figma itself) and a desktop version of the MCP server. The documentation recommends the remote one for four reasons: it requires no desktop app, it uses Figma's standard login, it works in any client environment (including agents running in the cloud), and it's the only one that delivers the full set of features, including canvas writing, UI capture, and Figma's "skills".
Setting up the connection in three steps
The guide describes a flow that takes just a few minutes:
- Connect the client: install the Figma plugin for the tool being used (there are specific guides for ChatGPT, Claude, Cursor, Gemini CLI, VS Code, and Xcode) or, if the client has no plugin of its own, add the server manually with HTTP transport at the URL
https://mcp.figma.com/mcp, log in to Figma, and authorize access. - Check the connection: in the client's chat, not inside Figma, ask it to confirm the connected account.
- Test the first prompt: select a small frame (a card, a header, a button), copy the selection's link, and ask for a read-only description.
The verification prompt suggested by the documentation is straightforward:
Use the Figma MCP server's whoami tool.The expected response includes the email, plan, and seats of the connected account. The first read test, in turn, follows this format:
Use the Figma MCP server to describe the layout, components, and colors in this frame: [link to selection]. Don't change the file or generate code.According to the guide, a correct response names what's visible in the frame, something like "a card with a header image, title, text, and a primary button using the Brand/Blue fill". Neither of these two steps alters the file or requires an open code project, which makes the test safe to run on any design repository already in production.
Code Connect: the difference between reading and reusing
Generic reading solves the visual hallucination problem, but it doesn't guarantee the agent will use exactly the React, Vue, or Swift component the team already maintains in the repository. That's what Code Connect is for: it maps each Figma component to the actual code component.
Using Code Connect together with MCP requires: a Professional, Organization, Government, or Enterprise plan, a Full or Dev seat, and components already connected beforehand via Code Connect. Without these three requirements, the agent still infers which piece of code corresponds to the Figma component, which reintroduces part of the risk MCP was supposed to eliminate.
Where to start, depending on the goal
The documentation organizes possible flows by goal. Translating the official table:
| I want to... | Start with | What I need |
|---|---|---|
| Generate code from a design | Design-to-code tools | File access |
| Generate code reusing my existing components | Code Connect and MCP | Professional/Org/Gov/Enterprise plan; Full or Dev seat; connected components |
| Use FigJam diagrams as context | get_figjam | Access to the FigJam file |
| Use code from a Figma Make file | Make features and MCP | View access to the Make file |
| Build from the team's specs and keep them updated | figma-spec skill | Access to the spec; edit access and remote server to update (Figma Specs in open beta) |
| Create or edit designs in Figma Design | Canvas writing | Remote server; Professional/Education/Org/Enterprise plan; edit access; Full seat outside of drafts |
Usage limits that change adoption strategy
The feature is available for Starter, Professional, Education, Organization, Government, and Enterprise plans, but with a detail that weighs on planning: Starter plans and View or Collab seats have a cap of 20 tool calls per month. For a small team testing the flow, that's enough; for daily use in production, the limit pushes the conversation toward a Full or Dev seat and a larger paid plan.
What the MCP Server doesn't solve on its own
Correctly reading tokens and components doesn't guarantee semantic HTML, proper focus order, or correct ARIA attributes. The agent sees the visual structure and the layer names the designer gave in the file, not the accessibility intent behind each element. A frame named "Frame 42" confuses the agent just as much as it would confuse a human developer doing a manual handoff.
This puts weight back on a practice that should already exist before AI enters the flow: naming layers, components, and variables consistently, and manually reviewing the semantics and accessibility of the generated code before considering it done. The MCP Server reduces visual hallucination, but it doesn't replace that review.
What changes in the design-engineering handoff
In practice, the most concrete gain isn't the code itself, but the reduced distance between what the designer drew and what the developer receives as a starting point. Instead of a static specification in a document that quickly goes out of date, the agent consults the live file with every prompt.
The trade-off is that this gain only truly appears with mature design system discipline: well-named components, consistent variables, and ideally, Code Connect set up. Teams with disorganized files will feel less of a difference, because the agent still reads the same mess, just in more detail.
Translated from the Brazilian Portuguese original · Read the original
Figma's Dev Mode MCP Server connects design files to AI agents, no manual handoff
The Dev Mode MCP Server lets clients like Claude Code, Cursor, and VS Code read components, variables, and layout directly from Figma. For product and UX people, this turns naming and design tokens from an aesthetic detail into a technical contract.




