Skip to main content

Figma MCP

Path: .cursor/skills/figma-mcp/SKILL.md

Category: Design

Triggers: Figma, design implementation, Figma URLs

What It Does

Teaches the agent to use the Figma MCP server for extracting design context, generating code from frames, getting variables/styles, managing Code Connect mappings, and creating FigJam diagrams.

Key Tools

ToolPurpose
get_design_contextPrimary tool — extracts code + screenshot + contextual hints from a Figma frame
get_screenshotVisual capture of a design at any zoom level
get_metadataFile-level metadata (pages, components, styles)
generate_diagramCreate FigJam diagrams from text descriptions

URL Parsing

The skill includes URL parsing rules for extracting fileKey and nodeId from Figma URLs:

URL PatternExtraction
figma.com/design/:fileKey/:fileName?node-id=:nodeIdConvert - to : in nodeId
figma.com/design/:fileKey/branch/:branchKey/:fileNameUse branchKey as fileKey
figma.com/make/:makeFileKey/:makeFileNameUse makeFileKey
figma.com/board/:fileKey/:fileNameFigJam file — use get_figjam

Design-to-Code Workflow

  1. Call get_design_context with fileKey and nodeId
  2. Receive React + Tailwind code enriched with hints
  3. Adapt to the project's stack — the output is a reference, not final code
  4. Check for existing components in libs/ui/components that match the design
  5. Reuse project tokens and patterns rather than generating from scratch

MCP Server

All Figma operations use CallMcpTool with server: "user-figma-mcp".