This MCP server implements integration between Cursor AI and Figma, allowing you to read designs and modify them programmatically through the Model Context Protocol. It creates a communication channel between Cursor and Figma for automating design tasks.
You need to have Bun installed. If you don't have it yet:
curl -fsSL https://bun.sh/install | bash
For Windows users with WSL:
powershell -c "irm bun.sh/install.ps1|iex"
Run the setup script to install the MCP in your Cursor's active project:
bun setup
Add the server to your Cursor MCP configuration in ~/.cursor/mcp.json
:
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": ["cursor-talk-to-figma-mcp@latest"]
}
}
}
src/cursor_mcp_plugin/manifest.json
filebun socket
For Windows WSL users, uncomment the hostname in src/socket.ts
first:
// uncomment this to allow connections in windows wsl
hostname: "0.0.0.0",
bunx cursor-talk-to-figma-mcp
After setting up the connection, you can use the following tools to interact with Figma through Cursor:
First, establish a connection using:
join_channel
Read your current design:
get_document_info
get_selection
read_my_design
Get detailed node information:
get_node_info
get_nodes_info
Create design elements programmatically:
create_rectangle
create_frame
create_text
Scan and update text content:
scan_text_nodes
set_text_content
set_multiple_text_contents
Work with Figma annotations:
get_annotations
set_annotation
set_multiple_annotations
scan_nodes_by_types
Apply styling to elements:
set_fill_color
set_stroke_color
set_corner_radius
Manipulate elements:
move_node
resize_node
delete_node
delete_multiple_nodes
clone_node
Work with components and styles:
get_styles
get_local_components
create_component_instance
Export nodes as images:
export_node_as_image
When working with this MCP server:
get_document_info
firstget_selection
before modificationsget_node_info
scan_text_nodes
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.