Figma Vector MCP
v0.3.3Let 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.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel 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.
| Parameter | Type | Description |
|---|---|---|
svg * | string | Complete SVG string including <svg> wrapper |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
x | number | |
y | number |
create_path
Create an editable vector from a single SVG path `d` attribute string. Shorthand for simple paths without a full SVG wrapper.
| Parameter | Type | Description |
|---|---|---|
d * | string | SVG path data string (the `d` attribute) |
fillColor | object | Fill color |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
strokeColor | object | Stroke color |
strokeWeight | number | Stroke width in pixels |
x | number | |
y | number |
create_polyline
Create an editable vector from an array of [x, y] point pairs. Use closed=true to produce a filled polygon.
| Parameter | Type | Description |
|---|---|---|
points * | array | Array of [x, y] coordinate pairs |
closed | boolean | Close the path into a polygon |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
strokeColor | object | |
strokeWeight | number | |
x | number | |
y | number |
create_frame
Create a Figma frame (container) on the canvas.
| Parameter | Type | Description |
|---|---|---|
height * | number | |
width * | number | |
fillColor | object | |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
x | number | |
y | number |
create_rectangle
Create a rectangle on the Figma canvas.
| Parameter | Type | Description |
|---|---|---|
height * | number | |
width * | number | |
fillColor | object | |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
x | number | |
y | number |
create_ellipse
Create an ellipse (or circle) on the Figma canvas.
| Parameter | Type | Description |
|---|---|---|
height * | number | |
width * | number | |
fillColor | object | |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
x | number | |
y | number |
create_text
Create a text node on the Figma canvas. Use width to fix the column width and enable text wrapping.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text content |
fillColor | object | |
fontFamily | string | |
fontSize | number | |
fontStyle | string | |
height | number | Fixed height in px — clips or scrolls content. Only meaningful when width is also set. |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
textAutoResize | string | Resize behaviour. HEIGHT (default when width set): fix width, grow height. NONE: fixed box. WIDTH_AND_HEIGHT: auto-size both (default). |
width | number | Fixed column width in px — enables text wrapping. Height grows automatically unless height is also set. |
x | number | |
y | number |
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).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
stops * | array | At least 2 colour stops, sorted by position 0→1 |
angle | number | Rotation in degrees — 0 = top→bottom, 90 = left→right (LINEAR and ANGULAR) |
center | array | Focal point [cx, cy] in 0–1 node-relative coordinates (RADIAL and DIAMOND, default [0.5, 0.5]) |
gradientTransform | array | Raw 2×3 affine gradientTransform matrix — overrides angle/center when provided |
type | string | Gradient 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
counterAxisAlign | string | Alignment along cross axis |
counterAxisSizingMode | string | Sizing along cross axis — FIXED holds the frame size, AUTO hugs children (default AUTO) |
direction | string | Layout direction |
padding | Padding — single number (all sides) or {top, right, bottom, left} | |
primaryAxisAlign | string | Alignment along main axis |
primaryAxisSizingMode | string | Sizing along main axis — FIXED holds the frame size, AUTO hugs children (default AUTO) |
spacing | number | Gap between children in pixels |
wrap | boolean | Enable wrapping (WRAP) |
create_component
Convert an existing frame or group into a reusable Figma component.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
name | string | Layer name |
create_instance
Place an instance of a local component on the canvas by component ID.
| Parameter | Type | Description |
|---|---|---|
componentId * | string | ID of the source component node |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
x | number | |
y | number |
set_fill_color
Set the fill color of a Figma node.
| Parameter | Type | Description |
|---|---|---|
b * | number | Blue 0–1 |
g * | number | Green 0–1 |
nodeId * | string | Figma node ID |
r * | number | Red 0–1 |
a | number |
set_stroke_color
Set the stroke color (and optional weight) of a Figma node.
| Parameter | Type | Description |
|---|---|---|
b * | number | Blue 0–1 |
g * | number | Green 0–1 |
nodeId * | string | Figma node ID |
r * | number | Red 0–1 |
a | number | |
weight | number |
set_stroke
Set comprehensive stroke properties on a node: color, weight, position, dash pattern, line cap, and line join.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
color | object | Stroke color |
dashPattern | array | Dash pattern e.g. [8, 4] for dashed |
lineCap | string | |
lineJoin | string | |
position | string | Stroke alignment |
weight | number | Stroke 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
fillColor | object | |
fontFamily | string | |
fontSize | number | |
fontStyle | string | e.g. Regular, Bold, Italic |
height | number | Fix height in px (clips content) |
letterSpacing | number | Letter spacing in pixels |
lineHeight | Line height in pixels or 'AUTO' | |
textAlign | string | |
textAutoResize | string | |
width | number | Fix 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).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
bottomLeft | number | |
bottomRight | number | |
radius | number | Uniform radius for all corners |
topLeft | number | |
topRight | number |
set_opacity
Set the opacity of a Figma node (0 = invisible, 1 = fully opaque).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
opacity * | number |
move_node
Move a Figma node to a new position on the canvas.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
x * | number | |
y * | number |
resize_node
Resize a Figma node to the given width and height.
| Parameter | Type | Description |
|---|---|---|
height * | number | |
nodeId * | string | Figma node ID |
width * | number |
delete_node
Delete a node from the Figma canvas.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
clone_node
Duplicate a Figma node, optionally repositioning the clone.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
parentId | string | Parent frame/group node ID |
x | number | |
y | number |
rename_node
Rename a Figma node.
| Parameter | Type | Description |
|---|---|---|
name * | string | New name for the node |
nodeId * | string | Figma node ID |
set_visibility
Show or hide a Figma node.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
visible * | boolean | true = 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).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
action | string | Relative reorder action |
index | integer | Absolute stack index (0 = bottom). Overrides action if both provided. |
group_nodes
Group multiple Figma nodes into a group layer.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Array of node IDs to group |
name | string | Layer name |
parentId | string | Parent frame/group node ID |
ungroup_nodes
Ungroup a group node, returning its children to the parent.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma 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.
| Parameter | Type | Description |
|---|---|---|
commands * | array | Ordered 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
set_focus
Scroll the Figma viewport to focus on a node and select it.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma 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.
| Parameter | Type | Description |
|---|---|---|
pageId | string | Page ID |
pageName | string | Page 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
styleId * | string | Style ID from get_styles |
styleType | string | Hint 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.
| Parameter | Type | Description |
|---|---|---|
query | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
export_node_as_png
Export a Figma node as a base64-encoded PNG at the specified pixel scale.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
scale | number | Pixel 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.
| Parameter | Type | Description |
|---|---|---|
pageId | string | Page ID to search in (defaults to current page) |
query | string | Name substring to search for (case-insensitive) |
recursive | boolean | Search nested children (default true) |
type | Node type(s) to filter by, e.g. 'FRAME', ['TEXT','RECTANGLE'] |
create_page
Create a new page in the Figma document.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the new page |
duplicate_frame_to_page
Copy a node to a target page at an optional position.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Figma node ID |
targetPageId * | string | ID of the page to copy the node to |
x | number | X position on target page |
y | number | Y 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.
| Parameter | Type | Description |
|---|---|---|
operations * | array | Array 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.
| Parameter | Type | Description |
|---|---|---|
effects * | array | One or more effects to apply |
nodeId * | string | Figma node ID |
mode | string | REPLACE overwrites all existing effects (default). APPEND adds to the existing effects array. |
set_blend_mode
Set the blend mode of a node layer.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Figma blend mode |
nodeId * | string | Figma 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.
| Parameter | Type | Description |
|---|---|---|
base64 * | string | Base64-encoded image data (PNG, JPEG, or WebP) |
nodeId * | string | Figma node ID |
mimeType | string | |
opacity | number | |
scaleMode | string | How the image is scaled within the node bounds |
boolean_operation
Perform a boolean operation (union, subtract, intersect, exclude) on 2 or more vector nodes.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | IDs of nodes to combine (order matters for subtract) |
operation * | string | |
name | string | Name for the resulting node |
set_layout_grid
Apply column, row, or uniform grid guides to a frame.
| Parameter | Type | Description |
|---|---|---|
grids * | array | |
nodeId * | string | Figma node ID |
register_node
Save a named alias for a node ID, persisted in the Figma document. Use resolve_node to retrieve it later.
| Parameter | Type | Description |
|---|---|---|
alias * | string | Semantic name, e.g. 'background', 'hero-frame' |
nodeId * | string | Node 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.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
alias * | string | Name for this color, e.g. 'brand-blue', 'amber', 'near-black' |
b * | number | |
g * | number | |
r * | number | |
a | number |
resolve_color
Look up a color by its registered alias. Returns r, g, b, a values (0–1).
| Parameter | Type | Description |
|---|---|---|
alias * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
scale | number | Pixel scale (1 = 1×, 2 = 2×) |
get_library_components
List components available for use. Returns local document components. Filter by name with optional query.
| Parameter | Type | Description |
|---|---|---|
query | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
maskNodeId * | string | ID of the node to use as the mask shape (bottom layer) |
targetNodeId * | string | ID of the node to be masked (top layer) |
name | string | Name for the resulting group |