Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

Figma Canvas MCP

MCP Compatible License: MIT Node.js 18+

Your Figma canvas, controlled by AI. An MCP server that gives AI assistants full read/write access to Figma — extract design systems, create components, manage variables, build FigJam boards, and debug plugins in real time.


Quick Setup

Three steps: get a token → register the server → install the plugin.


Step 1 — Get Your Figma Token

Your token lets the server read and write to your Figma files.

  1. Open Figma Desktop → click your avatar (top-right) → Settings

  2. Go to the Security tab

  3. Scroll to Personal access tokens → click Generate new token

  4. Name it Figma Canvas MCP, choose an expiry

  5. Copy the token — it starts with figd_ and you won't see it again


Step 2 — Register the MCP Server

Pick the client you use and run the command or edit the config file.

Claude Code (terminal):

claude mcp add figma-canvas -s user \
  -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE \
  -e ENABLE_MCP_APPS=true \
  -- node /path/to/figma-canvas-mcp/dist/local.js

Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "figma-canvas": {
      "command": "/usr/local/bin/node",
      "args": ["/path/to/figma-canvas-mcp/dist/local.js"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
        "ENABLE_MCP_APPS": "true"
      }
    }
  }
}

Claude Desktop doesn't inherit your shell $PATH — use the absolute path to node. Find it by running which node in your terminal. Common values: /usr/local/bin/node or /opt/homebrew/bin/node.

Cursor — edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "figma-canvas": {
      "command": "node",
      "args": ["/path/to/figma-canvas-mcp/dist/local.js"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
        "ENABLE_MCP_APPS": "true"
      }
    }
  }
}

Windsurf — edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "figma-canvas": {
      "command": "node",
      "args": ["/path/to/figma-canvas-mcp/dist/local.js"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
        "ENABLE_MCP_APPS": "true"
      }
    }
  }
}

After saving, restart your MCP client to load the server.


Step 3 — Install the Figma Plugin

The plugin is what lets the server actually draw things inside Figma Desktop.

  1. Open Figma Desktop (the desktop app — not the browser)

  2. Go to Plugins → Development → Import plugin from manifest...

  3. Navigate to and select:

    ~/.figma-canvas-mcp/plugin/manifest.json

    The server automatically copies the plugin files to ~/.figma-canvas-mcp/ the first time it runs. Start the MCP server first if you don't see that folder yet.

  4. Open any Figma file

  5. Go to Plugins → Development → Figma Canvas Bridge to run it


Step 4 — Verify It's Working

Ask your AI assistant:

Check the Figma Canvas status

You should see an active WebSocket connection. If the plugin is running in a Figma file, the file name will appear in the response.


Related MCP server: figma-console-mcp

What You Can Do

Once connected, just describe what you want:

Show me all the colors and typography in my design system
Create a notification card with a success icon and a dismiss button,
using our brand color variables
Add a sticky note to the FigJam board for each item in this sprint
Compare the Button component in Figma against src/components/Button.tsx
Stream the console logs from my plugin while I test the interactions

Why This Fork?

This is a fork of figma-console-mcp built to run alongside the original without any conflicts. If you already use figma-console-mcp, this gives you a fully independent second MCP+Figma pair on a separate port range and plugin identity.

figma-console-mcp

figma-canvas-mcp

Port range

9223–9232

9243–9252

Plugin name

Figma Desktop Bridge

Figma Canvas Bridge

Plugin ID

figma-desktop-bridge-mcp

figma-canvas-bridge-mcp

Config dir

~/.figma-console-mcp/

~/.figma-canvas-mcp/

Runs alongside original

—

Yes

To run both at the same time:

claude mcp add figma-console -s user -e FIGMA_ACCESS_TOKEN=... -- npx -y figma-console-mcp@latest
claude mcp add figma-canvas  -s user -e FIGMA_ACCESS_TOKEN=... -- node ~/figma-canvas-mcp/dist/local.js

In Figma Desktop, run whichever plugin matches the MCP server you want active in that file.


Features

  • 84+ tools spanning the full Figma surface area

  • Design system extraction — variables, components, and styles with CSS/Tailwind export

  • AI-assisted design creation — create frames, components, and layouts via natural language

  • Variable management — full CRUD for design tokens, with batch operations (up to 100 per call)

  • Real-time console monitoring — stream plugin logs, errors, and stack traces live

  • Visual debugging — capture canvas screenshots and render components as images

  • FigJam boards — create stickies, flowcharts, tables, and code blocks

  • Slides — manage presentations, transitions, and slide content

  • Design-code parity — compare Figma specs against your code implementation

  • Multi-file support — connect to multiple open Figma files simultaneously


Tool Reference

The server exposes 84+ tools organized by category.

Core Reading

Tool

Description

figma_get_status

Check WebSocket connection and list active Figma instances

figma_get_design_system_kit

Full design system snapshot — tokens, components, styles, and specs in one call

figma_get_variables

All design tokens with multi-mode support; exports CSS and Tailwind

figma_get_styles

Color, text, and effect styles

figma_get_component

Component metadata or full reconstruction spec

figma_get_file_data

Entire file tree with configurable verbosity

figma_get_selection

Read the user's current Figma selection

Design Creation & Editing

Tool

Description

figma_execute

Run any Figma Plugin API code — create frames, shapes, text, components, and more

figma_instantiate_component

Place a component instance with specific property and variant values

figma_set_fills

Apply colors or bind design token variables to fills

figma_set_text

Update text content on any text node

figma_move_node / figma_resize_node

Reposition and resize nodes

figma_clone_node

Duplicate any node

figma_delete_node

Remove a node

figma_arrange_component_set

Organize variants into a professional grid layout

Variable (Token) Management

Tool

Description

figma_setup_design_tokens

Create a complete token system (collection + modes + variables) atomically

figma_batch_create_variables

Create up to 100 variables in a single call

figma_batch_update_variables

Update up to 100 variable values in a single call

figma_create_variable_collection

Create a token collection with named modes

figma_create_variable

Create a COLOR, FLOAT, STRING, or BOOLEAN variable

figma_update_variable

Update a variable's value in a specific mode

figma_rename_variable / figma_delete_variable

Rename or remove variables

figma_add_mode / figma_rename_mode

Add or rename modes (e.g., Dark, Mobile)

figma_resolve_variable

Traverse alias chains to get the concrete resolved value

Plugin Debugging

Tool

Description

figma_get_console_logs

Retrieve buffered logs with optional filtering

figma_watch_console

Stream logs in real time for up to 5 minutes

figma_clear_console

Clear the log buffer

figma_reload_plugin

Reload the current page or plugin

Visual Debugging

Tool

Description

figma_take_screenshot

Capture the canvas as PNG, JPG, SVG, or PDF

figma_get_component_image

Render a specific component as an image

FigJam Boards

Tool

Description

figjam_create_sticky / figjam_create_stickies

Create one or many sticky notes

figjam_create_connector

Connect nodes with labeled lines

figjam_create_shape_with_text

Flowchart shapes (diamond, ellipse, rectangle, etc.)

figjam_create_table

Create tables with cell data

figjam_create_code_block

Add syntax-highlighted code snippets

figjam_auto_arrange

Arrange nodes in grid, horizontal, or vertical layout

figjam_get_board_contents

Read all content from a FigJam board

Slides

Tool

Description

figma_list_slides / figma_get_slide_content

List or inspect slides

figma_create_slide / figma_delete_slide / figma_duplicate_slide

Manage slides

figma_set_slide_transition

Set transition effects (22 styles, 8 easing curves)

figma_add_text_to_slide / figma_add_shape_to_slide

Add content to a slide

figma_reorder_slides

Rearrange slides via a 2D grid

figma_focus_slide

Navigate to a specific slide

Design–Code Workflow

Tool

Description

figma_check_design_parity

Compare Figma specs to your code and produce a scored diff

figma_generate_component_doc

Generate markdown docs merging design and code data

figma_lint_design

Accessibility and quality checks (WCAG, hardcoded values, naming)

Comments

Tool

Description

figma_get_comments

Retrieve all comments on a file

figma_post_comment

Post a comment, optionally pinned to a specific node

figma_delete_comment

Delete a comment


Configuration

Environment Variable

Description

Default

FIGMA_ACCESS_TOKEN

Figma Personal Access Token — required

—

ENABLE_MCP_APPS

Enable Token Browser and Design System Dashboard

false

FIGMA_WS_PORT

Override the starting WebSocket port

9243

FIGMA_WS_HOST

WebSocket bind address

localhost

MCP Apps

Set ENABLE_MCP_APPS=true to unlock two interactive tools:

  • Token Browser — explore design tokens with search, filtering, mode switching, and alias resolution

  • Design System Dashboard — health audit scorecard across six categories: Naming, Tokens, Components, Accessibility, Consistency, and Coverage


How It Works

AI Client (Claude, Cursor, Windsurf)
    │
    ▼  MCP stdio transport
MCP Server  (dist/local.js)
    │
    ▼  WebSocket — ports 9243–9252
Figma Canvas Bridge Plugin  (plugin UI)
    │
    ▼  postMessage
Plugin Worker  (plugin sandbox)
    │
    ▼  Figma Plugin API
Figma Desktop

Read operations (extract variables, components, styles) go directly from the MCP server to api.figma.com using your Personal Access Token — no plugin needed.

Write operations (create nodes, bind variables, run Plugin API code) are relayed through the WebSocket bridge to the plugin, which executes them inside the Figma Desktop sandbox.

Multi-file: the server maintains WebSocket connections to all open Figma files simultaneously. Use figma_get_status to see which files are connected, figma_list_open_files to enumerate them.


Development

# Install dependencies
npm install

# Build everything (local server + Cloudflare worker + MCP apps)
npm run build

# Build just the local server
npm run build:local

# Watch mode for MCP apps
npm run dev:apps

# Type check
npm run type-check

# Run tests
npm test

# Format and lint
npm run format
npm run lint:fix

The source lives in src/. The compiled output in dist/ is committed — no build step required to use the server.


Key Differences from Upstream

Targeted changes made relative to figma-console-mcp:

File

Change

plugin/manifest.json

Name → "Figma Canvas Bridge", ID → figma-canvas-bridge-mcp, ports 9243–9252

dist/core/port-discovery.js

DEFAULT_WS_PORT=9243, PORT_FILE_PREFIX='figma-canvas-mcp-'

dist/local.js

Config dir → .figma-canvas-mcp, user-facing strings → "Canvas Bridge"

dist/core/websocket-server.js

Port range 9243–9252, import.meta.url-relative path for ui-full.html

plugin/ui.html + plugin/ui-full.html

WS_PORT_RANGE_START=9243, WS_PORT_RANGE_END=9252

The websocket-server.js fix resolves an ESM __dirname issue where ui-full.html couldn't be found when the server was launched outside its own directory. If you hit ERR_MODULE_NOT_FOUND for ui-full.html in the upstream package, this is the fix.


Troubleshooting

The plugin is not connecting

  • Start the MCP server first, then open Figma. The plugin connects on load.

  • Make sure you imported from ~/.figma-canvas-mcp/plugin/manifest.json, not from the plugin/ folder in this repo.

  • Run figma_get_status in your AI client to see the live connection state.

Port conflict

  • This fork uses ports 9243–9252 exclusively — no overlap with the upstream 9223–9232 range.

  • If another process occupies 9243, the server automatically tries 9244 through 9252.

Claude Desktop can't find node

  • Claude Desktop does not inherit your shell $PATH. Use the absolute path returned by which node.

  • Common locations: /usr/local/bin/node, /opt/homebrew/bin/node.

ENABLE_MCP_APPS has no effect

  • Environment variables are read once at startup. Restart your MCP client after any change.

~/.figma-canvas-mcp/ folder doesn't exist

  • The server creates it on first run. Start the MCP server, then check the folder.


Credits

Built on top of figma-console-mcp by Southleft. All core functionality and architecture are theirs — this fork adds port and identity isolation for parallel use.


License

MIT — see LICENSE for details.

Available Tools

87 tools
figjam_auto_arrangeA

Arrange nodes on a FigJam board in a grid, horizontal row, or vertical column layout. Use after batch-creating elements to organize them neatly.

Inputs: nodeIds (required), layout, columns, spacing.

figjam_create_code_blockB

Create a code block on a FigJam board. Use for sharing code snippets, config examples, or technical documentation in collaborative boards.

Inputs: code (required), x, y, language.

figjam_create_connectorB

Connect two nodes with a connector line in FigJam. Use to create flowcharts, diagrams, and relationship maps.

Nodes must exist on the board (stickies, shapes, etc.). Use their node IDs from creation results.

Inputs: endNodeId (required), startNodeId (required), label.

figjam_create_shape_with_textA

Create a labeled shape on a FigJam board. Use for flowchart nodes, process diagrams, and visual organization.

Shape types: ROUNDED_RECTANGLE (default), DIAMOND, ELLIPSE, TRIANGLE_UP, TRIANGLE_DOWN, PARALLELOGRAM_RIGHT, PARALLELOGRAM_LEFT, ENG_DATABASE, ENG_QUEUE, ENG_FILE, ENG_FOLDER

Inputs: x, y, text, shapeType.

figjam_create_stickiesA

Batch create multiple sticky notes on a FigJam board (max 200). Use this to populate boards from structured data (meeting notes, brainstorm ideas, etc.).

Colors: YELLOW, BLUE, GREEN, PINK, ORANGE, PURPLE, RED, LIGHT_GRAY, GRAY

Inputs: stickies (required).

figjam_create_stickyB

Create a sticky note on a FigJam board. Only works in FigJam files.

Colors: YELLOW, BLUE, GREEN, PINK, ORANGE, PURPLE, RED, LIGHT_GRAY, GRAY (default: YELLOW)

Inputs: text (required), x, y, color.

figjam_create_tableB

Create a table on a FigJam board with optional cell data. Use for structured data display, comparison matrices, and organized information.

Data format: 2D array of strings, e.g. [["Header1", "Header2"], ["Row1Col1", "Row1Col2"]]

Inputs: rows (required), columns (required), x, y, +1 more.

figjam_get_board_contentsA

Read all content from a FigJam board. Returns stickies, shapes, connectors, tables, code blocks, and sections with their text content and positions.

Use this to understand what's on a board before modifying it, or to extract structured data from collaborative sessions.

Filters: Pass nodeTypes to limit results (e.g., ["STICKY"] for only stickies). Omit for everything.

Inputs: maxNodes, nodeTypes.

figjam_get_connectionsA

Read the connection graph from a FigJam board. Returns all connectors with their start/end node references and labels.

Use this to understand relationships, flowcharts, and diagrams. Returns edges as {startNodeId, endNodeId, label} plus a summary of connected nodes.

Inputs: no named parameters.

figma_add_component_propertyB

Add a new component property to a component or component set. Properties enable dynamic content and behavior in component instances. Supported types: BOOLEAN (toggle), TEXT (string), INSTANCE_SWAP (component swap), VARIANT (variant selection).

Inputs: type (required), nodeId (required), defaultValue (required), propertyName (required).

figma_add_modeA

Add a new mode to an existing Figma variable collection. Modes allow variables to have different values for different contexts (e.g., Light/Dark themes, device sizes). Requires the Canvas Bridge plugin to be running.

Inputs: modeName (required), collectionId (required).

figma_add_shape_to_slideC

Add a rectangle or ellipse shape to a specific slide with optional fill color.

Inputs: x (required), y (required), width (required), height (required), +3 more.

figma_add_text_to_slideB

Add a new text element to a specific slide. Uses Inter font by default.

Inputs: text (required), slideId (required), x, y, +1 more.

figma_arrange_component_setA

Organize a component set with Figma's native purple dashed visualization. Use after creating variants, adding states (hover/disabled/pressed), or when component sets need cleanup.

Recreates the set using figma.combineAsVariants() for proper Figma integration, applies purple dashed border styling, and arranges variants in a labeled grid (columns = last property like State, rows = other properties like Type+Size). Creates a white container with title, row/column labels, and the component set.

Inputs: options, componentSetId, componentSetName.

figma_batch_create_variablesA

Create multiple variables in one operation. Use instead of calling figma_create_variable repeatedly — up to 50x faster for bulk operations. Get collection IDs from figma_get_variables first. Requires Canvas Bridge plugin.

Inputs: variables (required), collectionId (required).

figma_batch_get_node_statesA

Read fills, strokes, and bound variable IDs from multiple nodes in one call. Use instead of calling figma_get_node_state in a loop — 10-50x faster for bulk audits. Per-node errors are returned inline (nodes not found return an error field). Requires Desktop Bridge connection.

Inputs: nodeIds (required).

figma_batch_update_variablesA

Update multiple variable values in one operation. Use instead of calling figma_update_variable repeatedly — up to 50x faster for bulk updates. Get variable/mode IDs from figma_get_variables first. Requires Canvas Bridge plugin.

Inputs: updates (required).

figma_capture_screenshotA

Capture a screenshot of a node using the plugin's exportAsync API. IMPORTANT: This tool captures the CURRENT state from the plugin runtime (not cloud state like REST API), making it reliable for validating changes immediately after making them. Use this instead of figma_get_component_image when you need to verify that changes were applied correctly. Requires Desktop Bridge connection (Figma Desktop with plugin running).

Inputs: scale, format, nodeId.

figma_check_design_parityA

Compare a Figma component's design specs against code-side data to find discrepancies. Returns a parity score, categorized discrepancies, and actionable fix items for both design-side (Figma tool calls) and code-side (file edits). Read the component source code first, then pass the data in codeSpec.

Inputs: nodeId (required), codeSpec (required), enrich, fileUrl, +1 more.

figma_clear_consoleA

Clear the console log buffer. Safely clears the buffer without disrupting the connection. Returns number of logs cleared.

Inputs: no named parameters.

figma_clone_nodeC

Duplicate a node. The clone is placed at a slight offset from the original.

Inputs: nodeId (required).

figma_create_childA

Create a new child node inside a parent container. Always place inside an existing Section or Frame — never on a bare page. If no suitable parent exists, create a Section first. Clean up any empty or orphaned nodes if the operation fails.

Inputs: nodeType (required), parentId (required), properties.

figma_create_slideC

Create a new blank slide in the Figma Slides presentation. Optionally specify grid position.

Inputs: col, row.

figma_create_variableA

Create a single Figma variable. For multiple variables, use figma_batch_create_variables instead (10-50x faster). Use figma_get_variables first to get collection IDs. Supports COLOR, FLOAT, STRING, BOOLEAN. Requires Canvas Bridge plugin.

Inputs: name (required), collectionId (required), resolvedType (required), description, +1 more.

figma_create_variable_collectionA

Create an empty variable collection. To create a collection WITH variables and modes in one step, use figma_setup_design_tokens instead. Requires Canvas Bridge plugin.

Inputs: name (required), additionalModes, initialModeName.

figma_delete_commentA

Delete a comment from a Figma file by its comment ID. Use figma_get_comments to find comment IDs first.

Inputs: comment_id (required), fileUrl.

figma_delete_component_propertyA

Delete a component property. Only works with BOOLEAN, TEXT, and INSTANCE_SWAP properties (not VARIANT). This is a destructive operation.

Inputs: nodeId (required), propertyName (required).

figma_delete_nodeB

Delete a node from the canvas. WARNING: This is a destructive operation (can be undone with Figma's undo).

Inputs: nodeId (required).

figma_delete_slideB

Delete a slide from the presentation. WARNING: This is a destructive operation (can be undone with Figma's undo).

Inputs: slideId (required).

figma_delete_variableA

Delete a Figma variable. WARNING: This is a destructive operation that cannot be undone (except with Figma's undo). Use figma_get_variables first to get variable IDs. Requires the Canvas Bridge plugin to be running.

Inputs: variableId (required).

figma_delete_variable_collectionA

Delete a Figma variable collection and ALL its variables. WARNING: This is a destructive operation that deletes all variables in the collection and cannot be undone (except with Figma's undo). Requires the Canvas Bridge plugin to be running.

Inputs: collectionId (required).

figma_duplicate_slideA

Duplicate an existing slide. The clone is placed adjacent to the original.

Inputs: slideId (required).

figma_edit_component_propertyB

Edit an existing component property. Can change the name, default value, or preferred values (for INSTANCE_SWAP). Use the full property name including the unique suffix.

Inputs: nodeId (required), newValue (required), propertyName (required).

figma_executeA

Execute arbitrary JavaScript in Figma's plugin context with full access to the figma API. Use for complex operations not covered by other tools. Requires Canvas Bridge plugin. CAUTION: Can modify your document.

COMPONENT INSTANCES: For instances (node.type === 'INSTANCE'), use figma_set_instance_properties — direct text editing FAILS SILENTLY. Check instance.componentProperties for available props (may have #nodeId suffixes).

RESULT ANALYSIS: Check resultAnalysis.warning for silent failures (empty arrays, null returns).

VALIDATION: After creating/modifying visuals: screenshot with figma_capture_screenshot, check alignment/spacing/proportions, iterate up to 3x.

PLACEMENT: Always create components inside a Section or Frame, never on blank canvas. Use parent.insertChild(0, bg) for z-ordering backgrounds behind content.

HOUSEKEEPING (MANDATORY): Before creating: screenshot the target page to see existing content and find clear space. When creating: place inside a named Section, positioned BELOW or AWAY from existing content. Never overlap. After creating: screenshot to verify clean placement and no overlaps. On failure/retry: DELETE any partial artifacts (empty frames, orphaned layers, blank pages) before retrying. Use node.remove() to clean up. Pages: NEVER create a new page if one with that name already exists — use the existing one. If you created a blank page during a failed attempt, delete it. Layers: If your code creates helper frames, placeholder nodes, or intermediate layers that aren't part of the final result, remove them.

Inputs: code (required), timeout.

figma_focus_slideB

Navigate to and focus a specific slide in single-slide view.

Inputs: slideId (required).

figma_generate_component_docA

Generate AI-complete component documentation from a Figma component. Produces structured markdown with anatomy, per-variant color tokens, typography, content guidelines (parsed from Figma description), icon mapping, spacing tokens, and design-code parity analysis. Merges Figma design data with optional code-side info (CVA definitions, sub-component APIs, source files). Output works with any docs platform. For richest output, read the component source code first and pass codeInfo.

Inputs: nodeId (required), enrich, fileUrl, codeInfo, +4 more.

figma_get_commentsA

Get comments on a Figma file. Returns comment threads with author, message, timestamps, and pinned node locations. Use include_resolved to also see resolved comments.

Inputs: as_md, fileUrl, include_resolved.

figma_get_componentA

Get a SINGLE component's metadata or reconstruction specification. Two export formats: (1) 'metadata' (default) - comprehensive documentation with properties, variants, and design tokens for style guides and references, (2) 'reconstruction' - node tree specification compatible with Figma Component Reconstructor plugin for programmatic component creation. IMPORTANT: For local/unpublished components with metadata format, ensure the Figma Desktop Bridge plugin is running (Right-click in Figma → Plugins → Development → Figma Desktop Bridge) to get complete description data. TIP: To get ALL components with visual specs in one call, prefer figma_get_design_system_kit instead.

Inputs: nodeId (required), enrich, format, fileUrl.

figma_get_component_detailsA

Get full details for a specific component including all variants, properties, and keys needed for instantiation. Use the component key or name from figma_search_components.

Inputs: componentKey, componentName.

figma_get_component_for_developmentA

Get component data optimized for UI implementation, includes rendered image + filtered implementation context (layout, typography, visual properties). Use when user asks to: 'build this component', 'implement this in React/Vue', 'generate code for', or needs both visual reference and technical specs. Automatically includes 2x scale image unless includeImage=false. Best for: UI development, code generation, design-to-code workflows. For just metadata, use figma_get_component; for just image, use figma_get_component_image.

Inputs: nodeId (required), fileUrl, includeImage.

figma_get_component_imageA

Render a specific component or node as an image (PNG, JPG, SVG, PDF). Returns image URL valid for 30 days. Use when user asks for: component screenshot, visual preview, rendered output, or 'show me'. NOT for component metadata/properties (use figma_get_component). NOT for getting code/layout data (use figma_get_component_for_development). Best for: visual references, design review, documentation.

Inputs: nodeId (required), scale, format, fileUrl.

figma_get_console_logsB

Retrieve console logs from Figma Desktop. FOR PLUGIN DEVELOPERS: This works immediately - no navigation needed! Just check logs, run your plugin in Figma Desktop, check logs again. All plugin logs ([Main], [Swapper], etc.) appear instantly.

Inputs: count, level, since.

figma_get_design_changesA

Get recent document changes detected in Figma. Returns buffered change events including which nodes changed, whether styles were modified, and change counts. WebSocket-only — events are captured via Canvas Bridge plugin. Use this to understand what changed since you last checked.

Inputs: clear, count, since.

figma_get_design_system_kitA

PREFERRED TOOL for design system extraction — replaces separate figma_get_styles, figma_get_variables, and figma_get_component calls. Returns tokens, components, and styles in a single optimized response with adaptive compression for large systems. Includes component visual specs (exact colors, padding, typography, layout), rendered screenshots, token values per mode (light/dark), and resolved style values. Use this instead of calling individual tools to avoid context window overflow. Ideal for AI code generation — use visualSpec for pixel-accurate reproduction.

Inputs: format, fileKey, include, componentIds, +1 more.

figma_get_design_system_summaryA

Get a compact overview of the design system. Returns categories, component counts, and token collection names WITHOUT full details. Use this first to understand what's available, then use figma_search_components to find specific components. This tool is optimized for minimal token usage.

Inputs: forceRefresh.

figma_get_file_dataA

Get full file structure and document tree. WARNING: Can consume large amounts of tokens. NOT recommended for component descriptions (use figma_get_component instead). Best for understanding file structure or finding component nodeIds. Start with verbosity='summary' and depth=1 for initial exploration.

Inputs: depth, enrich, fileUrl, nodeIds, +1 more.

figma_get_file_for_pluginA

Get file data optimized for plugin development with filtered properties (IDs, structure, plugin data, component relationships). Excludes visual properties (fills, strokes, effects) to reduce payload. Use when user asks for: plugin development, file structure for manipulation, node IDs for plugin API. NOT for component descriptions (use figma_get_component). NOT for visual/styling data (use figma_get_component_for_development). Supports deeper tree traversal (max depth=5) than figma_get_file_data.

Inputs: depth, fileUrl, nodeIds.

figma_get_focused_slideB

Get the slide currently focused in single-slide view.

Inputs: no named parameters.

figma_get_library_componentsA

Discover published components from a shared/team library file.

USE THIS when you need to use components from a published design system library (a different file than the one currently open). This bridges the gap between library discovery and instantiation.

WORKFLOW:

  1. Call this tool with the library file's URL or file key

  2. Browse the returned components — results include COMPONENT_SET (with variants array) and standalone COMPONENT types

  3. Use figma_instantiate_component with a VARIANT key (from the variants array inside a COMPONENT_SET result, NOT the component set key itself)

SEARCH NOTE: The query filter matches both component names AND descriptions. If you get unexpected results (e.g., "Accordion" when searching "Button"), verify the result name matches what you need — it may have matched on a description mention.

MULTI-FILE TIP: If you need to find a specific component and REST API search returns too many results, you can switch to the library file via figma_navigate, use figma_execute to find the exact component and its variant key, then switch back.

NOTE: Requires FIGMA_ACCESS_TOKEN to be set (uses the Figma REST API to read the library file).

Inputs: limit, query, offset, libraryFileKey, +2 more.

figma_get_node_stateA

Read fills, strokes, and their bound variable IDs from any node. Use when auditing what design tokens are applied to a specific node. Returns paint objects with boundVariableId for each fill/stroke. NOT for component property definitions (use figma_get_component). NOT for variable values (use figma_get_variables). Requires Desktop Bridge connection.

Inputs: nodeId (required).

figma_get_selectionA

Get the currently selected nodes in Figma. Returns node IDs, names, types, and dimensions. WebSocket-only — requires Canvas Bridge plugin. Use this to understand what the user is pointing at instead of asking them to describe it.

Inputs: verbose.

figma_get_slide_contentB

Get the content tree of a specific slide including all text, shapes, and frames. Returns node hierarchy with properties.

Inputs: slideId (required).

figma_get_slide_gridB

Get the 2D slide grid layout showing how slides are organized in rows and columns.

Inputs: no named parameters.

figma_get_slide_transitionA

Get the current transition settings for a slide (style, duration, easing curve, timing).

Inputs: slideId (required).

figma_get_statusA

Check connection status to Figma Desktop. Reports transport status and connection health via the Canvas Bridge plugin (WebSocket transport).

Inputs: no named parameters.

figma_get_stylesA

Get all styles (color, text, effects, grids) from a Figma file with optional code exports. Use when user asks for: text styles, color palette, design system styles, typography, or style documentation. Returns organized style definitions with resolved values. NOT for design tokens/variables (use figma_get_variables). Set enrich=true for CSS/Tailwind/Sass code examples. Supports verbosity control to manage payload size. TIP: For full design system extraction (tokens + components + styles combined), prefer figma_get_design_system_kit instead — it returns everything in one optimized call.

Inputs: enrich, fileUrl, verbosity, include_usage, +2 more.

figma_get_token_valuesA

Get actual values for design tokens (colors, spacing, etc). Use after figma_get_design_system_summary to get specific token values for implementation.

Inputs: type, limit, filter.

figma_get_variablesA

Extract design tokens and variables from a Figma file with code export support (CSS, Tailwind, TypeScript, Sass). Use when user asks for: design system tokens, variables, color/spacing values, theme data, or code exports. Handles multi-mode variables (Light/Dark themes). NOT for component metadata (use figma_get_component). Supports filtering by collection/mode/name and verbosity control to prevent token exhaustion. Enterprise plan required for Variables API; automatically falls back to Styles API or console-based extraction if unavailable. TIP: For full design system extraction (tokens + components + styles combined), prefer figma_get_design_system_kit instead — it returns everything in one optimized call.

Inputs: mode, page, enrich, format, +15 more.

figma_instantiate_componentA

Create an instance of a component from the design system — works with BOTH local and published library components.

For local components: Pass BOTH componentKey AND nodeId together. Most local/unpublished components require nodeId. For library components: Pass just the componentKey from figma_get_library_components or figma_search_components (with libraryFileKey). The component will be imported from the published library automatically.

CRITICAL: Use VARIANT keys, not COMPONENT_SET keys! When importing from a published library, use the key of a specific variant (type: "COMPONENT"), NOT the parent component set key (type: "COMPONENT_SET"). Component set keys will fail with importComponentByKeyAsync. In figma_get_library_components results, look inside the "variants" array for individual variant keys.

Font loading: Library components may use fonts not loaded in the current file. If instantiation fails with a font error, load the required fonts first via figma_execute before retrying (e.g., await figma.loadFontAsync({ family: "Geist", style: "Regular" })).

IMPORTANT: Always re-search before instantiating! NodeIds are session-specific and may be stale from previous conversations. ALWAYS search for components at the start of each design session to get current, valid identifiers.

VISUAL VALIDATION WORKFLOW: After instantiating components, use figma_take_screenshot to verify the result looks correct. Check placement, sizing, and visual balance.

Inputs: nodeId, variant, parentId, position, +2 more.

figma_lint_designA

Run accessibility (WCAG) and design quality checks on the current page or a specific node tree. Checks color contrast ratios (variable-aware — resolves token bindings to actual colors), non-text contrast (SC 1.4.11), text sizing, touch targets, hardcoded values, detached components, naming conventions, and layout quality. Returns categorized findings with severity levels. Use natural language like 'check my design for accessibility issues' or 'lint this page'. Requires Canvas Bridge plugin.

Inputs: rules, nodeId, maxDepth, maxFindings.

figma_list_open_filesA

List all Figma files currently connected via the Canvas Bridge plugin. Shows which files have the plugin open and which one is the active target for tool calls. Use figma_navigate to switch between files. WebSocket multi-client mode — each file with the Canvas Bridge plugin maintains its own connection.

Inputs: no named parameters.

figma_list_slidesA

List all slides in the current Figma Slides presentation with their IDs, names, grid positions, and skip status. Only works in Slides files.

Inputs: no named parameters.

figma_move_nodeC

Move a node to a new position within its parent.

Inputs: x (required), y (required), nodeId (required).

figma_navigateA

Navigate browser to a Figma URL and start console monitoring. ALWAYS use this first when starting a new debugging session or switching files. Initializes browser connection and begins capturing console logs. Use when user provides a Figma URL or says: 'open this file', 'debug this design', 'switch to'. Returns navigation status and current URL. If the file is already open in a tab, switches to it without reloading.

Inputs: url (required).

figma_post_commentA

Post a comment on a Figma file, optionally pinned to a specific design node. Use after figma_check_design_parity to notify designers of drift when code is the canonical source. Supports replies to existing comment threads. Limitation: @mentions are a Figma UI-only feature — including '@name' in the message renders as plain text, not a clickable mention tag, and does not trigger Figma notifications.

Inputs: message (required), x, y, fileUrl, +2 more.

figma_reconnectA

Force a complete reconnection to Figma Desktop. Use when connection seems stale or after switching files.

Inputs: no named parameters.

figma_reload_pluginA

Reload the current Figma page/plugin to test code changes. Optionally clears console logs before reload. Use when user says: 'reload plugin', 'refresh page', 'restart plugin', 'test my changes'. Returns reload confirmation and current URL. Best for rapid iteration during plugin development.

Inputs: clearConsole.

figma_rename_modeB

Rename an existing mode in a Figma variable collection. Requires the Canvas Bridge plugin to be running.

Inputs: modeId (required), newName (required), collectionId (required).

figma_rename_nodeC

Rename a node in the layer panel.

Inputs: nodeId (required), newName (required).

figma_rename_variableB

Rename an existing Figma variable. This updates the variable's name while preserving all its values and settings. Requires the Canvas Bridge plugin to be running.

Inputs: newName (required), variableId (required).

figma_reorder_slidesB

Reorder slides by providing a new 2D array of slide IDs. Each inner array represents a row in the grid. WARNING: This is a destructive operation.

Inputs: grid (required).

figma_resize_nodeA

Resize a node to specific dimensions. By default respects child constraints; use withConstraints=false to ignore them.

Inputs: width (required), height (required), nodeId (required), withConstraints.

figma_resolve_variableA

Resolve a variable's alias chain to its concrete value (hex color, number, string, boolean). Traverses VARIABLE_ALIAS chains across collections to the final concrete value. Returns resolved value per mode (Light/Dark etc.). Use before figma_set_fills to verify what color a token resolves to. NOT for listing all variables (use figma_get_variables). Requires Desktop Bridge connection.

Inputs: variableId (required), modeId.

figma_search_componentsA

Search for components by name, category, or description. Returns paginated results with component keys for instantiation. Automatically loads the design system cache if needed.

NEW: Cross-file library search! Pass a libraryFileKey or libraryFileUrl to search for components in a published shared library (different file). This uses the REST API and requires FIGMA_ACCESS_TOKEN.

Without libraryFileKey/libraryFileUrl, searches the currently open file (local components via Plugin API).

Inputs: limit, query, offset, category, +2 more.

figma_set_descriptionC

Set the description text on a component, component set, or style. Descriptions appear in Dev Mode and help document design intent. Supports plain text and markdown formatting.

Inputs: nodeId (required), description (required), descriptionMarkdown.

figma_set_fillsA

Set the fill colors on a node. Accepts hex color strings (e.g., '#FF0000') or variable IDs for design token binding. To bind a design token: use { type: 'SOLID', variableId: 'VariableID:8:2258' }. Get variableIds from figma_get_variables or figma_get_node_state. Use figma_resolve_variable to verify what color a token resolves to before binding.

Inputs: fills (required), nodeId (required).

figma_set_image_fillA

Set an image fill on one or more Figma nodes. The imageData parameter accepts EITHER a base64-encoded image string (JPEG/PNG) OR an absolute file path starting with / (e.g. /tmp/photo.jpg). When a file path is provided, the server reads the image from disk — this is preferred for large images since it avoids parameter truncation. The image is decoded in the browser bridge and passed as raw bytes to the Figma plugin. Requires Canvas Bridge plugin.

Inputs: nodeIds (required), imageData (required), scaleMode.

figma_set_instance_propertiesA

Update component properties on a component instance. IMPORTANT: Use this tool instead of trying to edit text nodes directly when working with component instances. Components often expose TEXT, BOOLEAN, INSTANCE_SWAP, and VARIANT properties that control their content. Direct text node editing may fail silently if the component uses properties. This tool handles the #nodeId suffix pattern automatically. Requires Desktop Bridge connection.

Inputs: nodeId (required), properties (required).

figma_set_slides_view_modeA

Toggle the Figma Slides viewport between grid view and single-slide view.

Inputs: mode (required).

figma_set_slide_transitionB

Set the transition effect for a slide (style, duration, easing curve). Triggers on click by default.

Inputs: style (required), slideId (required), curve, duration.

figma_set_strokesB

Set the stroke (border) on a node. Accepts hex color strings and optional stroke weight.

Inputs: nodeId (required), strokes (required), strokeWeight.

figma_set_textB

Set the text content of a text node. Optionally adjust font size.

Inputs: text (required), nodeId (required), fontSize.

figma_setup_design_tokensA

Create a complete design token structure in one operation: collection, modes, and all variables. Ideal for importing CSS custom properties or design tokens into Figma. Requires Canvas Bridge plugin.

Inputs: modes (required), tokens (required), collectionName (required).

figma_skip_slideB

Toggle whether a slide is skipped during presentation mode.

Inputs: skip (required), slideId (required).

figma_take_screenshotA

Export an image of the current Figma page or specific node via REST API. Returns an image URL (valid 30 days). Use for visual validation after design changes — check alignment, spacing, proportions. Pass nodeId to target specific elements. For components, prefer figma_get_component_image.

Inputs: scale, format, nodeId.

figma_update_variableA

Update a single variable's value. For multiple updates, use figma_batch_update_variables instead (10-50x faster). Use figma_get_variables first for IDs. COLOR: hex '#FF0000', FLOAT: number, STRING: text, BOOLEAN: true/false. Requires Canvas Bridge plugin.

Inputs: value (required), modeId (required), variableId (required).

figma_watch_consoleA

Stream console logs in real-time for a specified duration (max 5 minutes). Use for monitoring plugin execution while user tests manually. Returns all logs captured during watch period with summary statistics. NOT for retrieving past logs (use figma_get_console_logs). Best for: watching plugin output during manual testing, debugging race conditions, monitoring async operations.

Inputs: level, duration.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 87 tools

    Disambiguation2/5

    Many tools have overlapping boundaries despite some description disambiguation: figma_take_screenshot, figma_capture_screenshot, and figma_get_component_image all serve visual capture; figma_get_design_system_summary, figma_get_design_system_kit, figma_get_styles, and figma_get_variables overlap in design-system extraction; figma_get_component, figma_get_component_details, and figma_get_component_for_development are easy to confuse. An agent can often recover from the descriptions, but misselection is likely across this 87-tool set.

    Naming Consistency5/5

    Tool names consistently use snake_case with clear figma_ or figjam_ prefixes followed by verb_object patterns such as figma_create_slide, figma_get_variables, and figjam_create_sticky. The prefix split cleanly separates Figma design/Slides operations from FigJam board operations.

    Tool Count1/5

    87 tools is far beyond a well-scoped surface for a single MCP server, even for a broad Figma canvas product. Many capabilities are split into single-item and batch variants or multiple overlapping extraction tools, making the set feel like several servers merged together.

    Completeness4/5

    The surface covers a very broad domain: slides, FigJam boards, variables, components, styles, comments, screenshots, design-system extraction, and plugin debugging. There are minor gaps such as direct component/style creation or update operations, but figma_execute provides an escape hatch and most core workflows are covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to read, analyze, and modify Figma designs, manage design tokens, and create prototype connections, all while keeping data local.
      63
      267 npm
      10
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to access and manipulate Figma designs, including extracting design systems, creating and debugging UI components, and syncing design tokens bidirectionally.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      A local MCP server paired with a Figma desktop plugin that enables AI agents to read, build, edit, and animate real, editable designs in the Figma file you have open. It supports layers, components and variants, styles, variables and modes, prototypes, keyframes, video export, and self-checking of layouts, motion, and FigJam or Slides reads.
      140
      323 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables local MCP-capable assistants to connect to Figma Desktop to read documents, pages, and selections, edit native layers and components, and export PNG/SVG across multiple files without Figma API keys.
      2
      MIT