This Model Context Protocol server enables seamless communication between Cursor AI and Figma, allowing you to programmatically read and modify Figma designs directly from Cursor. The integration creates a powerful workflow for automating design tasks and extracting design information.
You'll need to install Bun as a prerequisite:
curl -fsSL https://bun.sh/install | bash
The fastest way to get started is with the automated setup:
bun setup
This command installs the MCP in your Cursor's active project.
To manually set up the MCP server:
~/.cursor/mcp.json
:{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": ["cursor-talk-to-figma-mcp@latest"]
}
}
}
The WebSocket server facilitates communication between Cursor and Figma:
bun socket
Or install it locally:
src/cursor_mcp_plugin/manifest.json
fileFor Windows users with WSL:
powershell -c "irm bun.sh/install.ps1|iex"
0.0.0.0
in src/socket.ts
:// uncomment this to allow connections in windows wsl
hostname: "0.0.0.0",
bun socket
join_channel
command// Get information about the current document
get_document_info()
// Get information about the current selection
get_selection()
// Get detailed node information about the current selection
read_my_design()
// Get detailed information about a specific node
get_node_info({ nodeId: "123:456" })
// Set focus on a specific node
set_focus({ nodeId: "123:456" })
// Create a new rectangle
create_rectangle({
x: 100,
y: 100,
width: 200,
height: 150,
name: "My Rectangle"
})
// Create a new text element
create_text({
x: 100,
y: 100,
characters: "Hello, Figma!",
fontSize: 24
})
// Update text content
set_text_content({
nodeId: "123:456",
characters: "Updated text"
})
// Batch update multiple text nodes
set_multiple_text_contents({
updates: [
{ nodeId: "123:456", characters: "First update" },
{ nodeId: "789:012", characters: "Second update" }
]
})
// Set fill color
set_fill_color({
nodeId: "123:456",
r: 255,
g: 0,
b: 0,
a: 1
})
// Set corner radius
set_corner_radius({
nodeId: "123:456",
radius: 8
})
// Get all annotations
get_annotations()
// Create a new annotation
set_annotation({
nodeId: "123:456",
message: "This is an annotation with **markdown** support"
})
// Get all prototype reactions
get_reactions()
// Create connections between nodes
create_connections({
connections: [
{ sourceId: "123:456", targetId: "789:012" }
]
})
You can use the MCP to perform bulk text replacements in your design:
scan_text_nodes()
set_multiple_text_contents({
updates: [
{ nodeId: "123:456", characters: "Updated heading" },
{ nodeId: "789:012", characters: "Updated paragraph" }
]
})
Propagate component instance overrides from one instance to others:
get_instance_overrides({ nodeId: "123:456" })
set_instance_overrides({
overrides: extractedOverrides,
targetIds: ["789:012", "345:678"]
})
get_document_info
firstget_selection
before making modificationsget_node_info
after modificationsscan_text_nodes
get_reactions
to extract flowsset_default_connector
create_connections
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "TalkToFigma" '{"command":"bunx","args":["cursor-talk-to-figma-mcp@latest"]}'
See the official Claude Code MCP documentation for more details.
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 > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"TalkToFigma": {
"command": "bunx",
"args": [
"cursor-talk-to-figma-mcp@latest"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect