Figma Vector MCP

v0.3.3
io.github.workingmodel/figma-vector-mcp Checked 2 days ago Published 1 month ago

Let Claude create and edit fully editable vector nodes on the Figma canvas.

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

join_channel

Join a named channel on the Figma Vector MCP socket relay. Must be called before any drawing commands if the channel was not set via env/arg.

ParameterTypeDescription
channel *stringChannel name (must match the Figma plugin)

health_check

Ping the Figma plugin and confirm connectivity. Returns plugin version and current page.

create_vector_from_svg

Place a fully editable vector node on the Figma canvas from an SVG string. Supports any valid SVG including paths, polylines, polygons, circles, and groups. The created node is fully editable in Figma.

ParameterTypeDescription
svg *stringComplete SVG string including <svg> wrapper
namestringLayer name
parentIdstringParent frame/group node ID
xnumber
ynumber

create_path

Create an editable vector from a single SVG path `d` attribute string. Shorthand for simple paths without a full SVG wrapper.

ParameterTypeDescription
d *stringSVG path data string (the `d` attribute)
fillColorobjectFill color
namestringLayer name
parentIdstringParent frame/group node ID
strokeColorobjectStroke color
strokeWeightnumberStroke width in pixels
xnumber
ynumber

create_polyline

Create an editable vector from an array of [x, y] point pairs. Use closed=true to produce a filled polygon.

ParameterTypeDescription
points *arrayArray of [x, y] coordinate pairs
closedbooleanClose the path into a polygon
namestringLayer name
parentIdstringParent frame/group node ID
strokeColorobject
strokeWeightnumber
xnumber
ynumber

create_frame

Create a Figma frame (container) on the canvas.

ParameterTypeDescription
height *number
width *number
fillColorobject
namestringLayer name
parentIdstringParent frame/group node ID
xnumber
ynumber

create_rectangle

Create a rectangle on the Figma canvas.

ParameterTypeDescription
height *number
width *number
fillColorobject
namestringLayer name
parentIdstringParent frame/group node ID
xnumber
ynumber

create_ellipse

Create an ellipse (or circle) on the Figma canvas.

ParameterTypeDescription
height *number
width *number
fillColorobject
namestringLayer name
parentIdstringParent frame/group node ID
xnumber
ynumber

create_text

Create a text node on the Figma canvas. Use width to fix the column width and enable text wrapping.

ParameterTypeDescription
text *stringText content
fillColorobject
fontFamilystring
fontSizenumber
fontStylestring
heightnumberFixed height in px — clips or scrolls content. Only meaningful when width is also set.
namestringLayer name
parentIdstringParent frame/group node ID
textAutoResizestringResize behaviour. HEIGHT (default when width set): fix width, grow height. NONE: fixed box. WIDTH_AND_HEIGHT: auto-size both (default).
widthnumberFixed column width in px — enables text wrapping. Height grows automatically unless height is also set.
xnumber
ynumber

set_gradient_fill

Apply a gradient fill to a Figma node. Supports LINEAR, RADIAL, ANGULAR (conic), and DIAMOND types. Replaces any existing fills. Stops must be sorted by position (0 → 1).

ParameterTypeDescription
nodeId *stringFigma node ID
stops *arrayAt least 2 colour stops, sorted by position 0→1
anglenumberRotation in degrees — 0 = top→bottom, 90 = left→right (LINEAR and ANGULAR)
centerarrayFocal point [cx, cy] in 0–1 node-relative coordinates (RADIAL and DIAMOND, default [0.5, 0.5])
gradientTransformarrayRaw 2×3 affine gradientTransform matrix — overrides angle/center when provided
typestringGradient type

set_auto_layout

Enable auto-layout on a frame and configure direction, spacing, padding, and alignment. Set direction to NONE to disable auto-layout.

ParameterTypeDescription
nodeId *stringFigma node ID
counterAxisAlignstringAlignment along cross axis
counterAxisSizingModestringSizing along cross axis — FIXED holds the frame size, AUTO hugs children (default AUTO)
directionstringLayout direction
paddingPadding — single number (all sides) or {top, right, bottom, left}
primaryAxisAlignstringAlignment along main axis
primaryAxisSizingModestringSizing along main axis — FIXED holds the frame size, AUTO hugs children (default AUTO)
spacingnumberGap between children in pixels
wrapbooleanEnable wrapping (WRAP)

create_component

Convert an existing frame or group into a reusable Figma component.

ParameterTypeDescription
nodeId *stringFigma node ID
namestringLayer name

create_instance

Place an instance of a local component on the canvas by component ID.

ParameterTypeDescription
componentId *stringID of the source component node
namestringLayer name
parentIdstringParent frame/group node ID
xnumber
ynumber

set_fill_color

Set the fill color of a Figma node.

ParameterTypeDescription
b *numberBlue 0–1
g *numberGreen 0–1
nodeId *stringFigma node ID
r *numberRed 0–1
anumber

set_stroke_color

Set the stroke color (and optional weight) of a Figma node.

ParameterTypeDescription
b *numberBlue 0–1
g *numberGreen 0–1
nodeId *stringFigma node ID
r *numberRed 0–1
anumber
weightnumber

set_stroke

Set comprehensive stroke properties on a node: color, weight, position, dash pattern, line cap, and line join.

ParameterTypeDescription
nodeId *stringFigma node ID
colorobjectStroke color
dashPatternarrayDash pattern e.g. [8, 4] for dashed
lineCapstring
lineJoinstring
positionstringStroke alignment
weightnumberStroke width in pixels

set_text_style

Modify typographic properties of an existing text node without replacing its content. Also use to set or update text box width and wrapping.

ParameterTypeDescription
nodeId *stringFigma node ID
fillColorobject
fontFamilystring
fontSizenumber
fontStylestringe.g. Regular, Bold, Italic
heightnumberFix height in px (clips content)
letterSpacingnumberLetter spacing in pixels
lineHeightLine height in pixels or 'AUTO'
textAlignstring
textAutoResizestring
widthnumberFix column width in px to enable wrapping

set_corner_radius

Set corner radius of a rectangle or frame. Use radius for uniform corners or topLeft/topRight/bottomLeft/bottomRight for individual corners (e.g. pill, tab, card shapes).

ParameterTypeDescription
nodeId *stringFigma node ID
bottomLeftnumber
bottomRightnumber
radiusnumberUniform radius for all corners
topLeftnumber
topRightnumber

set_opacity

Set the opacity of a Figma node (0 = invisible, 1 = fully opaque).

ParameterTypeDescription
nodeId *stringFigma node ID
opacity *number

move_node

Move a Figma node to a new position on the canvas.

ParameterTypeDescription
nodeId *stringFigma node ID
x *number
y *number

resize_node

Resize a Figma node to the given width and height.

ParameterTypeDescription
height *number
nodeId *stringFigma node ID
width *number

delete_node

Delete a node from the Figma canvas.

ParameterTypeDescription
nodeId *stringFigma node ID

clone_node

Duplicate a Figma node, optionally repositioning the clone.

ParameterTypeDescription
nodeId *stringFigma node ID
parentIdstringParent frame/group node ID
xnumber
ynumber

rename_node

Rename a Figma node.

ParameterTypeDescription
name *stringNew name for the node
nodeId *stringFigma node ID

set_visibility

Show or hide a Figma node.

ParameterTypeDescription
nodeId *stringFigma node ID
visible *booleantrue = visible, false = hidden

reorder_node

Change a node's Z-order within its parent. Use action for relative moves or index for an absolute position (0 = bottom of stack).

ParameterTypeDescription
nodeId *stringFigma node ID
actionstringRelative reorder action
indexintegerAbsolute stack index (0 = bottom). Overrides action if both provided.

group_nodes

Group multiple Figma nodes into a group layer.

ParameterTypeDescription
nodeIds *arrayArray of node IDs to group
namestringLayer name
parentIdstringParent frame/group node ID

ungroup_nodes

Ungroup a group node, returning its children to the parent.

ParameterTypeDescription
nodeId *stringFigma node ID

create_batch

Execute multiple commands in a single round-trip. Commands run sequentially. Each result includes success/error status. Use this for complex compositions (e.g. place an SVG, add a label, group them) to avoid multiple round-trips.

ParameterTypeDescription
commands *arrayOrdered list of commands to execute

get_document_info

Get information about the current Figma document: name, current page, all pages, and top-level nodes.

get_selection

Get the currently selected nodes in Figma, including position and size.

get_node_info

Get detailed information about a specific node by ID: type, position, size, opacity, children.

ParameterTypeDescription
nodeId *stringFigma node ID

set_focus

Scroll the Figma viewport to focus on a node and select it.

ParameterTypeDescription
nodeId *stringFigma node ID

get_page_list

List all pages in the current Figma document.

switch_page

Switch to a different page in the Figma document by ID or name.

ParameterTypeDescription
pageIdstringPage ID
pageNamestringPage name (used if pageId not provided)

get_styles

Get all local paint styles and text styles defined in the Figma document. Use these IDs with apply_style to keep output on-brand.

apply_style

Apply a named document style (paint or text) to a node by style ID.

ParameterTypeDescription
nodeId *stringFigma node ID
styleId *stringStyle ID from get_styles
styleTypestringHint for style type (auto-detected if omitted)

get_available_fonts

List all fonts available in this Figma environment (system fonts + Figma font agent). Use before create_text to verify a font is loadable. Optionally filter by family name substring.

ParameterTypeDescription
querystringFilter by family name (case-insensitive contains)

get_components

List all local components in the Figma document.

export_node_as_svg

Export a Figma node as an SVG string. Useful for round-tripping: create a vector, modify it in Figma, export back.

ParameterTypeDescription
nodeId *stringFigma node ID

export_node_as_png

Export a Figma node as a base64-encoded PNG at the specified pixel scale.

ParameterTypeDescription
nodeId *stringFigma node ID
scalenumberPixel scale (1 = 1x, 2 = 2x, etc.)

find_nodes

Search for nodes by name (case-insensitive contains) and/or type. Scoped to a page (defaults to current page). Recursive by default.

ParameterTypeDescription
pageIdstringPage ID to search in (defaults to current page)
querystringName substring to search for (case-insensitive)
recursivebooleanSearch nested children (default true)
typeNode type(s) to filter by, e.g. 'FRAME', ['TEXT','RECTANGLE']

create_page

Create a new page in the Figma document.

ParameterTypeDescription
name *stringName of the new page

duplicate_frame_to_page

Copy a node to a target page at an optional position.

ParameterTypeDescription
nodeId *stringFigma node ID
targetPageId *stringID of the page to copy the node to
xnumberX position on target page
ynumberY position on target page

batch_set_properties

Update fill color, stroke color, opacity, position, and/or size on multiple nodes in a single round-trip.

ParameterTypeDescription
operations *arrayArray of per-node property updates

set_effect

Apply effects (drop shadow, inner shadow, layer blur, background blur) to a node. Use mode REPLACE (default) to overwrite all effects, or APPEND to add to existing ones.

ParameterTypeDescription
effects *arrayOne or more effects to apply
nodeId *stringFigma node ID
modestringREPLACE overwrites all existing effects (default). APPEND adds to the existing effects array.

set_blend_mode

Set the blend mode of a node layer.

ParameterTypeDescription
mode *stringFigma blend mode
nodeId *stringFigma node ID

set_image_fill

Set a node's fill to a base64-encoded image. Use with image generation APIs (Replicate, fal.ai) to place rendered imagery directly on canvas.

ParameterTypeDescription
base64 *stringBase64-encoded image data (PNG, JPEG, or WebP)
nodeId *stringFigma node ID
mimeTypestring
opacitynumber
scaleModestringHow the image is scaled within the node bounds

boolean_operation

Perform a boolean operation (union, subtract, intersect, exclude) on 2 or more vector nodes.

ParameterTypeDescription
nodeIds *arrayIDs of nodes to combine (order matters for subtract)
operation *string
namestringName for the resulting node

set_layout_grid

Apply column, row, or uniform grid guides to a frame.

ParameterTypeDescription
grids *array
nodeId *stringFigma node ID

register_node

Save a named alias for a node ID, persisted in the Figma document. Use resolve_node to retrieve it later.

ParameterTypeDescription
alias *stringSemantic name, e.g. 'background', 'hero-frame'
nodeId *stringNode ID to associate with the alias

resolve_node

Look up a node ID by its registered alias. Returns the node ID previously saved with register_node.

ParameterTypeDescription
alias *stringThe alias to look up

register_color

Save a named color alias to the document palette. All RGB values are 0–1. Use resolve_color or list_colors to retrieve.

ParameterTypeDescription
alias *stringName for this color, e.g. 'brand-blue', 'amber', 'near-black'
b *number
g *number
r *number
anumber

resolve_color

Look up a color by its registered alias. Returns r, g, b, a values (0–1).

ParameterTypeDescription
alias *stringThe color alias to look up

list_colors

List all color aliases registered in this document's palette.

screenshot_current_page

Export the current Figma page as a base64-encoded PNG. Useful for visual verification of the canvas state.

ParameterTypeDescription
scalenumberPixel scale (1 = 1×, 2 = 2×)

get_library_components

List components available for use. Returns local document components. Filter by name with optional query.

ParameterTypeDescription
querystringFilter by component name (case-insensitive contains)

create_mask

Apply a clip mask — maskNode defines the shape, targetNode is clipped to it. Both nodes are grouped.

ParameterTypeDescription
maskNodeId *stringID of the node to use as the mask shape (bottom layer)
targetNodeId *stringID of the node to be masked (top layer)
namestringName for the resulting group