Skip to main content
Glama
Figma Dash MCP Server

Figma Dash MCP Server

by dynstat

Figma Dash MCP Server

An open-source Model Context Protocol (MCP) server that connects your IDE (like Cursor, Claude Desktop, or Antigravity) directly to the Figma Desktop App. This allows AI assistants to proactively generate and manipulate layouts, shapes, and designs directly inside your Figma canvas!

How it Works

The architecture operates securely and completely offline on your local machine:

  1. Figma Plugin (figma-plugin): Runs inside your Figma drawing canvas. It hosts a hidden HTTP polling client to receive instructions.

  2. FastMCP Python Server (figma_dash_mcp_server): Runs as a background service spawned by your IDE. It exposes AI tools (e.g. create_rectangle, create_frame) and sends those commands to Figma via an internal loopback server (port 49901).


Related MCP server: Claude Talk to Figma MCP

🚀 Quick Start Guide

Step 1: Install the Prerequisites

Because the server is built with Python, you need an extremely fast package manager called uv to automatically download and run it in an isolated environment.

Install uv (it takes 2 seconds):

macOS / Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell)

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

(If you are setting this up on a fresh machine, you might also need to install Python locally if uv doesn't install it for you).


Step 2: Configure Your IDE

You do not need to manually download or install any Python files. Your IDE will use the uvx command to grab the latest official package directly from PyPI on-the-fly!

Add the following block to your IDE's MCP configuration settings (e.g., Cursor Settings > Features > MCP, or claude_desktop_config.json):

{
  "mcpServers": {
    "figma-generator": {
      "command": "uvx",
      "args": ["--refresh", "figma-dash-mcp-server@latest"]
    }
  }
}

(When your IDE restarts, it will execute this command in the background, keeping the server listening for your AI agent!)


Step 3: Connect your Figma Desktop App

For the IDE server to physically draw on your canvas, it needs a linked Figma plugin active.

  1. Download or clone this repository.

  2. Open your Figma Desktop App.

  3. Right-click anywhere in your design canvas > Plugins > Development > Import plugin from manifest.

  4. Select the manifest.json file inside the figma-plugin/ folder.

  5. Run the Dash MCP Link plugin from the plugins menu. Keep the small UI window open on the side of your screen!


Step 4: Talk to your AI!

With the Figma plugin open and your IDE restarted, the connection is instantly established. In your IDE chat, simply say:

"Hey, can you use your Figma tools to create a premium glassmorphic dashboard layout in Figma?"

The entire UI layout will build itself directly inside your Figma application in real-time!

Development

To add new AI capabilities:

  1. Open up figma_dash_mcp_server/server.py and write a new @mcp.tool() function.

  2. Have the python tool send a new JSON method (like create_circle) over the send_to_figma background thread.

  3. Open figma-plugin/code.js and add an else if (toolName === 'create_circle') block to physically execute the drawing via the Figma Plugin API.

Available Tools

8 tools
batch_createA
Create MULTIPLE Figma elements in a SINGLE round-trip.
THIS IS THE PRIMARY TOOL — use it for ALL designs.

════════════════════════════════════════════════════════════
KEY CAPABILITY: supports NESTED CHILDREN inside frames.
This lets you build full component trees in one call:

  {
    "type": "frame", "name": "Card", "x":100,"y":100,"width":320,"height":200,
    "fill":"#1E1E2E", "cornerRadius":16,
    "children": [
      {"type":"rectangle","x":0,"y":0,"width":320,"height":4,"fill":"#7C3AED"},
      {"type":"text","content":"Hello","x":16,"y":20,"fontSize":18,"color":"#FFFFFF"},
      {"type":"ellipse","x":270,"y":12,"width":40,"height":40,"fill":"#3B82F6"}
    ]
  }

Children x/y are RELATIVE to their parent frame.
Nesting works to any depth.
════════════════════════════════════════════════════════════

── SCREENSHOT → FIGMA WORKFLOW ────────────────────────────────────────────
Share any screenshot or describe any UI. The AI will:
  1. Analyze the layout, colors, typography, spacing
  2. Generate a complete `elements` array representing the design
  3. Fire ONE batch_create call → complete Figma reproduction

── Supported types ────────────────────────────────────────────────────────
  "frame"      container / artboard (supports children)
  "rectangle"  box, card, button, divider, progress bar
  "ellipse"    circle, avatar, badge dot, arc/donut ring segment
  "vector"     ANY curved/custom shape via SVG path string (waves, icons, charts)
  "text"       any text content
  "line"       horizontal separator

── Shape properties ───────────────────────────────────────────────────────
  fill / hexColor  hex    solid fill color e.g. "#1A1D2E"
  fillOpacity      0–1    fill alpha (0.05–0.15 for glass)
  noFill           bool   transparent fill (for stroke-only rings)
  gradient         dict   {angle:0-360, stops:[{color,position,opacity}]}
  cornerRadius     int    rounded corners px (frame/rect only)
  stroke           hex    border color
  strokeWidth      int    border px
  strokeOpacity    0–1    border alpha (0.1–0.25 for glass)
  opacity          0–1    node opacity
  name             str    layer name

── Ellipse arc properties (for donut/pie segments) ────────────────────────
  arcStartAngle   float  degrees, 0=top(12 o'clock), clockwise
  arcEndAngle     float  degrees, 0=top(12 o'clock), clockwise
  arcInnerRadius  float  0=full pie, 0.5–0.8=donut ring

── Vector / SVG path properties ───────────────────────────────────────────
  pathData        str    SVG path string (M,L,C,Q,A,Z commands)
  windingRule     str    'NONZERO' (default) | 'EVENODD'

── Effects ────────────────────────────────────────────────────────────────
  shadow         {color,x,y,blur,spread,opacity}
  innerShadow    {color,x,y,blur,spread,opacity}
  blur           float   layer blur radius
  backgroundBlur float   frosted glass (use with fillOpacity < 1)

── Text properties ────────────────────────────────────────────────────────
  content / text   str   text characters
  color / hexColor hex   text fill color
  fontSize         int   10–14 caption, 16–20 body, 24–48 heading, 56+ hero
  fontStyle        str   Regular|Medium|SemiBold|Bold|ExtraBold|Light|Italic
  textAlign        str   left|center|right
  letterSpacing    float px spacing (1–4 for uppercase labels)
  lineHeight       float px line height

── Glassmorphism recipe ──────────────────────────────────────────────────
{
  "type":"rectangle",
  "fill":"#FFFFFF", "fillOpacity":0.08, "cornerRadius":16,
  "stroke":"#FFFFFF", "strokeOpacity":0.12, "strokeWidth":1,
  "backgroundBlur":20,
  "shadow":{"color":"#000000","x":0,"y":8,"blur":32,"spread":0,"opacity":0.4}
}

── Wave / Area Chart recipe ────────────────────────────────────────────────
{
  "type":"vector",
  "pathData":"M 0,120 C 50,60 90,140 140,80 C 190,20 240,100 290,50 L 290,160 L 0,160 Z",
  "x":0,"y":0,"width":300,"height":160,
  "gradient":{"angle":180,"stops":[{"color":"#8B5CF6","position":0,"opacity":0.9},{"color":"#1C1E2A","position":1,"opacity":0}]},
  "shadow":{"color":"#7C3AED","x":0,"y":0,"blur":24,"spread":0,"opacity":0.7}
}

── Multi-color Donut Ring recipe ───────────────────────────────────────────
Stack three ellipses at the same x/y with different arc angles and stroke colors:
{"type":"ellipse","x":50,"y":250,"width":160,"height":160,"noFill":true,
 "stroke":"#10B981","strokeWidth":16,"arcStartAngle":0,"arcEndAngle":120,"arcInnerRadius":0.68}
{"type":"ellipse","x":50,"y":250,"width":160,"height":160,"noFill":true,
 "stroke":"#F59E0B","strokeWidth":16,"arcStartAngle":130,"arcEndAngle":230,"arcInnerRadius":0.68}
{"type":"ellipse","x":50,"y":250,"width":160,"height":160,"noFill":true,
 "stroke":"#7C3AED","strokeWidth":16,"arcStartAngle":240,"arcEndAngle":350,"arcInnerRadius":0.68}

Returns: {success:bool, nodeIds:[...], count:int, errors:[...]}

Inputs: elements (required).

clear_canvasA

Remove ALL elements from the current Figma page (clean slate).

Inputs: no named parameters.

create_ellipseB
Create a circle or ellipse. Equal width/height = perfect circle.

Arc / Donut / Pie segment support:
  arcStartAngle   float  degrees, 0=top(12 o'clock), clockwise. Default 0.
  arcEndAngle     float  degrees, 0=top(12 o'clock), clockwise. Default 360.
  arcInnerRadius  float  0=full pie, 0.5-0.8=donut ring thickness.

── Multi-color donut ring recipe ──────────────────────────────────────────
Stack three overlapping ellipses with different arcStart/End and stroke colors:
  Green arc:  arcStartAngle=0,   arcEndAngle=120, arcInnerRadius=0.7, stroke='#10B981'
  Orange arc: arcStartAngle=120, arcEndAngle=220, arcInnerRadius=0.7, stroke='#F59E0B'
  Purple arc: arcStartAngle=220, arcEndAngle=360, arcInnerRadius=0.7, stroke='#7C3AED'

Inputs: x, y, name, width, +13 more.

create_frameA
Create a Figma Frame (artboard/container).

Args:
    name, x, y, width, height: basics
    hexColor: fill hex e.g. '#0D1117'
    fillOpacity: 0–1 (use 0.05–0.15 for glass panes)
    cornerRadius: rounded corners px
    stroke/strokeWidth/strokeOpacity: border
    shadow: {color, x, y, blur, spread, opacity}
    blur: layer blur radius
    gradient: {angle:0-360, stops:[{color,position,opacity}]}

Inputs: x, y, blur, name, +12 more.

create_lineC

Create a horizontal divider line.

Inputs: x, y, name, width, +4 more.

create_rectangleB
Create a styled rectangle. Full glassmorphism support.

Glassmorphism recipe:
  hexColor='#FFFFFF', fillOpacity=0.08, cornerRadius=16,
  stroke='#FFFFFF', strokeOpacity=0.15, strokeWidth=1,
  backgroundBlur=20,
  shadow={color:'#000',x:0,y:8,blur:32,spread:0,opacity:0.4}

Inputs: x, y, blur, name, +14 more.

create_textB
Create a text node with full typography control.

fontStyle: 'Regular'|'Medium'|'SemiBold'|'Bold'|'ExtraBold'|'Light'
fontSize: 10-14 captions, 16-20 body, 24-48 headings, 56-96 hero
letterSpacing: 1-4 for uppercase labels

Inputs: x, y, name, width, +8 more.

create_vectorA
Create a vector node from an SVG path string. This is the ONLY way to draw
curves, waves, bezier shapes, custom icons, or area charts in Figma.

pathData: SVG path commands (M, L, C, Q, A, Z, etc.)

── Wave / area chart recipe ───────────────────────────────────────────────
Closed path (ends with Z) gets fill — use for area-under-curve charts:
  pathData = "M 0,120 C 40,60 80,140 130,80 C 180,20 230,100 290,50
              L 290,160 L 0,160 Z"
  gradient = {"angle":180, "stops":[
    {"color":"#8B5CF6","position":0,"opacity":0.9},
    {"color":"#1C1E2A","position":1,"opacity":0}
  ]}
  shadow = {"color":"#7C3AED","x":0,"y":0,"blur":24,"spread":0,"opacity":0.7}

Open path (no Z) with noFill=True + stroke — use for line charts:
  pathData = "M 0,80 C 50,20 100,120 150,60 C 200,10 250,80 300,40"
  noFill = True
  stroke = "#8B5CF6"
  strokeWidth = 3

── Custom icon / shape ────────────────────────────────────────────────────
Any SVG path from Figma's pen tool or icon libraries works directly.

windingRule: 'NONZERO' (default) | 'EVENODD'

Inputs: x, y, name, width, +12 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each create_* tool targets a distinct primitive (line, frame, rectangle, text, ellipse, vector), and clear_canvas is unambiguous. However, batch_create subsumes all of them and is described as the primary tool, creating mild overlap or redundancy for single-element creation.

    Naming Consistency4/5

    Most tools follow a clear verb_noun pattern (clear_canvas, create_line, create_frame, etc.). The outlier is batch_create, which reverses the expected order (create_batch) and slightly breaks the pattern.

    Tool Count4/5

    With 8 tools, the count is within a reasonable range for a design-focused server. However, batch_create alone can handle all create_* operations, making the individual create tools somewhat redundant in practice.

    Completeness4/5

    The server covers creation of core Figma elements (frames, shapes, text, vectors) and batch generation, plus canvas clearing. Missing are operations to update, delete, or read existing elements, which could be a gap for iterative design workflows, but the primary creation flow is well covered.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants like Claude and Cursor to interact directly with Figma to create, modify, and analyze design elements in real-time. It provides a comprehensive suite of tools for document inspection, styling, component management, and automated layout via a bidirectional WebSocket connection.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Bridges AI clients to Figma Desktop via Plugin API and WebSocket, enabling real-time design manipulation without rate limits.
      826 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Empowers AI assistants to control Figma via natural language, enabling creation and modification of designs, components, variables, and exports through a WebSocket bridge.
      2
      MIT