Figma Mcp Server avatar
Figma Mcp Server

Pricing

Pay per usage

Go to Apify Store
Figma Mcp Server

Figma Mcp Server

Extract Figma designs for AI coding agents. Get layout, styles, variables, and screenshots from any Figma file. Generate React, Vue, Svelte, Flutter, or SwiftUI code. 11 MCP tools for design-to-code workflows. Supports design tokens, component mapping, and FigJam diagrams.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Quadruped

Quadruped

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

5 hours ago

Last modified

Share

Figma Context MCP Server

MCP Server providing AI agents direct access to Figma design files. Extract layout, styling, variables, and metadata for one-shot design-to-code implementation.

Features

  • 11 MCP Tools for comprehensive Figma integration
  • AI-Friendly Output - Simplified design data optimized for LLMs
  • Multi-Framework Support - React, Vue, Svelte, Flutter, SwiftUI, and more
  • Design Token Extraction - Colors, spacing, typography as CSS/Tailwind
  • Screenshot Capture - Visual reference for complex layouts
  • Code Connect - Map Figma components to code components

MCP Tools

ToolDescription
get_design_contextExtract layout, styles, and generate framework code
get_variable_defsGet design tokens (colors, spacing, typography)
get_screenshotCapture visual representation of nodes
get_metadataSparse XML metadata for large designs
get_code_connect_mapGet component-to-code mappings
add_code_connect_mapCreate new component mappings
get_figjamExtract FigJam diagram content
create_design_system_rulesGenerate design system rules file
whoamiGet authenticated user info
list_componentsList all file components
list_stylesList all file styles

Input Schema

FieldTypeRequiredDescription
figmaApiKeystringYesFigma Personal Access Token
fileUrlstringNo*Figma file URL (*required for direct extraction)
nodeIdstringNoSpecific node ID to extract
extractionModeenumNoType of extraction (default: design_context)
frameworkenumNoTarget framework for code output
imageFormatenumNoScreenshot format (png/jpg/svg/pdf)
imageScalenumberNoScreenshot scale (1-4)
includeStylesbooleanNoInclude style definitions
includeComponentsbooleanNoInclude component metadata
depthnumberNoNode tree traversal depth
mcpModebooleanNoRun as MCP server (stdio)

Getting a Figma API Key

  1. Go to Figma
  2. Click your profile icon → Settings
  3. Scroll to "Personal Access Tokens"
  4. Click "Generate new token"
  5. Copy the token (shown only once)

Usage Examples

Extract Design Context (React + Tailwind)

{
"figmaApiKey": "figd_xxx",
"fileUrl": "https://www.figma.com/file/abc123/MyDesign",
"extractionMode": "design_context",
"framework": "react_tailwind"
}

Extract Design Variables

{
"figmaApiKey": "figd_xxx",
"fileUrl": "https://www.figma.com/file/abc123/DesignSystem",
"extractionMode": "variables"
}

Capture Screenshot

{
"figmaApiKey": "figd_xxx",
"fileUrl": "https://www.figma.com/file/abc123/MyDesign",
"nodeId": "123:456",
"extractionMode": "screenshot",
"imageFormat": "png",
"imageScale": 2
}

Run as MCP Server

{
"figmaApiKey": "figd_xxx",
"mcpMode": true
}

Output Dataset

Design Context View

FieldDescription
nodeIdFigma node ID
nodeNameNode name
layoutLayout properties (width, height, flex, padding)
stylesStyle properties (fills, strokes, effects)
codeOutputGenerated code for target framework

Variables View

FieldDescription
variableNameVariable name
variableTypeType (COLOR, FLOAT, STRING, BOOLEAN)
valueResolved value
collectionVariable collection name
modeMode name (e.g., "Light", "Dark")
cssVariableCSS custom property declaration

Supported Frameworks

  • React + Tailwind CSS
  • React + CSS Modules
  • Vue + Tailwind CSS
  • Svelte
  • HTML + CSS
  • Flutter
  • SwiftUI
  • Jetpack Compose

MCP Configuration

Claude Desktop

{
"mcpServers": {
"figma": {
"command": "npx",
"args": ["-y", "@anthropic-ai/figma-mcp-server", "--figma-api-key=YOUR_KEY"]
}
}
}

Via Apify

Configure at mcp.apify.com and add this Actor.

Pricing

Pay-per-event pricing:

  • Design context extraction: $0.01 per node
  • Variable extraction: $0.005 per variable
  • Screenshot: $0.02 per image
  • Metadata: $0.01 per file

License

MIT


Built for the Apify $1M Challenge

TEEP:FIGMA-MCP-001 | dS=↓ | φ=● | E=~ | v9.0-Unified