FigmaDesign & Product
Content type: Concept
6 min read
Figma MCP server connects design files to code agents like Copilot CLI and Cursor
The Figma MCP server exposes variables, components, and specs from a file directly to the code editor's AI agent. The promise is automatic handoff, but the result depends on how organized the design file is.
- Reading
- 6 min
The Figma MCP server exposes variables, components, and specs from a file directly to the code editor's AI agent. The promise is automatic handoff, but the result depends on how organized the design file is.
What the Figma MCP server solves
The problem Figma is tackling is familiar to anyone who has gone through handoff: the developer opens Dev Mode, looks at the specs on screen, and still manually recreates spacing, color, and variable names in code, hoping to get the exact value right. The Figma MCP server, described in Figma's official Help Center guide, proposes another route: instead of the dev looking and typing, the editor's AI agent reads the Figma file directly and already generates the code with the real values.
The mechanism behind it is the Model Context Protocol (MCP), the open standard that has become a common language between AI agents and external data sources. Figma exposes an MCP server that any compatible client, from the official catalog's list, can query. On Figma's side, this means variables, components, auto layout, and design specs becoming structured context; on the agent's side, it means generating HTML, React, or whatever stack is configured using that context as the source of truth, not as a guess.
Remote or desktop server: the first choice
The documentation separates two forms of connection, and the difference matters when deciding who on the team can use what.
- Remote server (recommended): connects directly to the endpoint hosted by Figma,
https://mcp.figma.com/mcp, without needing the desktop app. It's what unlocks the most complete set of features, including writing to the canvas and generating design from the live UI. - Desktop server: runs locally through the Figma desktop app, designed for specific organization and enterprise needs. It requires a Dev or Full seat on a Professional, Education, Organization, Government, or Enterprise plan.
- Government accounts: use their own remote connection, at the
https://mcp.figma-gov.com/mcpendpoint, with a different set of tools than commercial Figma.
In practice, for most teams the remote route is the obvious starting point: less installation friction and more features unlocked from the start.
What the agent can pull from the file
The typical flow is link-based, not a free search across the entire project. In Figma Design, the designer right-clicks the frame or layer, chooses Copy link to selection, and pastes that link into the conversation with the MCP client (Cursor, Claude Code, VS Code, among others). The client doesn't open the link: it extracts the node ID that the server uses to identify exactly which object to return.
From there, the guide lists a specific set of capabilities worth separating because each one serves a different moment in the flow:
- Generating code from a selected frame, useful for those building a new flow or iterating on an existing feature.
- Extracting design context, pulling variables, components, and layout data into the IDE, especially valuable in design-system-based workflows.
- Retrieving FigJam assets, bringing diagrams and architecture maps from early phases into the generated code.
- Retrieving Figma Make assets, gathering prototyping artifacts in the handoff to production.
- Writing directly to the canvas (via the remote server, still in beta and free during this period, later becoming a pay-per-use feature): the agent creates and updates frames, components, variables, and auto layout in Figma Design, FigJam, and Figma Slides files, using the design system as the source of truth. This requires a Full seat to write outside personal drafts.
- Generating designs from the live UI of a web app, capturing pages, elements, or entire flows directly from the browser (production, staging, or localhost) and sending them to a Figma Design file.
Skills: the instruction manual tools are missing
An MCP server on its own exposes individual tools; it's the agent that decides in what order to call them and how to interpret the result, and not every agent gets that script right without help. That's why Figma created skills: instruction packages that combine MCP tool calls with a recommended step-by-step.
The figma-spec skill, for example, lets the agent read, create, and update the team's specs before starting to build, and then capture back decisions and discoveries made during the work, currently in open beta, with writing requiring the remote server and edit access to the file. Other skills guide the agent through tasks like linking Figma components to code components via Code Connect, or generating design-system rules aligned with the project's codebase. Important to note: a skill doesn't add new capability, it just reduces the amount of trial and error until the agent makes good use of what MCP already offers.
Code Connect as a quality gate
One of the things that most separates a generic output from a usable one is Code Connect. Without it, the agent reading a component in Figma tries to guess which component in the codebase corresponds to it, based on name and visual appearance, a guess that works until it doesn't. With Code Connect configured, that correspondence is explicit: the Figma component points to the real code component, and the agent reuses that piece instead of recreating something similar from scratch.
This matters precisely for teams that maintain a design system: the consistency of the generated code starts to depend on how much of the component-to-component mapping has already been done, not just on how well-designed the file looks visually.
Where handoff breaks: the dependency on a well-organized file
Here's the point the official guide doesn't spell out explicitly, but that follows directly from how the tool works: the MCP server reads the structure that exists, and doesn't fix the structure that's missing. A variable with no semantic name, a duplicated component without Code Connect, a frame with no auto layout, a loose layer outside any logical group, all of this becomes bad context handed to the agent, which then generates code as inconsistent as the source file.
In short: the more a file already behaves like a design system (variables named by function, not by value; components with Code Connect; auto layout instead of free positioning), the better the agent generalizes. A file organized like a static mockup, with loose layers and generic naming like "Frame 42", tends to produce code that works visually but doesn't capture the intent behind the design.
This also applies to accessibility, a point Figma's documentation simply doesn't cover: the MCP server extracts layout and visual values, not interaction semantics. An agent generating HTML from a frame won't infer on its own that an icon needs an aria-label, that a tab order makes sense, or that a contrast ratio is below the minimum, this still requires explicit instruction in the prompt or human review afterward. Treating MCP output as a draft to review, not as a final deliverable, is the difference between gaining speed and pushing accessibility debt into production.
When it's worth turning on
The scenario where the Figma MCP server pays off fastest is teams that already maintain a design system with documented variables and components: there, context extraction is practically immediate, and Code Connect closes the loop with real code consistency. For teams without that discipline, the first practical gain might not be installing the MCP server, but rather tidying up the house in Figma, naming variables, consolidating components, before expecting an agent to generalize well from what exists today.
Translated from the Brazilian Portuguese original · Read the original
If code has become a commodity, deciding what to build is the engineer's new job
In the latest episode of Lenny Rachitsky's podcast, Simon Willison says writing code is no longer the engineer's bottleneck. What remains is the question of what to do with that freed-up time.




