Figma MCP Server

v2.1.0
io.github.oabolade/figma_mcp_server_actor Checked 4 days ago Published 11 months ago

MCP server enabling AI assistants to interact with Figma designs via natural language commands

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_file

Analyze a Figma file structure, extracting metadata, pages, and top-level components

ParameterTypeDescription
fileKey *stringFigma file key (from file URL)
includeGeometrybooleanInclude geometry information in the analysis

get_file_structure

Get the hierarchical structure of a Figma file including pages and layers

ParameterTypeDescription
fileKey *stringFigma file key
depthintegerDepth of the tree to retrieve (default: 1)

extract_styles

Extract design tokens, styles, and design system information from a Figma file

ParameterTypeDescription
fileKey *stringFigma file key

list_components

List all components available in a Figma file

ParameterTypeDescription
fileKey *stringFigma file key

get_component_details

Get detailed information about a specific component including properties and variants

ParameterTypeDescription
componentKey *stringComponent key (ID)
fileKey *stringFigma file key

find_component_usage

Find all instances where a component is used in a Figma file

ParameterTypeDescription
componentKey *stringComponent key to search for
fileKey *stringFigma file key

export_node

Export a specific node (component, frame, etc.) as an image in PNG, SVG, PDF, or JPG format

ParameterTypeDescription
fileKey *stringFigma file key
nodeId *stringNode ID to export
formatstringExport format
scalenumberScale factor (1x, 2x, 3x, etc.)

export_multiple_nodes

Export multiple nodes from a Figma file in a specified format

ParameterTypeDescription
fileKey *stringFigma file key
nodeIds *arrayArray of node IDs to export
formatstringExport format
scalenumberScale factor

export_file_pages

Export all pages from a Figma file as images

ParameterTypeDescription
fileKey *stringFigma file key
formatstringExport format
scalenumberScale factor

get_comments

Retrieve all comments from a Figma file

ParameterTypeDescription
fileKey *stringFigma file key

create_comment

Create a new comment on a Figma file at a specific position or node

ParameterTypeDescription
fileKey *stringFigma file key
message *stringComment message text
nodeIdstringNode ID to attach comment to (alternative to x/y coordinates)
xnumberX coordinate for comment position (required if node_id not provided)
ynumberY coordinate for comment position (required if node_id not provided)

resolve_comment

Mark a comment as resolved (Note: This may require Plugin API, currently returns info)

ParameterTypeDescription
commentId *stringComment ID to resolve
fileKey *stringFigma file key

delete_comment

Delete a comment (Note: May require Plugin API or may not be available via REST)

ParameterTypeDescription
commentId *stringComment ID to delete
fileKey *stringFigma file key

update_node_properties

Update properties of a design node (Note: Figma REST API has limited write capabilities. Full modification may require Plugin API)

ParameterTypeDescription
fileKey *stringFigma file key
nodeId *stringNode ID to update
propertiesobjectProperties to update (structure depends on node type)

get_node_for_modification

Get detailed node information to plan modifications (useful before using Plugin API)

ParameterTypeDescription
fileKey *stringFigma file key
nodeId *stringNode ID
includeGeometrybooleanInclude geometry information