# figma-mcp-rs [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/jirayusueb/figma-mcp-rs  
**GitHub Stars:** 0  
**npm Downloads (last month):** 236  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/figma-mcp-rs

## Description
Figma/FigJam MCP server with read/write via plugin — no API token, no limits. 78 tools.

## Tools
Capabilities this server exposes over MCP:

- **add_page** — Add a new page to the Figma document.
- **add_variable_mode**
- **apply_style_to_node** — Apply an existing local style (paint, text, effect, or grid) to a node, linking the node to that style.
- **auto_arrange** — Auto-arrange objects on a FigJam board in grid, row, or column layout. FigJam only.
- **batch_rename_nodes** — Rename multiple nodes using find/replace, regex substitution, or prefix/suffix addition.
- **bind_variable_to_node** — Bind a local variable to a node property so the property is driven by the variable's value. COLOR variables: use fillColor or strokeColor. BOOLEAN variables: use visible. FLOAT variables: use opacity, rotation, width, height, cornerRadius, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, strokeWeight, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft.
- **clone_node** — Clone an existing node, optionally repositioning it or placing it in a new parent.
- **create_code_block** — Create a code block on a FigJam board with syntax highlighting. FigJam only.
- **create_component** — Convert an existing FRAME node into a reusable COMPONENT. The frame is replaced in place by the new component.
- **create_connector** — Create a connector on the current FigJam page, optionally linked between two nodes. FigJam only.
- **create_effect_style** — Create a new local effect style (drop shadow, inner shadow, or blur).
- **create_ellipse** — Create a new ellipse (circle/oval) on the current page or inside a parent node.
- **create_frame** — Create a new frame on the current page or inside a parent node.
- **create_grid_style** — Create a new local layout grid style.
- **create_paint_style** — Create a new local paint style with a solid fill color.
- **create_rectangle** — Create a new rectangle on the current page or inside a parent node.
- **create_section** — Create a Figma Section node on the current page. Sections are the modern way to organize frames and groups on a page.
- **create_shape_with_text** — Create a shape with text on a FigJam board (rectangles, circles, diamonds, etc.). FigJam only.
- **create_stickies** — Create multiple sticky notes at once on a FigJam board, with optional grid auto-layout. FigJam only.
- **create_sticky** — Create a sticky note on the current FigJam page. FigJam only.
- **create_table** — Create a table on a FigJam board with optional cell text content. FigJam only.
- **create_text** — Create a new text node on the current page or inside a parent node. The font is loaded automatically before insertion. Returns the created node ID and bounds. Use set_text to update the content of an existing text node.
- **create_text_style** — Create a new local text style (typography preset). Returns the new style's ID. Apply it to nodes with apply_style_to_node. Use get_styles to list existing text styles.
- **create_variable** — Create a new variable (design token) inside an existing collection. Returns the new variable's ID. Use get_variable_defs to find collection IDs, set_variable_value to set values per mode, and bind_variable_to_node to apply the variable to a node property.
- **create_variable_collection**
- **delete_nodes** — Delete one or more nodes. This cannot be undone via MCP — use with care.
- **delete_page** — Delete a page from the Figma document. Cannot delete the only remaining page.
- **delete_style** — Delete a style (paint, text, effect, or grid) by its ID.
- **delete_variable** — Delete a single variable (provide variableId) or an entire collection and all its variables (provide collectionId). Provide exactly one of the two — not both.
- **detach_instance** — Detach one or more component instances, converting them to plain frames. The link to the main component is broken; all visual properties are preserved.
- **execute_code** — Run arbitrary Figma Plugin API code inside the plugin sandbox and return its value. The code runs as an async function body — use await and end with a return. Use this only for operations the dedicated tools do not cover; prefer the specific tool when one exists. Runs in the user's open file and is undoable with Cmd/Ctrl+Z.
- **export_frames_to_pdf** — Export multiple frames as a single multi-page PDF file. Each frame becomes one page in order. Ideal for pitch decks, proposals, and slide exports.
- **export_tokens** — Export all design tokens (variables and paint styles) as JSON or CSS custom properties. Ideal for bridging Figma variables into your codebase.
- **find_replace_text** — Find and replace text content across all TEXT nodes in a subtree. Searches the entire current page if no nodeId is given.
- **get_annotations** — Get dev-mode annotations in the current document or scoped to a specific node. Returns annotation objects with label text, measurement type, and the ID of the annotated node. Omit nodeId to retrieve all annotations on the current page.
- **get_board_contents** — Get all objects and connectors on the current FigJam page. Returns nodes with text content and connection data. FigJam only.
- **get_design_context** — Get a depth-limited, token-efficient tree of the current selection or page. Use this instead of get_document when exploring large files. Supports detail levels (minimal/compact/full) and dedupe_components for pages heavy with repeated component instances.
- **get_document** — Get the full node tree of the current page (not the whole file — only the active page). Returns all nodes recursively and can be very large. Prefer get_design_context for exploration or when token efficiency matters.
- **get_fonts** — List all fonts used in the current page, sorted by usage frequency. Useful for understanding typography without scanning all text nodes.
- **get_local_components** — Get all components defined in the current Figma file.
- **get_metadata** — Get metadata about the current Figma document: file name, pages, current page
- **get_node** — Get a single node by ID with full detail. Use get_nodes_info to fetch multiple nodes in one round-trip instead of calling this repeatedly. Node ID must be colon format e.g. '4029:12345', never hyphens.
- **get_nodes_info** — Get full details for multiple nodes by ID in one round-trip. Prefer this over calling get_node repeatedly when you need several nodes.
- **get_pages** — List all pages in the document with their IDs and names. Lightweight alternative to get_document.
- **get_reactions** — Get the prototype reactions defined on a node. Returns an array of reaction objects — each has a trigger (e.g. ON_CLICK, ON_HOVER, AFTER_TIMEOUT) and an actions array (navigate to node, open URL, go back, etc.). Use set_reactions to add or replace reactions, remove_reactions to delete them.
- **get_screenshot** — Export a screenshot of one or more nodes as base64-encoded image data (held in memory). Use save_screenshots instead when you want to write images directly to disk without base64 in the response.
- **get_selection** — Get the nodes currently selected in Figma. Returns an empty array if nothing is selected. Use get_design_context or get_node to retrieve deeper detail about a specific node by ID.
- **get_status** — Check whether the Figma plugin bridge is connected and get setup instructions when it is not. Call this first if any tool fails with 'plugin not connected'. Does not touch the Figma document.
- **get_styles** — Get all local styles in the document (paint, text, effect, and grid). Returns each style's ID, name, type, and properties. Use the style ID with apply_style_to_node or update_paint_style. For design tokens (variables), use get_variable_defs instead.
- **get_variable_defs** — Get all local variable definitions: collections, modes, and values. Variables are Figma's design token system.
- **get_viewport** — Get the current Figma viewport: scroll center, zoom level, and visible bounds.
- **group_nodes** — Group two or more nodes into a GROUP. All nodes must share the same parent.
- **import_image** — Import a base64-encoded image into Figma as a rectangle with an image fill. Use get_screenshot to capture images or provide your own base64 PNG/JPG.
- **lock_nodes** — Lock one or more nodes to prevent accidental edits in Figma.
- **move_nodes** — Move one or more nodes to an absolute canvas position. The same x/y is applied to every node independently (not a relative offset from current position).
- **navigate_to_page** — Switch the active Figma page. Provide either pageId or pageName.
- **remove_reactions** — Remove prototype reactions from a node. Omit indices to remove all reactions. Provide a zero-based indices array to remove specific reactions (use get_reactions first to see current indices).
- **rename_node** — Rename a single node by ID. Returns the updated node with its new name. Use batch_rename_nodes to rename multiple nodes at once or to apply find/replace patterns across many nodes.
- **rename_page** — Rename an existing page in the Figma document.
- **reorder_nodes** — Change the z-order (layer stack position) of one or more nodes.
- **reparent_nodes** — Move one or more nodes to a different parent frame, group, or section.
- **resize_nodes** — Resize one or more nodes. The same width/height is applied to every node in the list independently. Provide width, height, or both.
- **rotate_nodes** — Rotate one or more nodes to an absolute angle in degrees.
- **save_screenshots** — Export screenshots for multiple nodes and write them to the local filesystem. Returns file metadata (path, size, dimensions) — no base64 in the response. Use get_screenshot instead when you need the image data in memory.
- **scan_nodes_by_types** — Find all nodes of specific types in a subtree, regardless of name. Use search_nodes instead when you need to filter by name.
- **scan_text_nodes** — Scan all TEXT nodes in a subtree and return their content. Shorthand for scan_nodes_by_types with ['TEXT'] — use when you only need text copy from a component or frame.
- **search_nodes** — Search for nodes by name substring and/or type within a subtree. Use this when you know (part of) the node name. Use scan_nodes_by_types when you want all nodes of a type regardless of name.
- **set_auto_layout** — Set or update auto-layout (flex) properties on an existing frame.
- **set_blend_mode** — Set the blend mode of one or more nodes (e.g. MULTIPLY, SCREEN, OVERLAY).
- **set_constraints** — Set layout constraints (pinning behaviour) on one or more nodes relative to their parent.
- **set_corner_radius** — Set corner radius on one or more nodes. Provide a uniform cornerRadius or individual per-corner values.
- **set_effects** — Apply one or more effects (drop shadow, inner shadow, layer blur, background blur) directly to a node. Replaces all existing effects. Pass an empty array to clear all effects.
- **set_fills** — Set the fill color on a single node (takes one nodeId, not an array). Use mode='append' to stack a new fill on top of existing fills instead of replacing them.
- **set_opacity** — Set the opacity of one or more nodes (0 = fully transparent, 1 = fully opaque).
- **set_reactions**
- **set_strokes** — Set the stroke color and weight on a single node (takes one nodeId, not an array). Use mode='append' to stack a new stroke on top of existing strokes instead of replacing them.
- **set_text** — Update the text content of an existing TEXT node.
- **set_variable_value** — Set a variable's value for a specific mode.
- **set_visible** — Show or hide one or more nodes by setting their visibility.
- **swap_component** — Swap the main component of an existing INSTANCE node, replacing it with a different component while keeping position and size.
- **ungroup_nodes** — Ungroup one or more GROUP nodes, moving their children to the parent and removing the group.
- **unlock_nodes** — Unlock one or more nodes, allowing them to be edited again.
- **update_paint_style** — Update an existing paint style's name, color, or description. Only paint styles support in-place updates — to modify text, effect, or grid styles, use delete_style and recreate them.
- **use_figma** — Run JavaScript against the Figma Plugin API inside the file. Use this for anything the named tools don't cover: FigJam tables/shapes/code blocks/labels, Slides, component variants and properties, vector networks, styled text ranges, variable scopes, library imports, bulk edits in one round-trip.

Code runs as the body of `async () => { ... }`: top-level `await` works, and only the value you `return` comes back (console.log is discarded, so return IDs, counts, or names — never node objects, the response must be JSON-serializable).

Sandbox rules that cause most failures: colors are 0–1 floats, not 0–255; `fills`/`strokes` are read-only arrays, so clone-modify-reassign; load fonts with `await figma.loadFontAsync(node.fontName)` before touching `characters` on existing text; switch pages with `await figma.setCurrentPageAsync(page)` (the sync setter throws) and note the page resets to the first page on every call; `figma.notify()` is unavailable; append a node to an auto-layout parent before setting `layoutSizingHorizontal/Vertical` to HUG or FILL; `figma.createPage()` is Design-file only. Work in small steps and verify between calls.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "figma-mcp-rs": {
    "command": "npx",
    "args": ["-y","figma-mcp-rs@latest"]
  }
}
```

## Documentation

## What the figma-mcp-rs MCP server does

The figma-mcp-rs MCP server gives MCP clients read and write access to the currently open Figma or FigJam file. It communicates with a plugin running inside Figma Desktop rather than calling the Figma REST API, so setup does not require an API token or REST API quota.

The server can create frames, shapes, text, sections, components, and imported images. It can also edit existing nodes by changing text, fills, strokes, opacity, corner radii, layout, visibility, names, positions, dimensions, stacking order, constraints, blend modes, grouping, and parent relationships. Bulk rename and text replacement operations are available as well.

FigJam support includes sticky notes, connectors, shapes with text, tables, code blocks, automatic arrangement, and board-content reads. Reads can also represent FigJam node types such as stickers, connectors, markers, widgets, embeds, and media.

## How it works

Start the server and run its bundled plugin in a Figma or FigJam file. The plugin connects to the local server over WebSocket, normally at `ws://127.0.0.1:1998`. MCP tool calls are then executed against the user's open file.

`get_status` checks the bridge and provides setup guidance when the plugin is not connected. For operations not covered by a named tool, `use_figma` and `execute_code` run JavaScript as an asynchronous Plugin API function body. Returned values must be JSON-serializable; `execute_code` also accepts a timeout from 1 to 25,000 milliseconds and its changes can be undone in Figma.

Multiple native server processes can share one plugin connection through leader election. The first process to bind the port becomes the leader, while other instances proxy calls and can take over if needed.

## Setup and configuration

Install the package through an MCP client's stdio configuration, for example with `npx -y figma-mcp-rs@latest`, or build the native binary from source. Docker is also supported and exposes port 1998. The server accepts `--ip` and `--port` flags; their defaults are `127.0.0.1` and `1998`.

On first startup, the bundled plugin files are written to the user's `.figma-mcp-rs/plugin/` directory. In Figma Desktop, import that directory's `manifest.json` through Plugins, Development, and Import plugin from manifest. Run the imported plugin in the target file and adjust its host or port if the defaults are not used.

## Tools and capabilities

The named tools cover node creation, visual properties, auto-layout, responsive constraints, component conversion, grouping, cloning, reparenting, and content replacement. Figma-only operations return an error when used in FigJam.

The figma-mcp-rs MCP server also exposes an escape hatch for Slides, component variants and properties, vector networks, styled text ranges, variable scopes, and batched edits. Some design-system, team-library, and other unwrapped Plugin API operations therefore require custom code through `use_figma`.

## Limitations and notes

The plugin must be running in an open Figma Desktop file for tool calls to work. Slides support is not covered by dedicated tools, although the Plugin API escape hatch can be used. Team-library variables and styles are not wrapped. Dedicated auto-layout, styles, variables, components, and prototype features are intended for Figma files, not FigJam files.

The server performs changes in the user's active file, so callers should return identifiers, counts, or names rather than raw node objects when using custom code.

_Full upstream README: https://allmcps.com/mcp/figma-mcp-rs/readme_

