figma-mcp-v2
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FIGMA_TOKEN | No | Personal access token (REST source, comments, private files) | |
| FIGMA_COOKIE | No | figma.com cookie, for private files through the web source | |
| FIGMA_SOURCE | No | Force web, rest or plugin | auto |
| FIGMA_NO_BRIDGE | No | Set to 1 to disable the plugin bridge | |
| FIGMA_ASSETS_DIR | No | Default output folder for figma_download_assets | figma-assets |
| FIGMA_BRIDGE_PORT | No | Plugin bridge port (also change it in the plugin window) | 3055 |
| FIGMA_MAX_OUTPUT_CHARS | No | Size at which design/code output gets trimmed | 60000 |
| FIGMA_WEB_PROTOCOL_VERSION | No | Viewer protocol version sent to Figma | 500 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Figma tools. Pass Figma links as url (right-click a layer in Figma > Copy link to selection gives a link with node-id).
Reading needs no Dev Mode and no token for files shared by link: figma_get_file (pages/frames) → figma_get_design (layout/styles/tokens spec) + figma_get_screenshot (see it) → figma_get_code (starting code) → figma_download_assets (icons/images). figma_get_variables / figma_get_styles / figma_get_components describe the design system.
Editing needs the "Figma MCP Bridge" plugin running in the file; check with figma_plugin_status, and use figma_install_plugin to set it up. Never edit unless the user asked for changes.
Building designs: use figma_build_layout to create whole screens in one call (auto layout, components, variants, instances, token bindings, sections, arrows), then check the returned screenshot. Bind colors to variables (figma_bind_tokens) so themes work; figma_create_theme_variant makes dark (or other) variants. Present flows like a design team: one section per flow with a title, per-state headings with requirements, screens, short notes beside them, and arrows for navigation.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| figma_get_fileA | Lists a file's pages and the top-level frames/sections/components on each, with ids and sizes. Start here when a link has no node-id, then pass a frame's id to figma_get_design / figma_get_code / figma_get_screenshot. |
| figma_get_designA | Returns a compact, code-oriented spec of a frame/component/layer: layout (flex direction, gap, padding, alignment, sizing fill/hug/fixed), size/position, fills, strokes, radius, effects, text content and typography, component/variant/props of instances, bound variables (design tokens) by name, and which layers should be exported as assets. Repeated styles are listed once under "styles" and referenced by id (named Figma styles keep their names). No Dev Mode or Figma seat needed. Works from a link: https://www.figma.com/design//?node-id=1-2 Use figma_get_screenshot alongside to see it, figma_get_code for a starting implementation, figma_download_assets to fetch icons/images. |
| figma_get_metadataA | Sparse outline of a node's layer tree: one line per layer with id, type, name, position and size (text layers show their text). Cheaper than figma_get_design for large screens. With name/type/text filters it searches the subtree and lists matches with their path, e.g. find every "Button" instance or the layer containing "Checkout". |
| figma_get_codeA | Generates a starting implementation of a frame/component from its Figma layout: React + Tailwind (arbitrary values), React + CSS, or HTML + CSS. Auto layout becomes flexbox/grid, sizing becomes fixed/flex/stretch, icons become (download them with figma_download_assets). Adapt the output to the project's existing components and design tokens rather than pasting it verbatim; figma_get_design lists the tokens and component instances. |
| figma_get_screenshotA | Renders a frame/component/layer to PNG and returns it as an image so you can see the design. Optionally saves it to save_to. The web source renders locally from the file's vector data (very close to Figma, small differences possible with blend modes and blurs); the REST source and plugin use Figma's own renderer. |
| figma_download_assetsA | Downloads a design's assets to a folder:
|
| figma_get_componentsA | Lists components and component sets (with variants, property definitions, descriptions and how often each is used), so you can map Figma components to code components. scope "page" covers the page of the linked node (fast); "file" loads every page. |
| figma_get_stylesA | Lists the file's local color, text, effect and grid styles with their values (colors as hex, typography as font/size/line-height). Use to map Figma styles to CSS variables or theme tokens. |
| figma_get_variablesA | Lists variable collections, modes (e.g. Light/Dark) and every variable's value per mode, with aliases shown by name. Works on any plan through the web source or the plugin; the REST source needs Enterprise. |
| figma_export_tokensA | Exports the file's variables as W3C Design Tokens (DTCG format 2025.10): one .tokens.json file per collection and mode, plus a .resolver.json whose modifiers switch modes (light/dark, brands, sizes). Colors become srgb color objects, spacing-like numbers become px dimensions, aliases become {group.token} references, and Figma scopes/code syntax go to $extensions. Feed the files to Style Dictionary or another DTCG tool to generate CSS, Swift or Kotlin. Works on any plan through the web source or the plugin. |
| figma_get_commentsA | Lists comments on the file (author, text, resolved state, and the node they are pinned to). Requires FIGMA_TOKEN. |
| figma_plugin_statusA | Shows which Figma files have the companion plugin connected (needed for every edit tool), and how to connect it if none are. |
| figma_install_pluginA | Copies the companion "Figma MCP Bridge" plugin (needed for every editing tool) to a stable folder on this computer, shows it in Finder/Explorer, and returns the import steps for the user. Use it when figma_plugin_status reports no plugin and the user hasn't imported it yet. Later server updates refresh the copied files automatically. |
| figma_get_selectionA | Returns the layers currently selected in Figma (via the plugin), with ids you can pass to the other tools. |
| figma_build_layoutA | Builds a whole nested layer tree in one call: screens, auto-layout stacks, text, shapes, SVG icons, components, variants and instances. Prefer this over many figma_create_node calls. Returns ids (by "ref"), warnings for anything Figma rejected, and optionally a PNG of the result to check it. Node spec (all fields optional except where noted):
|
| figma_bind_tokensA | Finds solid colors (fills, strokes and styled text ranges) in the given layers that are not bound to a variable, and binds each to the variable in a collection whose value matches exactly. Use after building or importing layers so they follow the design tokens. Returns how many paints changed and which colors had no matching token. |
| figma_create_theme_variantA | Clones layers (usually screens) as another theme. With |
| figma_anchor_nodesA | Positions existing layers against their parent's edges and sets matching constraints, taking them out of auto-layout flow if needed. For floating buttons, bottom sheets, toasts and badges, e.g. {right: 16, bottom: 16, above: "Navigation bar"}. |
| figma_draw_arrowsA | Draws orthogonal connector arrows between existing layers, e.g. from a button to the screen or sheet it opens. The side is chosen from the layers' positions unless given. |
| figma_auditA | Checks layers against accessibility and design-system standards and lists findings with node ids:
|
| figma_annotateA | Adds Figma's native annotations to layers: a note (plain text or markdown), optionally pinned properties that Dev Mode shows live (e.g. padding, itemSpacing, cornerRadius, fills, textStyleId, width, height), in a category such as "Interaction", "Accessibility" or "Content" (created if missing). Developers see them in Dev Mode next to the design. Prefer this over drawn note text for handoff. |
| figma_set_dev_statusA | Sets the Dev Mode status of top-level frames or sections (directly on a page or in a section): READY_FOR_DEV, COMPLETED, or none to clear. Needs a plan with Dev Mode (Professional or higher; Completed needs Organization or higher). |
| figma_create_nodeB | Creates a FRAME, RECTANGLE, ELLIPSE, LINE, POLYGON, STAR, COMPONENT, SECTION or TEXT layer, optionally inside a parent and with properties (auto layout, fills, text…). Returns its id. |
| figma_update_nodeB | Sets properties on an existing layer: size, position, fills, strokes, radius, opacity, auto layout, sizing, effects, constraints, text style, name, visibility… |
| figma_set_textB | Replaces a text layer's characters (fonts are loaded automatically) and optionally its text properties. |
| figma_delete_nodesB | Deletes the given layers. Undo in Figma with Cmd/Ctrl+Z. |
| figma_clone_nodeB | Duplicates a layer, optionally into another parent and at a position. |
| figma_move_nodeB | Moves a layer into another parent and/or to an index among its siblings and/or to x/y. |
| figma_group_nodesB | Groups layers (or wraps them in a new frame with frame=true). |
| figma_create_instanceB | Creates an instance of a local component (component_id; a component set uses its default variant) or a library component (component_key), optionally setting its properties/variant. |
| figma_set_instance_propertiesB | Changes an instance's variant and component properties (short names like "Label" work), or swaps it to another component. |
| figma_detach_instanceB | Detaches an instance from its component, turning it into a regular frame. |
| figma_create_componentA | Turns a layer into a component (node_id), or combines several components into a variant set (combine_node_ids). |
| figma_create_from_svgC | Creates vector layers from SVG markup (icons, illustrations). |
| figma_insert_imageB | Places an image (from a local file path, an https URL, or base64) as a new rectangle, or as the fill of an existing layer (node_id). |
| figma_select_nodesB | Selects layers in Figma and scrolls/zooms the viewport to them (switching page if needed). Useful to show the user what you changed. |
| figma_create_pageB | Adds a page to the file, optionally switching to it. |
| figma_create_variable_collectionC | Creates a variable collection with modes, e.g. name "Colors", modes ["Light","Dark"]. |
| figma_create_variableA | Creates a variable in a collection with a value per mode, e.g. type COLOR, values {"Light":"#FFFFFF","Dark":"#111111"}, or an alias {"Light":{"alias":"Base/White"}}. |
| figma_set_variable_valueC | Updates a variable's value for one or more modes. |
| figma_bind_variableB | Binds a variable to a layer property: "fills"/"strokes" (color, with paint_index), or a numeric field like "itemSpacing", "paddingLeft", "cornerRadius", "width", "opacity". |
| figma_create_styleB | Creates a local FILL (value: color or paints), TEXT (value: {fontFamily,fontStyle,fontSize,lineHeight,letterSpacing}) or EFFECT (value: effects array) style. |
| figma_apply_styleB | Applies a local style to a layer as its fill, stroke, text or effect style. |
| figma_executeA | Runs JavaScript inside the Figma plugin with the full Plugin API, for anything the other tools don't cover (bulk edits, complex layouts, reading plugin-only data). The code is the body of an async function with |
| figma_post_commentA | Posts a comment on the file (optionally pinned to a node, or as a reply). Requires FIGMA_TOKEN with the file_comments:write scope. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| implement_figma_design | Step-by-step: read a Figma frame, download its assets, and implement it in this codebase. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 45 tools
Most tools target a clearly distinct resource+action, and descriptions explicitly cross-reference alternatives (e.g. figma_build_layout vs figma_create_node, figma_get_design vs figma_get_metadata vs figma_get_code). A few boundaries blur: figma_move_node vs figma_anchor_nodes, figma_set_text vs figma_update_node (text style/name), and figma_apply_style vs figma_bind_variable vs figma_bind_tokens, plus the figma_execute catch-all overlaps everything. The detailed descriptions make the right choice inferable, but an agent can still hesitate.
Every tool uses the same figma_<verb>_<noun> snake_case pattern (get_file, create_variable, bind_tokens, download_assets), which is highly predictable. The only deviation is the noun-only figma_plugin_status, a trivial exception.
45 tools is far beyond the 3-15 sweet spot and heavy for any single server; the surface spans reading, node building, tokens, components, accessibility auditing and comments. While the Figma domain is genuinely broad, the count forces the agent to scan a large menu where figma_execute and figma_build_layout already absorb many individual operations.
Coverage is broad: file/design/code/screenshot/metadata reads, full node creation/update/delete, variables, styles, components/instances, commenting, auditing and Dev Mode handoff. Remaining gaps are minor lifecycle operations such as deleting variables/styles/collections and resolving or deleting comments, which agents can work around via figma_execute.