This MCP server creates a bridge between Cursor AI and Figma, allowing you to read and modify Figma designs programmatically. It uses the Model Context Protocol (MCP) to establish communication between Cursor and Figma's plugin system.
You'll need to install Bun before setting up the MCP server:
curl -fsSL https://bun.sh/install | bash
The quickest way to get started is using the automated setup:
bun setup
This will install the MCP in your Cursor's active project.
Add the server to your Cursor MCP configuration in ~/.cursor/mcp.json
:
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": ["cursor-talk-to-figma-mcp@latest"]
}
}
}
Install the plugin from the Figma community page or manually:
src/cursor_mcp_plugin/manifest.json
fileIf you're using Windows with WSL:
Install Bun via PowerShell:
powershell -c "irm bun.sh/install.ps1|iex"
Uncomment the hostname 0.0.0.0
in src/socket.ts
:
// uncomment this to allow connections in windows wsl
hostname: "0.0.0.0",
Start the WebSocket server:
bun socket
Start the MCP server:
bunx cursor-talk-to-figma-mcp
Open Figma and run the Cursor MCP Plugin
Connect the plugin to the WebSocket server by joining a channel:
join_channel
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 by IDget_annotations
- Get all annotations in the document or nodeset_annotation
- Create or update an annotation with markdownset_multiple_annotations
- Batch create/update annotationsscan_nodes_by_types
- Find nodes of specific typesget_reactions
- Get prototype reactions with visual highlightsset_default_connector
- Set default connector stylecreate_connections
- Create FigJam connector lines between nodescreate_rectangle
- Create a new rectanglecreate_frame
- Create a new framecreate_text
- Create a new text nodescan_text_nodes
- Scan text nodes with chunking for large designsset_text_content
- Update a single text nodeset_multiple_text_contents
- Batch update multiple text nodesset_layout_mode
- Set layout mode (NONE, HORIZONTAL, VERTICAL)set_padding
- Set padding for auto-layout framesset_axis_align
- Set primary and counter axis alignmentset_layout_sizing
- Set sizing modes (FIXED, HUG, FILL)set_item_spacing
- Set spacing between children in auto-layoutset_fill_color
- Set fill color (RGBA)set_stroke_color
- Set stroke color and weightset_corner_radius
- Set corner radius with per-corner controlmove_node
- Move a node to a new positionresize_node
- Resize a nodedelete_node
- Delete a nodedelete_multiple_nodes
- Delete multiple nodes efficientlyclone_node
- Create a copy of an existing nodeget_styles
- Get information about local stylesget_local_components
- Get information about local componentscreate_component_instance
- Create a component instanceget_instance_overrides
- Extract component instance overridesset_instance_overrides
- Apply extracted overrides to instancesexport_node_as_image
- Export a node as an image (PNG, JPG, SVG, PDF)You can replace text content across multiple nodes at once using the set_multiple_text_contents
command. This is useful for updating content throughout a design.
The MCP server allows you to propagate component instance overrides from a source instance to multiple target instances with a single command. This significantly reduces repetitive work when customizing multiple component instances.
The server includes helpful prompts for common tasks:
design_strategy
- Best practices for working with Figma designsread_design_strategy
- Best practices for reading Figma designstext_replacement_strategy
- Systematic approach for replacing textannotation_conversion_strategy
- Strategy for converting annotationsswap_overrides_instances
- Strategy for transferring component overridesreaction_to_connector_strategy
- Strategy for converting prototype reactions to connectorsWhen working with the Figma MCP:
get_document_info
firstget_selection
before making modificationsget_node_info
scan_text_nodes
get_reactions
followed by create_connections
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.