Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

Talk to Figma MCP

A Model Context Protocol (MCP) integration that enables AI-powered tools like Cursor, Windsurf, Cline and Claude to communicate with Figma for reading designs and modifying them programmatically.

https://github.com/user-attachments/assets/129a14d2-ed73-470f-9a4c-2240b2a4885c

The easiest way to use Talk to Figma MCP is via npx/bunx - no need to clone the repository!

1. Start the WebSocket Server

In one terminal, run:

npx talk-to-figma-mcp-tool --socket

Or with Bun:

bunx talk-to-figma-mcp-tool --socket

2. Configure Your Editor

Add the MCP server to your editor's configuration:

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "TalkToFigma": {
      "command": "npx",
      "args": ["-y", "talk-to-figma-mcp-tool"]
    }
  }
}

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "TalkToFigma": {
      "command": "npx",
      "args": ["-y", "talk-to-figma-mcp-tool"]
    }
  }
}

Windsurf (~/.windsurf/mcp.json):

{
  "mcpServers": {
    "TalkToFigma": {
      "command": "npx",
      "args": ["-y", "talk-to-figma-mcp-tool"]
    }
  }
}

Zed (settings.json):

{
  "context_servers": {
    "TalkToFigma": {
      "command": "npx",
      "args": ["-y", "talk-to-figma-mcp-tool"]
    }
  }
}

3. Install the Figma Plugin

Option A: Use the CLI to find the plugin path (Easiest)

npx talk-to-figma-mcp-tool --plugin

This will show you the exact path to the plugin files on your system.

Option B: Download from GitHub

# Using curl to download just the plugin files
mkdir figma-mcp-plugin && cd figma-mcp-plugin
curl -O https://raw.githubusercontent.com/thanatusdev/talk-to-figma-mcp/main/src/cursor_mcp_plugin/manifest.json
curl -O https://raw.githubusercontent.com/thanatusdev/talk-to-figma-mcp/main/src/cursor_mcp_plugin/code.js
curl -O https://raw.githubusercontent.com/thanatusdev/talk-to-figma-mcp/main/src/cursor_mcp_plugin/ui.html

Import into Figma:

  1. In Figma, go to Plugins > Development > Import plugin from manifest...

  2. Select the manifest.json file from the plugin folder

  3. The plugin "Talk to Figma MCP" will appear in your plugins menu

4. Connect and Use

  1. Open Figma and run the "Talk to Figma MCP" plugin from the plugins menu

  2. The plugin will show a channel name - copy it

  3. In your AI editor, use the join_channel tool with the channel name

  4. Start designing with AI!

Related MCP server: MCP Figma

Project Structure

  • src/talk_to_figma_mcp/ - TypeScript MCP server for Figma integration

  • src/cursor_mcp_plugin/ - Figma plugin for communicating with your editor

  • src/socket.ts - WebSocket server that facilitates communication

Development Setup

If you want to contribute or modify the project:

Prerequisites

Install Bun:

curl -fsSL https://bun.sh/install | bash

Installation

git clone https://github.com/anthropics/talk-to-figma-mcp.git
cd talk-to-figma-mcp
bun install

Running Locally

  1. Start the WebSocket server:

bun run socket
  1. The MCP server runs automatically when your editor invokes it

Building

bun run build

Quick Video Tutorial

Video Link

Design Automation Example

Bulk text content replacement

Thanks to @dusskapark for contributing the bulk text replacement feature. Here is the demo video.

Windows + WSL Guide

  1. Install bun via powershell:

powershell -c "irm bun.sh/install.ps1|iex"
  1. Set environment variable to allow connections from WSL:

export FIGMA_WS_HOST=0.0.0.0
npx talk-to-figma-mcp-tool --socket

Environment Variables

Variable

Description

Default

FIGMA_WS_PORT

WebSocket server port

3055

FIGMA_WS_HOST

Host binding (0.0.0.0 for external connections)

localhost

MCP Tools

The MCP server provides 60+ tools for interacting with Figma:

Document & Selection

  • get_document_info - Get information about the current Figma document

  • get_selection - Get information about the current selection

  • read_my_design - Get detailed node information about the current selection

  • get_node_info - Get detailed information about a specific node

  • get_nodes_info - Get detailed information about multiple nodes

Creating Elements

  • create_rectangle - Create a new rectangle

  • create_frame - Create a new frame with auto-layout support

  • create_text - Create a new text node

  • create_ellipse - Create a new ellipse/circle

  • create_line - Create a new line

Styling

  • set_fill_color - Set the fill color of a node (RGBA)

  • set_stroke_color - Set the stroke color and weight

  • set_gradient_fill - Apply gradient fills (linear, radial, angular, diamond)

  • set_corner_radius - Set corner radius with per-corner control

  • set_effects - Apply visual effects (shadows, blurs)

  • set_blend_mode - Set layer blend mode

  • set_opacity - Set node opacity

  • set_visibility - Show/hide nodes

Text Operations

  • scan_text_nodes - Scan text nodes with intelligent chunking

  • set_text_content - Set text content of a single node

  • set_multiple_text_contents - Batch update multiple text nodes

  • set_text_style - Set advanced typography (line-height, letter-spacing, decoration)

Layout & Organization

  • set_auto_layout - Configure auto-layout properties

  • set_constraints - Set responsive constraints

  • move_node - Move a node to a new position

  • resize_node - Resize a node

  • delete_node - Delete a node

  • delete_multiple_nodes - Delete multiple nodes efficiently

  • clone_node - Duplicate a node

  • group_nodes - Group multiple nodes

  • ungroup_nodes - Ungroup nodes

  • flatten_node - Flatten to vector

  • insert_child - Move node into a parent

  • rename_node - Rename a node

  • set_locked - Lock/unlock nodes

Navigation & Selection

  • get_children - Get all direct children of a node

  • get_parent - Get the parent node

  • find_nodes_by_name - Find nodes by name pattern (supports wildcards)

  • set_selection - Programmatically select nodes

  • scroll_into_view - Scroll viewport to show a node

Design Analysis

  • get_all_colors - Extract all colors used in a design

  • get_all_fonts - List all fonts used (typography audit)

  • node_exists - Check if a node exists (validation)

Annotations

  • get_annotations - Get annotations in document or node

  • set_annotation - Create/update an annotation

  • set_multiple_annotations - Batch create/update annotations

  • scan_nodes_by_types - Scan for nodes by type

Components & Styles

  • get_styles - Get local styles

  • get_local_components - Get local components

  • create_component_instance - Create a component instance

Export

  • export_node_as_image - Export as PNG, JPG, SVG, or PDF

Connection

  • join_channel - Join a channel to communicate with Figma

Best Practices

  1. Always join a channel before sending commands

  2. Get document overview using get_document_info first

  3. Check current selection with get_selection before modifications

  4. Use batch operations when possible for better performance

  5. Verify changes using get_node_info or export_node_as_image

  6. Handle errors appropriately - all commands can throw exceptions

For Large Designs

  • Use chunking parameters in scan_text_nodes

  • Monitor progress through WebSocket updates

  • Use find_nodes_by_name to locate specific elements

For Text Operations

  • Use set_multiple_text_contents for batch updates

  • Leverage scan_text_nodes for discovery

  • Verify with targeted exports

Troubleshooting

Connection Issues

  1. Ensure the WebSocket server is running on port 3055

  2. Check that the Figma plugin is connected to the same channel

  3. Verify no firewall is blocking localhost connections

Plugin Not Appearing

  1. Make sure you imported the plugin via Plugins > Development > Import plugin from manifest...

  2. Refresh Figma if needed

Commands Not Working

  1. Verify you've joined a channel with join_channel

  2. Check the WebSocket server terminal for error messages

  3. Ensure the Figma file is open and editable

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Available Tools

52 tools
clone_nodeB

Clone an existing node in Figma

Inputs: nodeId (required), x, y.

create_component_instanceC

Create an instance of a component in Figma

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

create_ellipseC

Create a new ellipse/circle in Figma

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

create_frameC

Create a new frame in Figma

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

create_lineC

Create a new line in Figma

Inputs: endX (required), endY (required), startX (required), startY (required), +4 more.

create_rectangleB

Create a new rectangle in Figma

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

create_textC

Create a new text element in Figma

Inputs: x (required), y (required), text (required), name, +4 more.

delete_multiple_nodesA

Delete multiple nodes from Figma at once

Inputs: nodeIds (required).

delete_nodeC

Delete a node from Figma

Inputs: nodeId (required).

export_node_as_imageB

Export a node as an image from Figma

Inputs: nodeId (required), scale, format.

find_nodes_by_nameC

Find nodes by name pattern within a parent node

Inputs: nodeId (required), pattern (required), type.

flatten_nodeC

Flatten a node to a single vector (like Outline Stroke)

Inputs: nodeId (required).

get_all_colorsB

Extract all unique colors used in a node and its children (for design analysis)

Inputs: nodeId (required).

get_all_fontsA

Extract all fonts used in a node and its children (for typography audit)

Inputs: nodeId (required).

get_annotationsA

Get all annotations in the current document or specific node

Inputs: nodeId, includeCategories.

get_childrenB

Get all direct children of a node

Inputs: nodeId (required).

get_document_infoB

Get detailed information about the current Figma document

Inputs: no named parameters.

get_local_componentsA

Get all local components from the Figma document

Inputs: no named parameters.

get_node_infoB

Get detailed information about a specific node in Figma

Inputs: nodeId (required).

get_nodes_infoA

Get detailed information about multiple nodes in Figma

Inputs: nodeIds (required).

get_parentC

Get the parent node of a given node

Inputs: nodeId (required).

get_selectionB

Get information about the current selection in Figma

Inputs: no named parameters.

get_stylesA

Get all styles from the current Figma document

Inputs: no named parameters.

group_nodesC

Group multiple nodes together in Figma

Inputs: nodeIds (required), name.

insert_childC

Move a node into a parent container at a specific index

Inputs: childId (required), parentId (required), index.

join_channelB

Join a specific channel to communicate with Figma

Inputs: channel.

move_nodeA

Move a node to a new position in Figma

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

node_existsA

Check if a node exists in the Figma document (useful for validation before operations)

Inputs: nodeId (required).

read_my_designA

Get detailed information about the current selection in Figma, including all node details

Inputs: no named parameters.

rename_nodeC

Rename a node in Figma

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

resize_nodeC

Resize a node in Figma

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

scan_nodes_by_typesC

Scan for nodes with specific types in the selected Figma node

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

scan_text_nodesB

Scan all text nodes in the selected Figma node

Inputs: nodeId (required).

scroll_into_viewB

Scroll the viewport to show a specific node

Inputs: nodeId (required).

set_annotationC

Create or update an annotation

Inputs: nodeId (required), labelMarkdown (required), categoryId, properties, +1 more.

set_auto_layoutC

Configure auto-layout properties on a frame in Figma

Inputs: nodeId (required), mode, layoutWrap, paddingTop, +7 more.

set_blend_modeC

Set the blend mode of a node

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

set_constraintsC

Set constraints for responsive behavior when parent is resized

Inputs: nodeId (required), vertical, horizontal.

set_corner_radiusA

Set the corner radius of a node in Figma

Inputs: nodeId (required), radius (required), corners.

set_effectsC

Apply visual effects (shadows, blur) to a node in Figma

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

set_fill_colorC

Set the fill color of a node in Figma can be TextNode or FrameNode

Inputs: b (required), g (required), r (required), nodeId (required), +1 more.

set_gradient_fillC

Set a gradient fill on a node

Inputs: stops (required), nodeId (required), gradientType (required), angle.

set_lockedA

Lock or unlock a node to prevent/allow accidental edits

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

set_multiple_annotationsC

Set multiple annotations parallelly in a node

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

set_multiple_text_contentsC

Set multiple text contents parallelly in a node

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

set_opacityB

Set the opacity of a node in Figma (0-1)

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

set_selectionC

Set the current selection in Figma to specific nodes

Inputs: nodeIds (required).

set_stroke_colorB

Set the stroke color of a node in Figma

Inputs: b (required), g (required), r (required), nodeId (required), +2 more.

set_text_contentA

Set the text content of an existing text node in Figma

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

set_text_styleC

Set advanced text styling properties (line height, letter spacing, etc.)

Inputs: nodeId (required), fontSize, textCase, fontWeight, +5 more.

set_visibilityB

Show or hide a node in Figma

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

ungroup_nodesA

Ungroup a group node, moving its children to the parent

Inputs: nodeId (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 52 tools

    Disambiguation3/5

    Most tools map cleanly to a single resource+action, but `get_selection` and `read_my_design` both describe reading the current selection with only a vague distinction ('including all node details'), and `get_node_info`/`get_nodes_info`/`get_children`/`scan_nodes_by_types`/`find_nodes_by_name` form a cluster of read operations whose boundaries require careful reading. `set_fill_color` vs `set_gradient_fill` and the single vs `multiple` annotation/text setters are also easy to misselect.

    Naming Consistency4/5

    Predominantly consistent snake_case verb_noun pattern (create_rectangle, set_fill_color, delete_node, group_nodes). Minor deviations like `read_my_design` (first-person, not verb_noun) and `node_exists` (noun_verb question form) break the pattern but remain readable.

    Tool Count2/5

    At 52 tools the surface is well past the comfortable range, and many capabilities are tiny single-property setters (set_opacity, set_locked, set_blend_mode, set_visibility) that bloat the set. The domain is large, so each tool is mostly meaningful, but an agent faces a heavy selection burden.

    Completeness4/5

    Strong coverage: node creation (rect/frame/text/ellipse/line), styling, hierarchy manipulation, selection, export, annotations, and component instances are all present. Gaps remain around boolean ops (union/subtract), alignment/distribution, creating components (only instances), and text alignment/grid layout, which agents will have to work around.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants like Cursor to interact with Figma designs programmatically. Supports reading design information, modifying elements, creating components, managing text content, and automating design workflows through natural language commands.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to read and modify Figma designs programmatically, supporting design analysis, element creation, text replacement, annotations, auto-layout configuration, and prototype visualization through natural language commands.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to interact with Figma designs programmatically, supporting comprehensive design automation including text manipulation with formatting preservation, batch operations, prototyping, auto-layout configuration, and component management.
      75
      13 npm
      5
      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