Talk to Figma MCP
Provides tools for reading and modifying Figma designs programmatically, including inspecting documents and selections, creating and styling nodes, managing layout and components, and exporting nodes as images.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Talk to Figma MCP Create a blue 200x50 button labeled 'Get Started' in the current frame"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Quick Start (Recommended)
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 --socketOr with Bun:
bunx talk-to-figma-mcp-tool --socket2. 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 --pluginThis 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.htmlImport into Figma:
In Figma, go to Plugins > Development > Import plugin from manifest...
Select the
manifest.jsonfile from the plugin folderThe plugin "Talk to Figma MCP" will appear in your plugins menu
4. Connect and Use
Open Figma and run the "Talk to Figma MCP" plugin from the plugins menu
The plugin will show a channel name - copy it
In your AI editor, use the
join_channeltool with the channel nameStart designing with AI!
Related MCP server: MCP Figma
Project Structure
src/talk_to_figma_mcp/- TypeScript MCP server for Figma integrationsrc/cursor_mcp_plugin/- Figma plugin for communicating with your editorsrc/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 | bashInstallation
git clone https://github.com/anthropics/talk-to-figma-mcp.git
cd talk-to-figma-mcp
bun installRunning Locally
Start the WebSocket server:
bun run socketThe MCP server runs automatically when your editor invokes it
Building
bun run buildQuick Video Tutorial
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
Install bun via powershell:
powershell -c "irm bun.sh/install.ps1|iex"Set environment variable to allow connections from WSL:
export FIGMA_WS_HOST=0.0.0.0
npx talk-to-figma-mcp-tool --socketEnvironment Variables
Variable | Description | Default |
| WebSocket server port |
|
| Host binding ( |
|
MCP Tools
The MCP server provides 60+ tools for interacting with Figma:
Document & Selection
get_document_info- Get information about the current Figma documentget_selection- Get information about the current selectionread_my_design- Get detailed node information about the current selectionget_node_info- Get detailed information about a specific nodeget_nodes_info- Get detailed information about multiple nodes
Creating Elements
create_rectangle- Create a new rectanglecreate_frame- Create a new frame with auto-layout supportcreate_text- Create a new text nodecreate_ellipse- Create a new ellipse/circlecreate_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 weightset_gradient_fill- Apply gradient fills (linear, radial, angular, diamond)set_corner_radius- Set corner radius with per-corner controlset_effects- Apply visual effects (shadows, blurs)set_blend_mode- Set layer blend modeset_opacity- Set node opacityset_visibility- Show/hide nodes
Text Operations
scan_text_nodes- Scan text nodes with intelligent chunkingset_text_content- Set text content of a single nodeset_multiple_text_contents- Batch update multiple text nodesset_text_style- Set advanced typography (line-height, letter-spacing, decoration)
Layout & Organization
set_auto_layout- Configure auto-layout propertiesset_constraints- Set responsive constraintsmove_node- Move a node to a new positionresize_node- Resize a nodedelete_node- Delete a nodedelete_multiple_nodes- Delete multiple nodes efficientlyclone_node- Duplicate a nodegroup_nodes- Group multiple nodesungroup_nodes- Ungroup nodesflatten_node- Flatten to vectorinsert_child- Move node into a parentrename_node- Rename a nodeset_locked- Lock/unlock nodes
Navigation & Selection
get_children- Get all direct children of a nodeget_parent- Get the parent nodefind_nodes_by_name- Find nodes by name pattern (supports wildcards)set_selection- Programmatically select nodesscroll_into_view- Scroll viewport to show a node
Design Analysis
get_all_colors- Extract all colors used in a designget_all_fonts- List all fonts used (typography audit)node_exists- Check if a node exists (validation)
Annotations
get_annotations- Get annotations in document or nodeset_annotation- Create/update an annotationset_multiple_annotations- Batch create/update annotationsscan_nodes_by_types- Scan for nodes by type
Components & Styles
get_styles- Get local stylesget_local_components- Get local componentscreate_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
Always join a channel before sending commands
Get document overview using
get_document_infofirstCheck current selection with
get_selectionbefore modificationsUse batch operations when possible for better performance
Verify changes using
get_node_infoorexport_node_as_imageHandle errors appropriately - all commands can throw exceptions
For Large Designs
Use chunking parameters in
scan_text_nodesMonitor progress through WebSocket updates
Use
find_nodes_by_nameto locate specific elements
For Text Operations
Use
set_multiple_text_contentsfor batch updatesLeverage
scan_text_nodesfor discoveryVerify with targeted exports
Troubleshooting
Connection Issues
Ensure the WebSocket server is running on port 3055
Check that the Figma plugin is connected to the same channel
Verify no firewall is blocking localhost connections
Plugin Not Appearing
Make sure you imported the plugin via Plugins > Development > Import plugin from manifest...
Refresh Figma if needed
Commands Not Working
Verify you've joined a channel with
join_channelCheck the WebSocket server terminal for error messages
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 toolsclone_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
Scored across 52 tools
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.
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.
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.
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
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
Read-only design skills, components and tokens from your Alpy library for any AI agent.
Give AI agents your deeepSpace design system: components, tokens, styles and code mappings.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseBqualityDmaintenanceEnables 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.7513 npm5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access and manipulate Figma designs, including extracting design systems, creating and debugging UI components, and syncing design tokens bidirectionally.MIT