FigmaDesign & Product
Content type: Concept
6 min read
Figma's Dev Mode MCP Server exposes design variables, components, and specs to AI agents
- Reading
- 6 min
Figma's MCP Server lets AI agents read variables, components, and layout directly from the design file, and even write back to the canvas. That changes what's expected from whoever organizes a design system.
Figma documents, in the official Dev Mode MCP Server guide (Figma Help Center), how its files stopped being just a visual reference and became a structured data source that an AI agent can query. Instead of a developer looking at the prototype and trying to guess the spacing, the color token, or the component name, the agent reads that information directly from the file, through the Model Context Protocol (MCP), the standard that connects AI tools to external data sources.
In practice, this means tools like Claude Code, Cursor, VS Code with Copilot, and other compatible MCP clients can pull the context of a specific frame, without anyone having to manually copy a list of variables or export a JSON of design tokens. The flow described by Figma starts with something simple: right-clicking a frame or layer and using "Copy link to selection." The agent doesn't open that link as a page, it extracts the node ID and uses that identifier to fetch the corresponding data from the MCP server.
What the agent can extract from the file
The guide lists four types of data that the MCP Server exposes to developers: variables, components, layout data, and project specs. Variables and components are the core of any design system, so that's where the gain is most evident: an agent that reads the variable color/primary/500 or the component Button/Primary directly from Figma is less likely to invent an approximate hex code or recreate a button from scratch.
The server also retrieves content from FigJam files (diagrams, flows, architecture maps made during the ideation phase) and from Figma Make, bringing that material into the code generation flow. This closes a common gap: brainstorming in FigJam and implementation in the editor used to live in separate worlds, connected only by whoever remembered to look at both.
Writing back to the canvas, not just reading
The less obvious part of the announcement is that the flow isn't one-way. With the MCP remote server and the right "skills" installed, an agent can create and modify native Figma content: frames, components, variables, and auto layout, using the existing design system as the source of truth. This opens up the possibility of asking an agent to generate an entire screen from a text specification, and getting back editable layers in Figma, not a static image.
This writing functionality requires a Full seat license to edit outside personal drafts, and for now it's free during the beta period; Figma already warns that it will become a pay-per-use feature. That's worth noting for anyone testing the flow who thinks the current cost is the final cost.
Figma also describes the feature of capturing a live app's UI (in production, staging, or localhost) and turning it into editable design layers in Figma. The flow requested from the agent is something like: "start a local server for my app and capture the UI in a new Figma file," followed by a capture toolbar to choose pages, elements, and states. This path reverses the traditional order: instead of designing first and coding later, you can bring an already-built interface back into visual editing.
Code Connect and the consistency of generated code
An agent that reads a Figma component and generates code from scratch runs the classic risk of reinventing the wheel: creating a new button instead of using the Button that already exists in the repository. That's what Code Connect is for, cited in the guide as the piece that keeps generated code consistent with the actual codebase, reusing the components the team has already written instead of recreating visual approximations.
In teams with Figma for Government, this integration is limited to Code Connect via CLI, without the visual interface available on other plans. It's a detail that changes the workflow for anyone in a regulated environment who needs to manually document each step.
Figma Specs: requirement context before code
Another piece of the set is the figma-spec skill, still in open beta, which lets the agent read, create, and update a team's specs. The idea is to reverse today's most common order of work, in which the requirement lives in a separate document (Notion, Jira, a Google Doc) and the code is born disconnected from it. With the spec accessible through the same MCP channel, the agent records decisions and findings back into the document as it implements, keeping requirement and implementation in the same place.
Writing to a spec requires the remote server and edit access to the file, the same permission barrier that applies to writing to the canvas. This suggests a governance layer that any design system needs to decide on early: who has permission to let an agent edit shared artifacts, and not just query them.
Remote or desktop server: the choice changes the scope
Figma offers two ways to connect the MCP Server, with differences relevant to whoever decides on the infrastructure:
- Remote server (
https://mcp.figma.com/mcp): recommended by Figma itself, doesn't require the desktop app installed, and concentrates the broadest set of features, including writing to the canvas and generating design from live UI. - Desktop server: runs locally through the Figma desktop app and is aimed at specific organizational needs, requiring a Dev or Full seat on a Professional, Education, Organization, Government, or Enterprise plan.
- Government accounts: use the
https://mcp.figma-gov.com/mcpendpoint and have a different set of tools than commercial Figma, without guaranteed parity in plugins, skills, or writing tools.
The list of compatible clients (Claude Code, Claude Desktop, Cursor, VS Code, Copilot CLI, Gemini CLI, Amazon Q, among others) varies in support depending on the feature: not every client that reads context also writes to the canvas, and Figma recommends checking the Figma MCP catalog for the updated list, since coverage is constantly expanding.
What this requires from whoever organizes the design system
This kind of programmatic access only delivers on its promise if the source file is well organized. An agent that reads "variables and components" only extracts useful information if the variables have semantic names (color/text/danger, not cinza-escuro-2) and if the components are actually marked as reusable components, not as loose frames that merely look like components visually.
This also raises a point that Figma's documentation doesn't cover, but that anyone working with accessibility should ask: if the agent reads a component's layout, color, and text, does it also read that element's semantic role (is it a button, is it a link, does it have a defined focus state)? A design system that doesn't encode these decisions in variables and specs risks letting the agent generate code that's visually correct but semantically poor, with the screen reader unable to tell what that element does.
The practical recommendation from this material is to treat the organization of the Figma file as part of the development infrastructure, not as an aesthetic detail. Naming variables, documenting components, and keeping Code Connect in sync have stopped being a designer's concern: they've become the difference between an agent that generates correct code and one that generates a visual approximation of a component that already existed.
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.




