Skip to content

MCP setupFrontend

Figma MCP Server

Read Figma frames, variables and components through Figma's remote MCP server so generated UI code follows the real design.

npx workspacetemplates add figma-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file8 lines · 110 BFile
{
  "mcpServers": {
    "figma": {
      "type": "http",
      "url": "https://mcp.figma.com/mcp"
    }
  }
}

What it does

Figma's MCP server hands an agent the structure behind a selected frame: layout, spacing, the variables and styles in use, and a screenshot for reference. Code written from that data is much closer to the design than code guessed from a description.

This setup uses the remote server at mcp.figma.com, so there is no app to run for the connection itself. You sign in with your Figma account, and the agent sees files that account can open. Paste a link to a frame in your prompt to point it at the right node.

Example

you › Implement the pricing card from this Figma frame as a React component using our Tailwind tokens: https://www.figma.com/design/abc123/Pricing?node-id=12-34

agent › Read the frame: 3 text styles, 4 color variables, 24 px padding, 12 px radius. Created PricingCard.tsx using the matching Tailwind tokens and noted one color that has no token yet.

Questions

Do I need the Figma desktop app?
Not for this remote URL. Figma also documents a desktop server, which this setup does not use.
How do I sign in?
Your agent starts an OAuth login with Figma the first time it connects. Gemini CLI uses the /mcp auth figma command for this.
How do I point it at one frame?
Include the frame link in your prompt. The link carries the node id the tools read.
  • Bundle Size Reduction

    Skilljavascript

    Free