Skip to main content
Glama
figma-bridge-mcp

figma-bridge-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FIGMA_MCP_HOSTNoBind address. Changing it exposes an unauthenticated bridge — avoid.127.0.0.1
FIGMA_MCP_PORTNoBridge port. If taken, the next 9 ports are tried.47451
FIGMA_MCP_LONG_POLL_MSNoHow long an idle poll is held open.8000
FIGMA_MCP_ALLOW_PRIVATE_FETCHNoSet to `1` to let `loadImage` reach private/loopback hosts (e.g. a local asset server).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
figma_statusA

Check whether the Figma plugin bridge is connected. Always call this first to confirm the plugin is running before any other tool.

figma_writeA

Execute JavaScript code to CREATE or MODIFY designs in Figma. ⚠️ MANDATORY: Call figma_docs BEFORE writing any design code. Skipping figma_docs causes hardcoded colors, wrong sizing, broken layouts, and low-quality UI. Use the figma proxy object — all methods return Promises, use async/await. REUSE BEFORE DRAWING: check get_local_components / figma_rules first. Shared pieces → figma.instantiate({ componentId, parentId, overrides }); a frame to start from → figma.clone({ id, parentId, overrides }) (both return the copy's layers). Never redraw what already exists; create() warns when a component of that name exists. Operations: create, modify, delete, clone, group, ungroup, flatten, resize, set_selection, set_viewport, batch (multiple ops in one call). Design Tokens: createVariableCollection, createVariable, setVariableValue, addVariableMode, renameVariableMode, removeVariableMode, applyVariable, setFrameVariableMode, clearFrameVariableMode, createPaintStyle, createTextStyle, createComponent. Prototyping: setReactions, getReactions, removeReactions (click/hover/press → navigate/overlay/swap with Smart Animate transitions). Scroll: setScrollBehavior (overflowDirection: NONE/HORIZONTAL/VERTICAL/BOTH). Variants: setComponentProperties, swapComponent, getComponentProperties. Component property definitions (master-side, required for instance text overrides to recalc auto-layout): addComponentProperty (TEXT/BOOLEAN/INSTANCE_SWAP), bindComponentPropertyToText, removeComponentProperty. The code runs in a sandboxed VM: no access to require, process, fs, fetch, or network.

figma_readA

READ design data from Figma — extract node trees, colors, typography, spacing, and screenshots. Use to understand an existing design before generating code, or to inspect what's on the canvas.

figma_docsA

Get the API reference and design rules for figma_write. Call with no args first — returns quick-start guide + critical rules. Then load specific sections as needed: section='rules' (design principles, token rules, layer order, component-first), section='layout' (auto-layout, button/card/badge/progress/mobile rules), section='api' (create/modify/delete/clone/batch/read operations + workflow), section='tokens' (variables, multi-mode, paint styles, text styles), section='icons' (loadImage, loadIcon, loadIconIn, icon libraries, coloring, sizing). Always call figma_docs BEFORE any figma_write code.

figma_rulesA

Generate a design system rule sheet from the current Figma file — aggregates color tokens, typography styles, variables (all modes), and component catalog into a single markdown block. Equivalent to official Figma MCP's create_design_system_rules. Call once at the start of a design-to-code session to give the AI full context: what tokens to use, what text styles exist, which components are available. Re-run when the design system changes.

figma_export_filesA

Export frames from the current Figma page to image files ON DISK and return their paths, not the images. Use it to save mockups for docs, PRDs or attachments; use figma_read screenshot to LOOK at a frame instead. Select nodes with nodeIds, or with namePattern (wildcard * on the node name, e.g. "Workspace/*"; current page only). Files are written only inside the allowed export folders: ./figma-exports (relative to the MCP client's working directory) plus any folders listed in the FIGMA_EXPORT_ROOTS environment variable. Omit outputDir to use ./figma-exports. File names come from the node names (lowercase, ASCII, hyphens) unless fileNames is given; the extension always follows format. An existing file is never replaced unless overwrite is true. At most 50 files per call.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 6 tools

Disambiguation4/5

Most tools have clearly delineated roles: figma_read inspects nodes, figma_write mutates the canvas, figma_export_files writes images to disk, and figma_status checks connectivity. The overlap is between figma_read, figma_rules, and figma_docs, which all return reference-style information, but the descriptions explicitly clarify (e.g., screenshot in figma_read to LOOK, export to save files; docs for API reference, rules for the file's design system).

Naming Consistency4/5

All tools share a consistent figma_ prefix with short, readable snake_case labels, so the namespace is predictable. There is a minor inconsistency in that read/write/export_files are verbs while docs/rules/status are nouns, but the pattern remains easy to scan and infer.

Tool Count5/5

Six tools is a well-scoped surface for a Figma bridge: one read path, one write path, one export path, one status check, and two documentation/rule helpers. Each tool earns its place and none feels redundant or decorative.

Completeness4/5

The lifecycle is largely covered: connectivity check, design inspection, mutation (including delete/clone/batch), and export. Minor gaps exist, such as reading beyond the current page only for exports, and no dedicated tool for comments/annotations or file/page enumeration, which agents would have to work around via figma_read.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues