Skip to main content
Glama

figmad-mcp

Figma Design MCP Server - Create, capture, and manage Figma designs via AI agents.

Features

  • Read Operations: Get files, nodes, components, styles, variables, export images

  • Write Operations: Create frames, shapes, text; apply auto-layout; update nodes (requires plugin)

  • Capture & Reconstruct: Screenshot webpages and recreate them in Figma

  • Generate UI: Create UI designs from text prompts

Related MCP server: figma-mcp

Setup

1. Install Dependencies

npm install

2. Configure Environment

cp .env.example .env
# Edit .env and add your FIGMA_ACCESS_TOKEN

Get your token at: https://www.figma.com/developers/api#access-tokens

3. Build

npm run build

4. Install Plugin (for write operations)

cd plugin
npm install
npm run build

Then in Figma:

  1. Menu → Plugins → Development → Import plugin from manifest

  2. Select plugin/manifest.json

Usage

With Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "figmad": {
      "command": "node",
      "args": ["/path/to/figmad-mcp/dist/index.js"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Available Tools

Read Operations (REST API - always available)

Tool

Description

get_file

Get Figma file structure

get_node

Get specific nodes by ID

get_components

List components in a file

get_styles

Get color/text/effect styles

get_variables

Get design tokens/variables

export_image

Export node as PNG/SVG/PDF

Write Operations (Plugin required)

Tool

Description

create_frame

Create a new frame

create_rectangle

Create a rectangle shape

create_text

Create text node

update_node

Modify node properties

apply_auto_layout

Apply auto-layout to frame

set_fills

Set fill colors

delete_node

Delete a node

get_selection

Get current selection

plugin_status

Check if plugin is connected

Orchestrated Tools

Tool

Description

capture_webpage

Screenshot and analyze a webpage

reconstruct_page

Recreate captured page in Figma

generate_ui

Generate UI from text description

analyze_codebase

Extract components and design tokens from code

sync_design_tokens

Compare/sync tokens between Figma and code

Example Prompts

Get the structure of my Figma file: [paste figma URL]

Create a landing page with a header, hero section with headline and CTA button, three feature cards, and a footer

Capture https://example.com and recreate it in Figma

Export the frame "Hero Section" as a PNG

Analyze my React codebase at /path/to/project and extract design tokens

Compare design tokens between my Figma file and codebase

Architecture

┌─────────────┐     ┌─────────────────┐     ┌──────────────────┐
│ AI Agent    │────▶│ figmad-mcp      │────▶│ Figma Plugin     │
│ (Claude)    │stdio│ (MCP Server)    │ ws  │ (runs in Figma)  │
└─────────────┘     └────────┬────────┘     └──────────────────┘
                             │
                             ├──▶ Figma REST API (read operations)
                             └──▶ Playwright (web capture)

Development

npm run dev          # Watch mode
npm run typecheck    # Type checking
npm run lint         # Linting

cd plugin
npm run watch        # Watch plugin changes

License

MIT

Available Tools

20 tools
analyze_codebaseB

Analyze a codebase to extract component definitions, props, and design tokens. Supports React, Vue, Svelte, Angular. Extracts Tailwind config and CSS variables.

Inputs: no named parameters.

apply_auto_layoutB

Apply auto-layout to a frame. Auto-layout automatically arranges children horizontally or vertically with consistent spacing.

Inputs: no named parameters.

capture_webpageA

Capture a webpage screenshot and analyze its DOM structure. Detects UI components like buttons, inputs, cards, navigation. Returns capture ID for use with reconstruct_page.

Inputs: no named parameters.

create_frameB

Create a new frame in Figma. Frames are the primary container for designs. Requires the Figma plugin to be connected.

Inputs: no named parameters.

create_rectangleB

Create a rectangle shape in Figma. Can have fills and rounded corners.

Inputs: no named parameters.

create_textB

Create a text node in Figma. Supports font customization and alignment.

Inputs: no named parameters.

delete_nodeB

Delete a node from the Figma document.

Inputs: no named parameters.

export_imageA

Export a Figma node as an image (PNG, JPG, SVG, or PDF). Returns a URL to the exported image.

Inputs: no named parameters.

generate_uiB

Generate a UI design from a text description. Parses the prompt for common UI patterns (header, hero, cards, form, footer) and creates corresponding Figma elements.

Inputs: no named parameters.

get_componentsA

List all components in a Figma file. Returns component keys, names, and descriptions.

Inputs: no named parameters.

get_fileA

Get a Figma file structure and metadata. Returns the document tree, components, and styles.

Inputs: no named parameters.

get_nodeA

Get specific nodes from a Figma file by their IDs. More efficient than getting the full file when you know what nodes you need.

Inputs: no named parameters.

get_selectionA

Get the currently selected nodes in Figma.

Inputs: no named parameters.

get_stylesB

Get all styles (colors, text styles, effects, grids) from a Figma file.

Inputs: no named parameters.

get_variablesB

Get design tokens/variables from a Figma file. Includes colors, spacing, and other tokenized values.

Inputs: no named parameters.

plugin_statusA

Check if the Figma plugin is connected. Write operations require the plugin.

Inputs: no named parameters.

reconstruct_pageA

Reconstruct a captured webpage in Figma. Creates frames, shapes, and text based on the captured DOM structure. Requires capture_webpage to be called first.

Inputs: no named parameters.

set_fillsA

Set fill colors/gradients on a node. Replaces all existing fills.

Inputs: no named parameters.

sync_design_tokensB

Compare and sync design tokens between Figma and code. Can extract tokens from Figma variables/styles or from codebase analysis.

Inputs: no named parameters.

update_nodeB

Update properties of an existing Figma node. Can modify position, size, text, visibility, and more.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as create_frame, create_rectangle, and create_text for different element types, and get_file, get_node, and get_selection for different retrieval methods. However, some overlap exists between analyze_codebase and sync_design_tokens, as both involve code analysis and design tokens, which could cause mild confusion.

    Naming Consistency5/5

    Tool names follow a consistent verb_noun pattern throughout, such as create_frame, delete_node, export_image, get_components, and update_node. There are no deviations in naming conventions, making the set predictable and readable.

    Tool Count4/5

    With 20 tools, the count is slightly high but reasonable for a Figma MCP server covering design operations, code analysis, and webpage capture. It includes core CRUD actions and specialized functions without feeling excessively bloated, though it borders on the upper limit of typical scope.

    Completeness5/5

    The tool set provides comprehensive coverage for Figma design workflows, including creation (e.g., create_frame, create_text), retrieval (e.g., get_file, get_node), updates (update_node), deletion (delete_node), export (export_image), and integration with codebases and webpages. No obvious gaps are present, supporting full lifecycle operations.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Enables AI agents to read, inspect, and export Figma designs programmatically. Provides tools for listing components, styles, and exporting assets in various formats.
      5
      1
      -
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to access Figma design context, generate code from frames, extract variables, components, and layout data, and create or modify Figma files directly from MCP clients.
      -