FigmaCollaborative interface design in the browser.
Rebuilding a design by eye means spacing, colours and states drift from what was designed.
This setup is for frontend developers and design engineers who turn Figma frames into components. Figma's MCP server gives Cursor or Claude Code the frame's structure, variables and screenshots, and GitHub lets the agent work in your repo and open a pull request. You end up with components that use your design tokens instead of hard-coded values copied by eye.
In the Figma desktop app, open a Design file, switch to Dev Mode and enable the desktop MCP server from the inspect panel or the Figma menu under Preferences. It runs locally at http://127.0.0.1:3845/mcp; add that URL to Cursor's MCP settings or with claude mcp add. Figma also offers a remote server at mcp.figma.com if you prefer not to run the desktop app.
Tip: The MCP server needs a Dev or Full seat on a paid Figma plan; check Figma's docs for current seat rules.
Add GitHub's MCP server with a fine-grained token that can create branches and pull requests in your frontend repository. Ask the agent to list your component folder so it knows what already exists. This stops it from rebuilding a button you already have.
Tip: Point the agent at your tokens file, such as tailwind.config or a CSS variables file, in the same prompt.
Select a frame in Figma, or copy its link, and ask the agent to build it as a component using your existing tokens and components. The agent pulls the frame's code context, variables and a screenshot, then writes the component. Compare the result with the frame in the browser at the same width.
Tip: Smaller frames give better results; build a card or a form section, not a whole page at once.
FigmaCollaborative interface design in the browser.
