
Figma Console MCP
MCPLets agents read and write Figma: extract variables, components and styles, create and edit screens, FigJam boards and slides on the canvas, and run accessibility checks and design-system audits. Needs a Figma personal access token, the Figma desktop app, Node.js and the companion plugin.
Figma Console MCP Server
Your design system as an API. A design-system-focused Model Context Protocol server for Figma. It works in both directions (Figma ⇄ code), writes to Figma, and runs deterministic checks for design-code parity, accessibility, and design-system health. It hands the AI exact tokens, variants, bindings, and states as structured data rather than prescribing a framework or house style, so generated code follows your team's own stack and conventions.
🆕 v2.5: Token exports resolve variables from other libraries: When your variables alias a shared library (a theme on top of a primitives library),
figma_export_tokensand the Token Browser read those library variables through the Desktop Bridge, so CSS, SCSS, Tailwind, Style Dictionary and the other formats write real values instead of skipping the tokens, and DTCG carries the library collections as their own sets. Read-only: import never changes library variables. No plugin re-import. See what's new →
What is this?
Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
- 🎨 Design system extraction - Pull variables, components, and styles
- 🧭 Design-system adherence - Map each UI need to a real component (and each part, like a card's image), mark what the system lacks with an explained gap note where it belongs instead of inventing it, and audit generated Figma frames and code for look-alikes, off-system components and values not bound to tokens
- ⚡ Token-efficient by default - Tools load in toolsets: a core set is always on and the rest switch on when a task needs them, cutting tool definitions from ~60k to ~9k tokens per message. Compact results and Skills loaded on demand
- 🔗 Dev resources & impact analysis - Link components to their code, Storybook and docs in bulk; see where a style, variable or component is used before you change it
- 🧬 Codebase → design system extraction - Scan a production codebase, mine its de-facto styling into DTCG tokens with per-token provenance, scaffold a design-system package with a wired Storybook workshop, and gate it with deterministic fidelity evals — then round-trip the tokens into Figma variables (Local Mode)
- 🔁 Bidirectional token sync - Export Figma variables to DTCG JSON (legacy or 2025.10 dialect) + 9 more formats; push code-side edits back to Figma with full apply — creates, renames, alias re-targeting, and replace-gated deletes. Replaces Style Dictionary and Tokens Studio's export pipeline.
- 📸 Visual debugging - Take screenshots for context
- ✏️ Design creation - Create UI components, frames, and layouts directly in Figma — including one-call component-set creation from a variant axes matrix
- 🖼️ Icons, images and asset export - Import SVG icons (one, a batch, or a whole folder) as editable vectors, icon components and variant sets built from file names, with color bound to a token; re-imports update icons in place. The AI can also write the SVG for a new icon or illustration. Place PNG, JPEG and GIF images, and export renders, code-ready icon SVGs and original images into your repo
- 🌐 Web pages as editable layers - Capture a live site, your localhost dev server or an HTML string as Figma frames at several viewport widths: auto layout only where it reproduces the page, real text, images and vectors, and colors, spacing and type bound to your file's tokens, with the values your system doesn't cover listed instead of invented
- 🔧 Variable management - Create, update, rename, and delete design tokens
- 🕰 Version history & time-series awareness - List versions, diff snapshots, generate markdown changelogs, trace property/variant introduction via binary-search blame, and fold per-component design + git history into generated component docs
- ⚡ Real-time monitoring - Watch console logs from the Desktop Bridge plugin
- 📌 FigJam boards - Create stickies, flowcharts, tables, and code blocks on collaborative boards, and draw whole diagrams from Mermaid or JSON (flowchart, state, sequence, ER, gantt, architecture) that redraw in place, keeping what the team added, and read back as Mermaid
- 🎞️ Slides presentations - Build and manage Figma Slides decks programmatically
- ♿ Accessibility scanning - 14 WCAG design checks with conformance level tagging, component scorecards, axe-core code scanning, design-to-code parity
- 🔗 Code Connect - Generate Code Connect files from your real code components (props, variants and value mapping, never an invented prop), map Figma instances to code snippets before writing code, audit coverage and drift as a CI gate, and preview and publish through your repo's own Code Connect CLI after a dry run
- 🔍 Design-code parity & component docs - Deterministic comparison of a Figma component with its code (visual, spacing, typography, tokens, component API, accessibility), and generated component documentation with per-variant tokens and an optional design + git changelog
- 📋 Design-system health audits - Lighthouse-style scored audit across naming, tokens, component metadata, accessibility, consistency, and coverage — available as a plain tool for any MCP client (with per-finding auto-fix guidance) and as a visual dashboard app
- 🛡 Cross-MCP identity - Every tool response carries
_mcp: "figma-console-mcp"and errors are prefixed[figma-console-mcp]so attribution stays unambiguous in agents running multiple Figma MCPs - ☁️ Cloud Write Relay - Web AI clients (Claude.ai, v0, Replit) can design in Figma via cloud pairing
- 🔄 Four ways to connect - Remote SSE, Cloud Mode, NPX, or Local Git
⚡ Quick Start
Choose Your Setup
First, decide what you want to do:
| I want to... | Setup Method | Time |
|---|---|---|
| Create and modify designs with AI | NPX Setup (Recommended) | ~10 min |
| Design from the web (Claude.ai, v0, Replit, Lovable) | Cloud Mode | ~5 min |
| Contribute to the project | Local Git Setup | ~15 min |
| Just explore my design data (read-only) | Remote SSE | ~2 min |
⚠️ Important: Capability Differences
| Capability | NPX / Local Git | Cloud Mode | Remote SSE |
|---|---|---|---|
| Read design data | ✅ | ✅ | ✅ |
| Create components & frames | ✅ | ✅ | ❌ |
| Edit existing designs | ✅ | ✅ | ❌ |
| Manage design tokens/variables | ✅ | ✅ | ❌ |
| FigJam boards (stickies, flowcharts, Mermaid diagrams) | ✅ | ✅ | ❌ |
| Real-time monitoring (console, selection) | ✅ | ❌ | ❌ |
Codebase → design system extraction (figma_ds_*) | ✅ | ❌ | ❌ |
| Code Connect: publish through your repo's CLI | ✅ | ❌ (generate, map and audit from files you pass) | ❌ |
| Desktop Bridge plugin | ✅ | ✅ | ❌ |
| Requires Node.js | Yes | No | No |
| Total tools available | 158 | 127 after pairing | Read-only subset |
Bottom line: Remote SSE is read-only until you pair the plugin. Cloud Mode unlocks write access (127 tools) from web AI clients without Node.js. NPX/Local Git gives the full 158 tools with real-time monitoring.
🚀 NPX Setup (Recommended)
Best for: Designers who want full AI-assisted design capabilities.
What you get: All 158 tools including design creation, variable management, and component instantiation.
Prerequisites
- Node.js 18+ — Check with
node --version(Download) - Figma Desktop installed (not just the web app)
- An MCP client (Claude Code, Cursor, Windsurf, Claude Desktop, etc.)
Step 1: Get Your Figma Token
- Go to Manage personal access tokens in Figma Help
- Follow the steps to create a new personal access token
- Enter description:
Figma Console MCP - Set scopes (all Read unless noted): File content, File versions, Library content, Library assets, Comments (Read and write), Current user, and Variables (Enterprise only, optional). See why each is needed
- Copy the token — you won't see it again! (starts with
figd_)
Step 2: Configure Your MCP Client
Claude Code (CLI):
claude mcp add figma-console -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest
OpenAI Codex (CLI):
codex mcp add figma-console --env FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE --env ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest
Then set startup_timeout_sec = 60 and tool_timeout_sec = 300 for it in ~/.codex/config.toml (Codex's 10 s / 60 s defaults are too short). The Codex app and IDE extension share this config. Full Codex setup →
Gemini CLI:
gemini mcp add -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true figma-console npx -y figma-console-mcp@latest
Google Antigravity (IDE, CLI, app): add the JSON below to ~/.gemini/config/mcp_config.json, plus "timeoutSeconds": 300 in the server entry. Full Antigravity setup →
Cursor / Windsurf / Claude Desktop:
Add to your MCP config file (see Where to find your config file below):
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "figma-console-mcp@latest"],
"env": {
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
"ENABLE_MCP_APPS": "true"
}
}
}
}
📂 Where to Find Your Config File
If you're not sure where to put the JSON configuration above, here's where each app stores its MCP config:
| App | macOS | Windows |
|---|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Code (CLI) | ~/.claude.json | %USERPROFILE%\.claude.json |
| Cursor | ~/.cursor/mcp.json | %USERPROFILE%\.cursor\mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | %USERPROFILE%\.codeium\windsurf\mcp_config.json |
| OpenAI Codex (app, CLI, IDE) | ~/.codex/config.toml (TOML, see format) | %USERPROFILE%\.codex\config.toml |
| Gemini CLI | ~/.gemini/settings.json | %USERPROFILE%\.gemini\settings.json |
| Google Antigravity (IDE, CLI, app) | ~/.gemini/config/mcp_config.json | %USERPROFILE%\.gemini\config\mcp_config.json |
Tip for designers: The
~symbol means your home folder. On macOS, that's/Users/YourName/. On Windows, it'sC:\Users\YourName\. You can open these files in any text editor — even TextEdit or Notepad.Can't find the file? If it doesn't exist yet, create it. The app will pick it up on its next restart. Make sure the entire file is valid JSON (watch for missing commas or brackets).
Claude Code users: You can skip manual editing entirely. Just run the
claude mcp addcommand above and it handles everything for you.
Step 3: Connect to Figma Desktop
Desktop Bridge Plugin:
- Open Figma Desktop normally (no special flags needed) and open a file
- Go to Plugins → Development → Import plugin from manifest...
- Select
~/.figma-console-mcp/plugin/manifest.json(stable path, auto-created by the MCP server). Runnpx figma-console-mcp --print-pathto print the exact path for your machine. - Run the plugin in your Figma file — it scans ports 9223–9232 and connects automatically to your running MCP server
Can't see the folder in the import dialog?
.figma-console-mcpstarts with a dot, so macOS hides it. In the dialog, press ⌘⇧G and paste the path (or press ⌘⇧. to show hidden files). On Windows the folder is visible as normal.
Heads-up on plugin updates. Figma caches plugin files (
code.jsandui.html) at the application level. The MCP server refreshes the files at~/.figma-console-mcp/plugin/on every startup, but Figma keeps using its cached copy until you re-import the manifest.Re-importing is required only when a release notes entry says so — typically when the plugin adds a new method the server needs (e.g. v1.22.4, v1.10.0). The plugin files last changed in v1.41.5; if your imported plugin predates that, re-import once. The plugin shows an update banner when the server bundles a newer plugin than the one running. For most upgrades the new server stays wire-compatible with the previous plugin, and re-importing is optional: you'll still get every functional change, just not the cosmetic plugin-side touches (status-pill copy,
pluginVersionreporting).When you do re-import: Plugins → Manage plugins → re-import
~/.figma-console-mcp/plugin/manifest.json. The stable path never changes, so it's a one-click step.
Step 4: Restart Your MCP Client
Restart your MCP client to load the new configuration.
Step 5: Test It!
Check Figma status
→ Should show connection status with active WebSocket transport
Create a simple frame with a blue background
→ Should create a frame in Figma (confirms write access!)
For Contributors: Local Git Mode
Best for: Developers who want to modify source code or contribute to the project.
What you get: Same 158 tools as NPX, plus full source code access.
Quick Setup
# Clone and build
git clone https://github.com/southleft/figma-console-mcp.git
cd figma-console-mcp
npm install
npm run build:local
Configure Your MCP Client
Add to your config file (see Where to find your config file):
{
"mcpServers": {
"figma-console": {
"command": "node",
"args": ["/absolute/path/to/figma-console-mcp/dist/local.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
"ENABLE_MCP_APPS": "true"
}
}
}
}
Then follow NPX Steps 3-5 above.
📡 Remote SSE (Read-Only Exploration)
Best for: Quickly evaluating the tool or read-only design data extraction.
What you get: the read-only tools — view file data, components, styles, comments and version history, take screenshots, read logs, check design-code parity. Cannot create or modify designs.
Claude Desktop (UI Method)
- Open Claude Desktop → Settings → Connectors
- Click "Add Custom Connector"
- Enter:
- Name:
Figma Console (Read-Only) - URL:
https://figma-console-mcp.southleft.com/sse
- Name:
- Click "Add" — Done! ✅
OAuth authentication happens automatically when you first use design system tools.
Claude Code
⚠️ Known Issue: Claude Code's native
--transport ssehas a bug. Usemcp-remoteinstead:
claude mcp add figma-console -s user -- npx -y mcp-remote@latest https://figma-console-mcp.southleft.com/sse
💡 Tip: For full capabilities, use NPX Setup instead of Remote SSE.
Other Clients (Cursor, Windsurf, etc.)
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
}
}
}
Upgrading to Full Capabilities
Ready for design creation? Follow the NPX Setup guide above, or try Cloud Mode if you don't want to install Node.js.
☁️ Cloud Mode (Web AI Clients)
Best for: Using Claude.ai, v0, Replit, or Lovable to create and modify Figma designs — no Node.js required.
What you get: 127 tools including full write access — design creation, variable management, component instantiation, and all REST API tools. Only real-time monitoring (console logs, selection tracking, document changes) requires Local Mode.
Prerequisites
- Figma Personal Access Token — Create one here (starts with
figd_) - Figma Desktop with the Desktop Bridge plugin installed (see Desktop Bridge setup)
- A web AI client that supports MCP (Claude.ai, Lovable, v0, Replit, etc.)
Step 1: Add the MCP Connector
Add this endpoint to your AI platform's MCP settings:
URL: https://figma-console-mcp.southleft.com/mcp
Auth: Your Figma PAT as Bearer token
In Claude.ai: Settings → Connectors → Add Custom Connector → paste the URL above. In Lovable/v0/Replit: Look for "Add MCP Server" or "Integrations" in settings → paste the URL and add your token.
Step 2: Pair the Plugin
- Open the Desktop Bridge plugin in Figma Desktop (Plugins → Development → Figma Desktop Bridge)
- Tell your AI assistant:
Connect to my Figma plugin - The AI gives you a 6-character pairing code (expires in 5 minutes)
- In the plugin: Toggle "Cloud Mode" → enter the code → click Connect
- You're paired! Full write access is now available
What You Can Do
Once paired, use natural language to design:
Create a card component with a header image, title, description, and action button
Set up a color token collection with Light and Dark modes
Add a "High Contrast" mode to my existing token collection
How It Works
Your AI client sends write commands through the cloud MCP server, which relays them via WebSocket to the Desktop Bridge plugin running in your Figma Desktop. The plugin executes the commands using the Figma Plugin API and returns results back through the same path.
AI Client → Cloud MCP Server → Durable Object Relay → Desktop Bridge Plugin → Figma
Variables on any plan: Cloud Mode uses the Plugin API (not the Enterprise REST API), so variable management works on Free, Pro, and Organization plans.
📊 Installation Method Comparison
| Feature | NPX (Recommended) | Cloud Mode | Local Git | Remote SSE |
|---|---|---|---|---|
| Setup time | ~10 minutes | ~5 minutes | ~15 minutes | ~2 minutes |
| Total tools | 158 | 127 after pairing | 158 (Local Git) | Read-only subset |
| Design creation | ✅ | ✅ | ✅ | ❌ |
| Variable management | ✅ | ✅ | ✅ | ❌ |
| Component instantiation | ✅ | ✅ | ✅ | ❌ |
| FigJam boards | ✅ | ✅ | ✅ | ❌ |
| Real-time monitoring | ✅ | ❌ | ✅ | ❌ |
| Desktop Bridge plugin | ✅ | ✅ | ✅ | ❌ |
| Variables (no Enterprise) | ✅ | ✅ | ✅ | ❌ |
| Console logs | ✅ (zero latency) | ❌ | ✅ (zero latency) | ✅ |
| Read design data | ✅ | ✅ | ✅ | ✅ |
| Requires Node.js | Yes | No | Yes | No |
| Authentication | PAT (manual) | OAuth (automatic) | PAT (manual) | OAuth (automatic) |
| Automatic updates | ✅ (@latest) | ✅ | Manual (git pull) | ✅ |
| Source code access | ❌ | ❌ | ✅ | ❌ |
Key insight: Remote SSE is read-only. Cloud Mode adds write access for web AI clients without Node.js. NPX/Local Git give the full 158 tools.
🎯 Test Your Connection
After setup, try these prompts:
Basic test (all modes):
Navigate to https://www.figma.com and check status
Design system test (requires auth):
Get design variables from [your Figma file URL]
Cloud Mode test:
Connect to my Figma plugin
→ Follow the pairing flow, then try: "Create a simple blue rectangle"
Plugin test (Local Mode only):
Show me the primary font for [your theme name]
🔐 Authentication
Remote Mode - OAuth (Automatic)
When you first use design system tools:
- Browser opens automatically to Figma authorization page
- Click "Allow" to authorize (one-time)
- Token stored securely and refreshed automatically
- Works with Free, Pro, and Enterprise Figma plans
Local Mode - Personal Access Token (Manual)
- Visit https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens
- Generate token with scopes (all Read unless noted): File content, File versions, Library content, Library assets, Comments (Read and write), Current user, and Variables (Enterprise only, optional)
- Add to MCP config as
FIGMA_ACCESS_TOKENenvironment variable
🛠️ Available Tools
v2.0: tools load in toolsets (Local Mode). A core set is always listed: status, navigation, component search and resolve, building, token binding, audit, lint, screenshots and
figma_execute. Everything else below sits in a toolset that the AI switches on when a task needs it:inspect,variables,components,parity,codeconnect,docs,debug,motion,assets,figjam,slidesorextraction. This keeps every message ~50k tokens lighter. SetFIGMA_TOOLSETS=allto list every tool (the pre-2.0 behavior), orFIGMA_TOOLSETS=variables,parityto preload the ones you always use. Cloud Mode lists all its tools.
🧰 Toolsets
figma_enable_toolsets- Switch on a toolset (sendstools/list_changed, so the client refreshes its list)figma_call- Run an enabled tool by name, for clients that don't refresh their tool list
🧭 Design-System Adherence
figma_resolve_components- Map each UI need (and its parts, like a card's image) to a real component; what the system lacks comes back as an explainedGAP:note to place where it belongs, never a look-alikefigma_audit_adherence- Check a built frame: hand-built look-alikes, new or off-system components, values not bound to variables, and gap notes that don't explain themselves or stand in for a real componentfigma_audit_code_adherence- The same check for generated code: re-implemented components, unknown tokens, hardcoded values, Tailwind arbitrary valuesfigma_check_library_parity- Pair a Figma library with its code library and compare props, variants and states (Custom Elements Manifest or React source)figma_bind_tokens- Bind spacing, radius, sizing and typography to existing variables and styles; never creates tokens
Status & Diagnostics
figma_get_status- Check WebSocket bridge connection and file contextfigma_diagnose- Designer-readable health check + setup guidancefigma_reconnect- Force reconnect to the Desktop Bridge pluginfigma_navigate- Switch the active file target among connected plugins (Local), or navigate the cloud headless browser (Remote/Cloud)figma_list_open_files- List files connected through the Desktop Bridge and which one is active (Local Mode)
Console Debugging
figma_get_console_logs- Retrieve console logsfigma_watch_console- Real-time log streamingfigma_clear_console- Clear log bufferfigma_reload_plugin- Reload current page
Visual Debugging
figma_take_screenshot- Export an image of a page or node (Desktop Bridge first, REST fallback)figma_capture_screenshot- Render a node from the plugin runtime, reflecting changes that haven't reached the REST API yet
👁️ Real-Time Awareness (Local Mode only)
figma_get_selection- The nodes currently selected in Figmafigma_get_design_changes- Buffered document-change events, for polling what changed
Design System Extraction
figma_get_design_system_kit- Full design system in one call — tokens, components, styles, visual specsfigma_get_variables- Extract design tokens/variablesfigma_get_component- Get component data (metadata or reconstruction spec)figma_get_component_for_development- Component + imagefigma_get_component_image- Just the imagefigma_get_styles- Color, text, effect stylesfigma_get_file_data- Full file structurefigma_get_file_for_plugin- Optimized file datafigma_get_design_system_summary/figma_get_token_values- Compact design-system overview and variable values by mode (Local Mode only)figma_audit_design_system_report- Scored health audit for any MCP client — six-category report (naming, tokens, metadata, accessibility, consistency, coverage) with per-finding remediation ("can this MCP fix it?"), chunked per-category drill-down, live-first data with disclosed source, 5-minute cache
📚 Shared Library Inspection
figma_get_library_component_by_key- Resolve any component key to full properties + variants + visual specs — without needing the source library file's URL. Works for both COMPONENT_SET and standalone COMPONENT keys. Adaptive compression at >500KB.figma_get_library_components- Discover all components in a library file (requires library file URL/key)figma_get_library_variables- List every variable from team libraries the current file has subscribed. Works on every Figma plan — uses the Plugin API path, not the Enterprise-only REST endpoint. Filter bylibraryName,collectionName, orresolvedType.figma_import_library_variable- Import a library variable into the current file. Returns a localidready to pass tofigma_set_fills/figma_update_variable/ any variable-binding tool.
☁️ Cloud Relay
figma_pair_plugin- Generate a pairing code to connect a Desktop Bridge plugin via the cloud relay
✏️ Design Creation (Local Mode + Cloud Mode)
figma_execute- Power tool: Run any Figma Plugin API code to create designs- Create frames, shapes, text, components
- Apply auto-layout, styles, effects
- Build complete UI mockups programmatically
- Optional
fileKeytargets one specific connected file directly (Local Mode only), without touching the active file or target lock
figma_execute_across_files- Local Mode only. Run the same script in several Desktop Bridge-connected files at once, concurrently, returning a per-file result map — for cross-file consistency checks and fixes across a multi-file design system, replacing "open file, run plugin, repeat per file"- Name the files with
fileKeys(fromfigma_list_open_files), or passallFiles: trueto hit every connected file — one of the two is required, so a script never fans out to files you didn't mean to touch - Per-file timeouts and error isolation: one slow or failing file doesn't delay or fail the others
- Name the files with
figma_create_component_set- Create a component set with variants in one declarative call- Generate every variant combination from an axes matrix (e.g.
{ State: ["default", "hover", "disabled"], Size: ["sm", "lg"] }→ 6 variants) off a base component, or combine existing components Prop=Valuevariant naming,combineAsVariantsunder the hood, optional auto-arranged labeled grid- Returns each variant's key, ready for
figma_instantiate_component
- Generate every variant combination from an axes matrix (e.g.
figma_arrange_component_set- Organize variants into professional component sets- Convert multiple component variants into a proper Figma component set
- Applies native purple dashed border visualization automatically
- Creates white container frame with title, row labels, and column headers
- Row labels vertically centered with each grid row
- Column headers horizontally centered with each column
- Use natural language like "arrange these variants" or "organize as component set"
figma_set_description- Document components with rich descriptions- Add descriptions to components, component sets, and styles
- Supports markdown formatting for rich documentation
- Descriptions appear in Dev Mode for developers
🧩 Figma Slots (Local Mode + Cloud Mode)
figma_create_slot- Add a slot to a component via the GAcreateSlot()API — the linked SLOT property is created automatically; works on standalone components and variants inside a component setfigma_get_slots- List slots on a component, component set (aggregated across variants), or instance — ids, names, property keys, dimensions, and current childrenfigma_append_to_slot- Populate an instance's slot by cloning an existing node or creating new content (setPropertiesrejects slot values by design — this is the population path)figma_reset_slot- Clear a slot's content on an instancefigma_add_slot_property- Retrofit an existing frame as a slot via a manual SLOT property binding, withdescriptionandpreferredValues
🎬 Motion (Local Mode + Cloud Mode)
Figma Motion (Plugin API beta). Animations play in Figma's preview and in video export, not in static screenshots.
figma_get_animations- Read a layer's animation styles, keyframe tracks and timeline, with CSS easings and token bindingsfigma_apply_animation- Animate a layer with a Figma preset (Opacity, Scale, Position, Rotation, Size, Path, TextStagger), a custom animation style, or manual keyframes for any animatable property, paint color or effect. Easing and duration can bind to EASING/TIMING variablesfigma_remove_animation- Remove one animation style, one keyframe track, or everythingfigma_manage_animation_styles- Build reusable motion styles: list Figma's presets and their options, and create, update or delete custom animation stylesfigma_export_animation- Export an animated frame as MP4, GIF or WebM
🧱 Code Layers (Local Mode + Cloud Mode)
figma_get_code_layers- Find Figma code layers on a page or across the file, with position, size and linked dev resources. Figma's APIs don't expose code-layer source, so creating and editing them stays in Figma or Figma's own MCP (send_code_to_figma)
✨ Shaders (Local Mode + Cloud Mode)
figma_list_shaders- List shaders applied in the file (with each property's name, type and default, and the layers using them) and shaders from your librariesfigma_apply_shader- Apply a shader or change its properties by name ({turbulence: 40, cloudColor: '#E8F4FF'}) on fills, strokes or effects, including variable bindings. Shaders themselves are created in Figma or with Figma's own MCP
📐 Layout (Local Mode + Cloud Mode)
figma_set_layout- Auto layout and grid layout in one call: direction, gaps, padding, alignment includingSPACE_EVENLY/SPACE_AROUND, wrap, sizing, and grid tracks written CSS-style ('240px 1fr 1fr',repeat(3, 1fr)) with child placement and spans
📥 Import & Export (Local Mode + Cloud Mode)
figma_import_svg- SVG markup, files or a whole icon folder → editable vectors, icon components and variant sets (from file names like24/outline/arrow-left.svg), color bound to a COLOR variable. Re-importing updates existing icons in place so instances follow, asking first when they have instances or are published. Also how the AI draws a new icon or illustration: it writes the SVG and imports it. SVGs are sanitized first. Cloud Mode: inline markup only. Call it by name (not throughfigma_call)figma_import_image- PNG, JPEG or GIF → new image layers, or the fill of existing layers;@2xfiles placed at 1x; folders in Local Mode. Cloud Mode: base64 data onlyfigma_import_html- A web page, localhost app or HTML string → editable frames, one per viewport width (1–4), with auto layout checked against the rendered page, states reached through actions (hover, open menu, dark mode), and colors, spacing, radii, type and shadows bound to the file's variables and styles; unmatched values are reported. Local Mode uses your installed Chrome or Edge and also loads localhost,file://insideFIGMA_HTML_IMPORT_FILE_ROOTSand signed-in pages (attach mode); Cloud Mode loads public URLs onlyfigma_export_assets- Export for code: PNG/JPG/SVG/PDF renders of up to 50 nodes (honoring their Export panel settings), code-ready icon SVGs (currentColor, no fixed size), the icons inside a screen, and original image files. Local Mode writes files into a folder you name; Cloud Mode returns inline content or Figma-hosted links. Call it by name (not throughfigma_call)
🔍 Design-Code Parity (All Modes)
figma_check_design_parity- Compare Figma component specs against code implementation, producing a scored diff report with actionable fix itemsfigma_generate_component_doc- Generate platform-agnostic markdown documentation by merging Figma design data with code-side info; the optionalhistoryparameter adds a changelog from Figma version history andgit log
🔗 Code Connect (Local Mode + Cloud Mode unless noted)
figma_generate_code_connect- Code Connect files from your real code components: reads the Figma component's properties live (any plan, published or not) and your code component's props (TypeScript,cvavariants and defaults, children, or a Web Components manifest), maps variants, booleans, text, instance swaps, slots and nested instances, and never invents a prop. Writes.figma.tsfiles only withwrite: true; Cloud Mode returns the content. Call it by name (not throughfigma_call)figma_get_code_connect_map- The code component each instance in a frame maps to, with a snippet rendered from that instance's own values and its imports. Use it before writing code from a designfigma_audit_code_connect- Coverage per label and config, and drift (renamed properties, stale variant values, deleted nodes, files the CLI would refuse), withstatus: pass|failfor CIfigma_preview_code_connect- Figma-rendered snippets through your repo's Code Connect CLI (Local Mode only)figma_publish_code_connect- Publish with your repo's own CLI: a dry run returns aplanId, the real run publishes exactly that after you confirm (Local Mode only)figma_unpublish_code_connect- Remove published Code Connect for your files or one component, with the same dry run and confirmation (Local Mode only)
The CLI tools run code from your repo, so the first run asks you to trust that CLI; it runs isolated from the repo's .env and config, with the token only in confirmed runs. See the Code Connect guide.
🔗 Dev Resources, Usage & Library Analytics
figma_manage_dev_resources- List, add, edit or delete the code, Storybook and docs links on components (Dev Mode), in bulkfigma_find_usages- Where a style, variable or component is used, before you change or retire itfigma_get_library_analytics- Library usage across the org: instances, unused assets, insertions and detach rates (Enterprise; token needslibrary_analytics:read)figma_extend_library_collection- Create an extended collection (a brand or product theme) from a library's or the file's own variables (Enterprise)figma_reset_variable_override- Put a variable in an extended collection back to its inherited value (Enterprise)
🔬 Components, Nodes & Deep Analysis (Local Mode + Cloud Mode unless noted)
figma_search_components/figma_get_component_details- Find components (local + library) and get their variants, properties, and keys (Local Mode only)figma_instantiate_component/figma_set_instance_properties- Place instances and set their TEXT, BOOLEAN, INSTANCE_SWAP, and VARIANT propertiesfigma_add_component_property/figma_edit_component_property/figma_delete_component_property- Manage component propertiesfigma_create_child,figma_move_node,figma_resize_node,figma_clone_node,figma_rename_node,figma_delete_node,figma_set_text,figma_set_fills,figma_set_strokes,figma_set_image_fill- Structured node edits, including variable binding on fills and strokes, OKLCH/Display P3 and other CSS colors on fills and strokes, and text wrap style and variable-font axes on textfigma_get_component_for_development_deep- Full component tree with resolved token names and instance referencesfigma_analyze_component_set- A variant set as a state machine, with CSS pseudo-class mappings and per-variant diffs
♿ Accessibility (Local Mode + Cloud Mode)
figma_lint_design- WCAG and design-system lint on the canvas, with AA and best-practice level taggingfigma_audit_component_accessibility- Component scorecard: state coverage, focus indicators, color-blind simulationfigma_scan_code_accessibility- axe-core scan of HTML
📝 Annotations & Comments
figma_get_annotations/figma_set_annotations/figma_get_annotation_categories- Read and write designer annotations (Local Mode + Cloud Mode)figma_get_comments/figma_post_comment/figma_delete_comment- File comments, optionally pinned to a node
🕰 Version History
figma_get_file_versions/figma_get_file_at_version- List versions and snapshot a file or node at a past versionfigma_diff_versions/figma_get_changes_since_version- Structured diffs, including component property and binding changesfigma_generate_changelog- Markdown changelog for release notesfigma_blame_node- Find when, and by whom, a property or variant was introduced
🔁 Token Sync (Local Mode + Cloud Mode)
figma_export_tokens- Export Figma variables to design token files in your codebase. Canonical DTCG JSON (legacy hex dialect by default, or DTCG 2025.10 object colors/dimensions viadtcgDialect: "2025") plus CSS, Tailwind v4/v3, SCSS, TS, JSON, Style Dictionary, and Tokens Studio formats. Diff-aware merge against existing source files (only writes what changed).tokens.config.jsonautodiscovery means zero-arg calls after first setup. Scopes and codeSyntax metadata round-trip via$extensions. Replaces Style Dictionary and Tokens Studio's export pipeline for popular styling methods.figma_import_tokens- Push code-side token edits back to Figma with a full apply phase. Diffs against current Figma state, then applies value updates, creates missing collections/variables, applies renames, writes real alias (VARIABLE_ALIAS) references, and — only understrategy: "replace"— deletes Figma-only variables. Round-trip safe — Figma variable IDs preserved in DTCG$extensions["figma-console-mcp"]so renames on either side don't create duplicates. Accepts both DTCG dialects. Dry-run strategy for safe previews. In Cloud Mode, pass tokens inline viapayloadorfiles(no local filesystem access).
🧬 Design System Extraction (Local Mode only)
Turn a production codebase into a design system: analyze → extract tokens → scaffold → port components → verify. Local Mode only — these tools read and write your local filesystem, so they are never registered in Cloud Mode.
figma_ds_analyze- Scan one or more production app codebases — framework/styling/vendor-layer detection; a usage-ranked component inventory classified vendored / wrapped / pure-vendor / bespoke, with prop contracts, variant inference from real call sites, and duplicate detection; iconography + typography capture; and architecture classification (atomic levels, specializations likeFollowButton→Button, missing generic primitives — the "UI kit vs design system" analysis)figma_ds_extract_tokens- Mine the app's styling into DTCG tokens. Declared intent first — multi-mode CSS custom properties (.dark/[data-theme]and other conventions), SCSS variables, Tailwind config values, shadcn HSL triples — plus Tailwind utility-class frequency mining valued from the app's own theme, and frequency-promoted recurring raw values. Every token carries provenance (source file:line, confidence, frequency) in$extensions; the output imports straight into Figma variables viafigma_import_tokensfigma_ds_scaffold- Generate the design-system package — package skeleton, token files via the shared formatter engine, token/typography/iconography showcase docs pages, framework peer deps, and a workflow READMEfigma_ds_setup_storybook- Wire a freshly-initialized Storybook workshop to the extraction — a preview stylesheet carrying the source app's@thememapping, custom@utilitydefinitions,@layer base, and@font-facerules; self-hosted font copying; config patches (Tailwind vite plugin, automatic JSX runtime); and a theme toolbar built from the extracted modesfigma_ds_extract_component- Deep-extract one component for porting — source, prop contract, observed call-site variants, style touchpoints, and a ready-to-adapt CSF3 story scaffoldfigma_ds_verify- Deterministic fidelity evals — DTCG parse + alias integrity, quoted-CSS-expression scan, workshopvar()resolution, structure + porting coverage, and Figma round-trip readinessfigma_ds_status- Read or record porting progress, persisted across sessions
🔧 Variable Management (Local Mode + Cloud Mode)
figma_create_variable_collection- Create new variable collections with modesfigma_create_variable- Create COLOR, FLOAT, STRING, or BOOLEAN variablesfigma_update_variable- Update variable values in specific modesfigma_rename_variable- Rename variables while preserving valuesfigma_delete_variable- Delete variablesfigma_delete_variable_collection- Delete collections and all their variablesfigma_add_mode- Add modes to collections (e.g., "Dark", "Mobile")figma_rename_mode- Rename existing modesfigma_batch_create_variables- Create up to 100 variables in one call (10-50x faster)figma_batch_update_variables- Update up to 100 variable values in one callfigma_setup_design_tokens- Create complete token system (collection + modes + variables) atomically — values accept DTCG brace references ("{color.blue.600}") that resolve to real variable aliases
📌 FigJam Board Tools (Local Mode + Cloud Mode)
figjam_create_sticky- Create a sticky note with color optionsfigjam_create_stickies- Batch create up to 200 stickiesfigjam_create_connector- Connect nodes with labeled connector linesfigjam_create_shape_with_text- Create flowchart shapes (diamond, ellipse, etc.)figjam_create_table- Create tables with cell datafigjam_create_code_block- Add code snippets with syntax highlightingfigjam_create_section- Group board content in a sectionfigjam_auto_arrange- Arrange nodes in grid, horizontal, or vertical layoutsfigjam_get_board_contents- Read all content from a FigJam boardfigjam_get_connections- Read the connection graph (flowcharts, relationships)figjam_generate_diagram- Draw a native diagram from Mermaid (flowchart, state, sequence, ER, gantt, architecture) or a JSON graphfigjam_replace_diagram- Redraw a generated diagram in place, keeping what people added (asks first if they edited it; call it by name, not throughfigma_call)figjam_read_diagram- List generated diagrams, read one back as Mermaid, or turn a hand-drawn board into Mermaid
🎞️ Slides Presentation Tools (Local Mode + Cloud Mode)
figma_list_slides- List all slides with IDs, positions, and skip statusfigma_get_slide_content- Get the full content tree of a slidefigma_get_slide_grid- Get the 2D grid layout of the presentationfigma_get_slide_transition- Read transition settings for a slidefigma_get_focused_slide- Get the currently focused slidefigma_create_slide- Create a new blank slidefigma_delete_slide- Delete a slide from the presentationfigma_duplicate_slide- Clone an existing slidefigma_reorder_slides- Reorder slides via new 2D grid layoutfigma_set_slide_transition- Set transition effects (22 styles, 8 curves)figma_skip_slide- Toggle whether a slide is skipped in presentation modefigma_add_text_to_slide- Add text to a slide with custom fonts, colors, alignment, and wrappingfigma_add_shape_to_slide- Add rectangle or ellipse shapes with colorfigma_set_slide_background- Set a slide's background color (creates or updates)figma_get_text_styles- Get all local text styles with IDs, fonts, and sizesfigma_set_slides_view_mode- Toggle grid vs. single-slide viewfigma_focus_slide- Navigate to a specific slide
📖 Example Prompts
Cloud Mode (Web AI Clients)
Connect to my Figma plugin so we can start designing
Pair with my Figma file and create a login form with email, password, and submit button
Set up a brand color token collection with Light and Dark modes
Plugin Debugging
Navigate to my Figma plugin and show me any console errors
Watch the console for 30 seconds while I test my plugin
Get the last 20 console logs
Design System Extraction
Get all design variables from https://figma.com/design/abc123
Extract color styles and show me the CSS exports
Get the Button component with a visual reference image
Get the Badge component in reconstruction format for programmatic creation
Design Creation (Local Mode + Cloud Mode)
Create a success notification card with a checkmark icon and message
Design a button component with hover and disabled states
Build a navigation bar with logo, menu items, and user avatar
Create a modal dialog with header, content area, and action buttons
Arrange these button variants into a component set
Organize my icon variants as a proper component set with the purple border
Icons, Images & Asset Export (Local Mode + Cloud Mode)
Import the icons in src/icons as components, one variant set per icon by size and style, bound to icon/default
Our icons changed in code: re-import them and update the existing components
Draw a rocket icon in our icon style and add it to the icon set
Export the icon set as SVGs with currentColor into src/assets/icons
Export the icons and photos used in this screen
Web Pages into Figma (Local Mode + Cloud Mode)
Import http://localhost:3000/pricing into Figma at desktop and mobile widths, bound to our tokens
Do a dry run on https://example.com first and show me which colors have no matching token
Capture our app's settings page with the user menu open, in dark mode
Code Connect
Connect our Button component set to src/components/Button.tsx with Code Connect
Audit our Code Connect against the library and tell me what's unmapped or out of date
Do a publish dry run for Code Connect, then publish it once I've reviewed it
Implement this frame using the components Code Connect maps it to
Variable Management (Local Mode + Cloud Mode)
Create a new color collection called "Brand Colors" with Light and Dark modes
Add a primary color variable with value #3B82F6 for Light and #60A5FA for Dark
Rename the "Default" mode to "Light Theme"
Add a "High Contrast" mode to the existing collection
Design-Code Parity
Compare the Button component in Figma against our React implementation
Check design parity for the Card component before sign-off
Generate component documentation for the Dialog from our design system
FigJam Boards
Create a retrospective board with "Went Well", "To Improve", and "Action Items" columns
Build a user flow diagram for the checkout process with decision points
Draw this Mermaid sequence diagram on the board, then update it when I add the refund step
Turn the flow the team sketched in the "Onboarding" section into Mermaid for our docs
Read this brainstorming board and summarize the key themes
Generate an affinity map from these meeting notes
Create a comparison table of our three platform options
Slides Presentations
List all slides and tell me which ones are skipped
Add a new slide with the title "Thank You" in 72px text
Set a DISSOLVE transition on the first slide with 0.5 second duration
Duplicate slide 5 for an A/B comparison
Skip slides 8 and 9 — they're not ready for the client presentation
Reorder my slides so the conclusion comes before Q&A
Visual Debugging
Take a screenshot of the current Figma canvas
Navigate to this file and capture what's on screen
🎨 AI-Assisted Design Creation
Requires Desktop Bridge: This feature works with Local Mode (NPX or Local Git) and Cloud Mode. Remote SSE without Cloud Mode pairing is read-only and cannot create or modify designs.
One of the most powerful capabilities of this MCP server is the ability to design complete UI components and pages directly in Figma through natural language conversation with any MCP-compatible AI assistant like Claude Desktop or Claude Code.
What's Possible
Create original designs from scratch:
Design a login card with email and password fields, a "Forgot password?" link,
and a primary Sign In button. Use 32px padding, 16px border radius, and subtle shadow.
Leverage existing component libraries:
Build a dashboard header using the Avatar component for the user profile,
Button components for actions, and Badge components for notifications.
Generate complete page layouts:
Create a settings page with a sidebar navigation, a main content area with form fields,
and a sticky footer with Save and Cancel buttons.
How It Works
- You describe what you want in plain English
- The AI searches your component library using
figma_search_componentsto find relevant building blocks - Components are instantiated with proper variants and properties via
figma_instantiate_component - Custom elements are created using the full Figma Plugin API via
figma_execute - Visual validation automatically captures screenshots and iterates until the design looks right
Who Benefits
| Role | Use Case |
|---|---|
| Designers | Rapidly prototype ideas without manual frame-by-frame construction. Explore variations quickly by describing changes. |
| Developers | Generate UI mockups during planning discussions. Create visual specs without switching to design tools. |
| Product Managers | Sketch out feature concepts during ideation. Communicate visual requirements directly to stakeholders. |
| Design System Teams | Test component flexibility by generating compositions. Identify gaps in component coverage. |
| Agencies | Speed up initial concept delivery. Iterate on client feedback in real-time during calls. |
Example Workflows
Brand New Design:
"Create a notification toast with an icon on the left, title and description text, and a dismiss button. Use our brand colors."
The AI creates custom frames, applies your design tokens, and builds the component from scratch.
Component Composition:
"Build a user profile card using the Avatar component (large size), two Button components (Edit Profile and Settings), and a Badge for the user's status."
The AI searches your library, finds the exact components, and assembles them with proper spacing and alignment.
Design Iteration:
"The spacing feels too tight. Increase the gap between sections to 24px and make the heading larger."
The AI modifies the existing design, takes a screenshot to verify, and continues iterating until you're satisfied.
Visual Validation
The AI automatically follows a validation workflow after creating designs:
- Create → Execute the design code
- Screenshot → Capture the result
- Analyze → Check alignment, spacing, and visual balance
- Iterate → Fix any issues detected
- Verify → Final screenshot to confirm
This ensures designs aren't just technically correct—they look right.
🎨 Desktop Bridge Plugin (Recommended Connection)
The Figma Desktop Bridge plugin is the recommended way to connect Figma to the MCP server. It communicates via WebSocket — no special Figma launch flags needed, and it persists across Figma restarts.
Setup
- Open Figma Desktop (normal launch — no debug flags needed)
- Go to Plugins → Development → Import plugin from manifest...
- Select
~/.figma-console-mcp/plugin/manifest.json— the stable path the MCP server keeps up to date (npx figma-console-mcp --print-pathprints it; on macOS press ⌘⇧G in the dialog and paste it, since the folder is hidden). If you cloned this repo for development, you can selectfigma-desktop-bridge/manifest.jsonfrom the clone instead. - Run the plugin in your Figma file — it auto-connects via WebSocket (scans ports 9223–9232)
- Ask your AI: "Check Figma status" to verify the connection
One-time import. Once imported, the plugin stays in your Development plugins list. Just run it whenever you want to use the MCP.
📖 Desktop Bridge Documentation
Capabilities
Read Operations:
- Variables without Enterprise API
- Reliable component descriptions (bypasses API bugs)
- Multi-mode support (Light/Dark/Brand variants)
- Real-time selection tracking and document change monitoring
Write Operations:
- Design Creation - Create frames, shapes, text, components via
figma_execute - Variable Management - Full CRUD operations on variables and collections
- Mode Management - Add and rename modes for multi-theme support
How the Transport Works
- The MCP server communicates via WebSocket through the Desktop Bridge plugin
- The server tries port 9223 first, then automatically falls back through ports 9224–9232 if needed
- The plugin scans all ports in the range and connects to every active server it finds
- All 158 tools work through the WebSocket transport
Multiple files: The WebSocket server supports multiple simultaneous plugin connections — one per open Figma file. Each connection is tracked by file key with independent state (selection, document changes, console logs).
Environment variables:
FIGMA_WS_PORT— Override the preferred WebSocket port (default: 9223). The server will fall back through a 10-port range starting from this value if the preferred port is occupied.FIGMA_WS_HOST— Override the WebSocket server bind address (default:localhost). Set to0.0.0.0when running inside Docker so the host machine can reach the MCP server.FIGMA_MCP_HTTP_PORT— Also serve MCP over Streamable HTTP athttp://127.0.0.1:<port>/mcp, so other local clients can share this server's Figma connection. Off by default. See Sharing one server over HTTP.FIGMA_MCP_HTTP_TOKEN— WithFIGMA_MCP_HTTP_PORT, requireAuthorization: Bearer <token>on every HTTP request.FIGMA_CONSOLE_ASSET_TIMEOUT_SCALE— Multiply how long SVG/image import and asset export wait for Figma at each step (default 1, from 0.05 to 10). Raise it on a slow machine or for a very large file.FIGMA_CODE_CONNECT_ROOT— The repository the Code Connect tools work in when a call doesn't passrepoRoot(an absolute path).FIGMA_HTML_IMPORT_BROWSER— The Chrome, Chromium, Edge or Brave executablefigma_import_htmluses. Default: found in the usual install locations (CHROME_PATHandPUPPETEER_EXECUTABLE_PATHare read too).FIGMA_HTML_IMPORT_BROWSER_ARGS— Extra switches for that browser, space-separated (for example--lang=de-DE). Switches that would change how the capture browser is controlled or isolated (debugging ports, profile, headless mode, certificate checks, sandbox, site isolation, web security, file access, extensions, host mapping) are ignored, with a warning.FIGMA_HTML_IMPORT_FILE_ROOTS— Folders (absolute, separated by:, or;on Windows) whose filesfigma_import_htmlmay load asfile://URLs. Off by default.FIGMA_HTML_IMPORT_CDP_URL— Attach mode: captureurlimports in your own Chrome, started with--remote-debugging-port=9222on a separate profile (for examplehttp://127.0.0.1:9222). Loopback addresses only; each capture asks first when your client can show the question, otherwise setting this variable is your opt-in.FIGMA_HTML_IMPORT_CDP_ALLOW_ACTIONS— With attach mode, set to1to allowclick,typeandpressactions in your signed-in session (off by default).
Cloud Mode: The plugin also supports a Cloud Mode toggle for pairing with web AI clients (Claude.ai, v0, Replit, Lovable). Toggle "Cloud Mode" in the plugin UI, enter the 6-character pairing code from your AI assistant, and click Connect. See Cloud Mode for details.
Plugin Limitation: In Local Mode, works with NPX or Local Git. In Cloud Mode, pairs with the remote MCP endpoint. Remote SSE without Cloud Mode pairing is read-only.
🔀 Multi-Instance Support (v1.10.0)
Figma Console MCP now supports multiple simultaneous instances — perfect for designers and developers who work across multiple projects or use Claude Desktop's Chat and Code tabs at the same time.
The Problem (Before v1.10.0)
When two processes tried to start the MCP server (e.g., Claude Desktop's Chat tab and Code tab), the second one would crash with EADDRINUSE because both competed for port 9223.
How It Works Now
- The server tries port 9223 first (the default)
- If that port is already taken, it automatically tries 9224, then 9225, and so on up to 9232
- The Desktop Bridge plugin in Figma connects to all active servers simultaneously
- Every server instance receives real-time events (selection changes, document changes, console logs)
figma_get_statusshows which port you're on and lists other active instances
What This Means for You
| Scenario | Before v1.10.0 | Now |
|---|---|---|
| Two Claude Desktop tabs (Chat + Code) | Second tab crashes | Both work independently |
| Multiple CLI terminals on different projects | Only one can run | All run simultaneously |
| Claude Desktop + Claude Code CLI | Port conflict | Both coexist |
Do I Need to Do Anything?
Nothing. Multi-instance support is fully automatic:
- Each MCP server claims the next available port in the range
- The Desktop Bridge plugin scans all ports and connects to every active server
- Orphaned processes from closed tabs are automatically cleaned up on startup
- No manual port management — the plugin already scans the whole range
(Re-importing the manifest is only required when the plugin code itself changes — e.g. after a package update. Port-range scanning is already in the shipped plugin.)
Sharing one server over HTTP (optional)
Normally each MCP client starts its own server over stdio. To let several local clients share one server and its Figma connection, set FIGMA_MCP_HTTP_PORT. The server then also serves MCP at http://127.0.0.1:<port>/mcp, and lists that URL in its port file (mcpHttpUrl) and in figma_get_status (transport.mcpHttp).
# Start a shared server in a terminal (keep it open)
FIGMA_ACCESS_TOKEN=figd_... FIGMA_MCP_HTTP_PORT=9300 npx -y figma-console-mcp@latest
# Point clients at it, e.g. Claude Code:
claude mcp add --transport http figma-console-shared http://127.0.0.1:9300/mcp
- Loopback only. It binds
127.0.0.1and refuses requests whoseHostisn't localhost (DNS rebinding) or that come from a non-localhost browser page. SetFIGMA_MCP_HTTP_TOKENto also require a bearer token. - Each client gets its own session, as with stdio, and all of them share the plugin connection. Idle sessions close after 30 minutes and clients reconnect automatically.
- The endpoint lives as long as the server process. When an MCP client spawned the server, closing that client ends it.
- Avoid port 3845, which Figma's own Dev Mode MCP server uses, and the bridge range 9223–9232.
🧩 MCP Apps
Figma Console MCP includes two MCP Apps: interactive pages that render inside the chat in any client that supports the MCP Apps extension, such as Claude, ChatGPT, VS Code and Goose (client support). They're built with the official @modelcontextprotocol/ext-apps SDK and take on the chat's light or dark theme, colors and fonts.
What are MCP Apps? Traditional MCP tools return text or images to the AI. MCP Apps render an interactive page in the chat, so you can browse and act on data without the AI reading all of it.
Token Browser
Usage: Ask to "browse the design tokens" while connected to a Figma file.
- Tokens by collection, with a column per mode (Light, Dark, …) as in Figma's Variables panel
- Filter by type, search by name or description, click any name or value to copy it
- Color swatches and alias resolution
- Download as DTCG JSON, CSS custom properties, Tailwind v4, SCSS, TypeScript or flat JSON, using the same exporter as
figma_export_tokens - Share with the chat: check tokens and the AI sees them on your next message
- Full screen in hosts that support it
Design System Dashboard
Usage: Ask to "audit the design system" while connected to a Figma file.
- Overall score (0–100) and six category gauges: Naming, Tokens, Components, Accessibility, Consistency, Coverage
- Findings with details, examples and how each one gets fixed
- Ask to fix: sends the finding, its examples and the suggested approach to the chat as your message
- Open in Figma for components and other nodes a finding names
- Share with the chat: check findings and the AI sees them on your next message
- Refresh re-runs the audit without using AI context; full screen in hosts that support it
No MCP Apps support? Same audit, plain tool: figma_audit_design_system_report runs the identical scoring engine and returns the report as data — summary by default, per-category drill-down via category, full JSON via format: "full" — with a remediation section stating which findings this MCP can fix (design), which need a design decision first (design-assisted), and which need human design work (manual). Works in every MCP client; results cache for 5 minutes (forceRefresh to re-crawl).
Enabling MCP Apps: they're on by default in Local and Cloud Mode. Their tools are listed only to clients that can render apps, so other clients don't pay for them. Set ENABLE_MCP_APPS=false to turn them off, or always for a host that renders apps without declaring the extension. ("ENABLE_MCP_APPS": "true" in older setup examples still works and means the default.)
MCP Apps Roadmap
- Code Connect Coverage — the
figma_audit_code_connectreport as a browsable table: which components are mapped, which have drifted, and the likely code counterpart for each gap - Parity Diff —
figma_check_design_parityresults side by side, Figma and code, with each discrepancy linked to its node - Import Drift Report — after
figma_import_html, the values that didn't match a token, grouped so they can be added to the system or fixed in code
See MCP Apps for details.
🚀 Advanced Topics
- Setup Guide - Complete setup guide for all MCP clients
- Self-Hosting - Deploy your own instance on Cloudflare
- Architecture - How it works under the hood
- OAuth Setup - Configure OAuth for self-hosted deployments
- Troubleshooting - Common issues and solutions
🤝 vs. Figma's Official MCP Server
The two servers are complementary, and both can run in the same MCP client.
Figma's official MCP server is hosted by Figma. It focuses on design-to-code context (get_design_context), library search, and creating content in Figma: it writes through use_figma, creates files, generates FigJam diagrams, generates code layers, and works with shaders. It also reads and writes Code Connect mappings stored in Figma, and feeds published Code Connect into its design context.
Figma Console MCP focuses on design-system operations:
- Deterministic checks: design-code parity, accessibility (canvas and code), and design-system health
- Token export in 10 formats and DTCG import with round-trip variable IDs
- Variable reads and writes on any Figma plan through the Desktop Bridge plugin
- Component documentation with design and code history, and version-history diffs
- Codebase → design system extraction
- Code Connect files generated from your real components, a drift audit that can gate CI, and publishing through your repo's own CLI
- Icon folders imported as token-bound components and variant sets (updated in place on re-import), and asset export into your repo
- FigJam diagrams from Mermaid or JSON drawn on the open board, redrawn in place as the source changes (keeping what the team added), and read back as Mermaid
- Web pages and HTML imported as editable frames at 1–4 viewport widths per call, with auto layout checked against the render, values bound to local variables, text styles and effect styles, and a report of unmatched values, from any MCP client or Cloud Mode (the official server's counterparts are
generate_figma_designandhtml_to_figma) - Plugin console capture, selection tracking, and multi-file execution (Local Mode)
🛤️ Roadmap
Current Status: v2.5.1 (Stable). v2.5 makes token exports resolve variables from other libraries: a file whose variables alias a shared library exports real values in every format, with DTCG carrying the library collections as their own sets, and re-importing an export never changes library variables. v2.4.1 makes the design system audit judge large multi-mode systems correctly: it recognizes the primitive tier by its structure instead of picking the collection with the most raw values. v2.4 brings the MCP Apps up to date: the Token Browser and Design System Dashboard open again, follow the chat's theme, offer Ask to fix, Open in Figma, sharing with the chat and token downloads, and work in Cloud Mode. v2.3.1 made every Figma team-library call give up with a clear message instead of hanging; v2.3.2 makes the library tools say when a file is a FigJam board or Slides deck, and figma_list_open_files report each file's type; v2.3.3 fixes what live testing found in diagrams, web page import and Code Connect, and keeps a pinned file's commands from running in another file. v2.3 adds FigJam diagrams from Mermaid or JSON (figjam_generate_diagram, figjam_replace_diagram, figjam_read_diagram), Code Connect from your repo's real components (generate, map, audit, and CLI preview/publish/unpublish), and web page and HTML import as token-bound layers (figma_import_html). v2.2 added icons, images and assets for design systems: figma_import_svg (icon components, variant sets from file names, token binding, updates in place that keep instance overrides), figma_import_image, and figma_export_assets (renders, code-ready icon SVGs, original images). v2.1 completed extended collections, made write tools report refusals as errors, and made library analytics actionable. Built on v2.0: MCP SDK v2 (protocol 2026-07-28) with Skills, Tasks and confirmation prompts; toolsets (~9k tokens of tool definitions per message instead of ~60k); design-system adherence tools. 158 tools (Local) / 127 tools (Cloud) / read-only subset (Remote). Earlier releases are listed below and in the CHANGELOG.
Recent Releases:
- v2.5.1 - The bridge falls back to
127.0.0.1when the Mac's IPv6 loopback can't be reached (a long-uptime Mac out of local ports), andfigma_get_statussays why. - v2.5.0 - Token exports resolve variables from other libraries.
figma_export_tokensand the Token Browser read the library variables a file's variables alias, read-only, through the Desktop Bridge. CSS, SCSS, Tailwind, TypeScript, JSON, Style Dictionary and Tokens Studio write the referenced value per mode instead of skipping the token; single-file DTCG includes the library collections as library-flagged sets; split DTCG stays self-contained. Anything still unresolvable, including an alias to a deleted variable, is skipped with a comment along with the tokens that alias it, so no output references a skipped token.figma_import_tokensnever changes library variables, and re-importing an unchanged export plans no changes. Files without library references export exactly as before. No plugin re-import. - v2.4.1 - The design system audit judges large systems' color tokens. The primitive tier was taken to be the collection with the most raw values, which in a big multi-mode system is often the semantic theme, so its colors were skipped (Primer reported "No color variables to evaluate"). The tier is now recognized by tier names,
primitive/…paths and structure, variable naming catchescolor/blue/500, and alias usage reports the ratio it scores. No plugin re-import. - v2.4.0 - MCP Apps catch up with the MCP Apps extension. The apps open again (their tools were hidden by toolsets since 2.0) and are on by default for clients that can render them. The dashboard adds Ask to fix and Open in Figma; both apps share selections with the chat, follow light and dark themes, and go full screen; the Token Browser downloads DTCG, CSS, Tailwind, SCSS, TypeScript or JSON. Both apps and
figma_audit_design_system_reportnow run in Cloud Mode. Audits of a non-active file count its components. No plugin re-import. - v2.3.3 - A pinned file that disconnects holds its commands instead of sending them to another file, and
figma_navigateto an unconnected file is an error. Diagram builds no longer stall, parallel diagrams don't overlap, and filled arrowheads point forward. Web page import no longer hangs on SF Pro and keeps font weights when a font fails. Code Connect mapstitleText→titleand renders unmapped instances as valid JSX. No plugin re-import. - v2.3.2 - Library tools in FigJam or Slides files say to use a Design file instead of blaming the Figma build or crashing;
figma_list_open_filesreports each file'seditorTypewith real/board/and/slides/URLs. No plugin re-import. - v2.3.1 - Team-library calls (
figma_get_library_variables,figma_import_library_variable,figma_import_svgcolor variables,figma_import_htmllibrary tokens) time out with a clear message instead of hanging when Figma's library service stops answering. No plugin re-import. - v2.3.0 - FigJam diagrams from Mermaid/JSON (generate, replace in place, read back; labels sized from FigJam's measured text areas); Code Connect (
figma_generate_code_connect,figma_get_code_connect_map,figma_audit_code_connect, CLI preview/publish/unpublish);figma_import_html(web pages and HTML as token-bound layers); asset scripts escape everyimportform. No plugin re-import. - v2.2.0 - Icons, images and assets:
figma_import_svg(SVG icons as components and variant sets, token binding, in-place updates that keep overrides, sanitized input),figma_import_image,figma_export_assets(renders, icons inside screens, code-ready SVGs, original images; files, inline or links); newassetstoolset. Server-only. - v2.1.2 - Community fixes: color alpha in visual specs, alias slug collisions, gradient tokens as CSS, selection made before connect,
set_layoutsizing and wrap, a clear "all ports taken" error; dependency audit clean. Plugin re-import. - v2.1.1 - Accessibility lint: focus rings on child layers, whole-word control names (a table isn't a tab), disabled states exempt from contrast, reading order ignores decoration, disabled-context is a best-practice hint. Plugin re-import.
- v2.1.0 - Extended collections end to end (
figma_reset_variable_override, extend local collections, read library-collection extensions); write tools report refused changes as errors; library analytics lists unused assets and explains empty/404 results. Server-only. - v2.0.0 - MCP SDK v2 + protocol 2026-07-28 (with Skills, Tasks, confirmations); toolsets cut tool definitions ~85%; design-system adherence (
figma_resolve_components,figma_audit_adherence,figma_audit_code_adherence,figma_check_library_parity,figma_bind_tokens); dev resources, usages, library analytics, extended collections; WCAG lint false-positive fixes. Breaking: non-core tools must be enabled first (FIGMA_TOOLSETS=allrestores the old list). Plugin re-import. - v1.46.0 -
figma_list_shaders,figma_apply_shader(properties by name),figma_set_layout(auto layout and grid), CSS colors on fills/strokes, text wrap and variable-font axes (#150). Server-only. - v1.45.1 -
figma_get_code_layersno longer hangs on background-window files (#149); tool docs audited against real parameters (#151). Server-only. - v1.45.0 - Motion tools (apply, read, remove, export MP4/GIF/WebM, custom animation styles), Timing/Easing token import and writes, easing export fix, and
figma_get_code_layers(#147). Server-only. - v1.44.2 - Cloud sign-in requests
library_assets:read; component lookups by key work over OAuth. Server-only. - v1.44.1 - Cloud Mode accepts PATs without
current_user:read; 403s name the missing scope; complete token scopes and Codex/Gemini CLI/Antigravity setup. Server-only. - v1.44.0 - Opt-in Streamable HTTP endpoint for Local Mode (
FIGMA_MCP_HTTP_PORT) so local clients can share one server (#48). Server-only. - v1.43.0 -
@modelcontextprotocol/sdk1.32.1 andzod4: 0 production advisories (#141). Server-only. - v1.42.1 - Fail fast while the plugin is stuck on a timed-out script (#94); evict the least recently used server, never one in use (#69);
figma_executetimeout up to 300 s. Server-only. - v1.42.0 -
figma_get_commentscompact threads with node/thread/date filters and paging, 30 threads by default (PR #139 by @OAPrilepa). Server-only. - v1.41.5 - Component-set analysis diffs paints (gradients, images, opacity), corner radius, typography and label text, swapped tokens (
tokens), nested size/position/rotation and vector shapes. Plugin re-import. - v1.41.4 - Component-set analysis diffs the variant's own fill/stroke (button backgrounds) and auto-layout (
layout). Plugin re-import. - v1.41.3 - Component-set analysis diffs nested layers by path (instance swaps, nested fill/stroke tokens), variant-level opacity, and visibility in both directions; a layer hidden in every variant is no longer reported as a change. Plugin re-import.
- v1.41.2 - Design-system summary and token values read the bridge's variables response correctly (always 0 tokens before). Server-only.
- v1.41.1 - Component-set analysis finds Figma's default variant and diffs size/layers (#121); component loading drops throttled setTimeout yields and uses native search — 300s timeouts → ~1.5s (#120); summary fails loudly; search ranked by relevance;
figma_get_variablesfull-format paging and one pagination shape (#98, #99); deep extraction mixed-text fix and unlimited depth (PRs #85, #86 by @DarWiM). Plugin re-import for component fixes. - v1.41.0 - Security & data-safety. Cloud Mode:
/ssesessions use their own token (a shared slot let REST calls run with another user's token), authorization codes are random/single-use/10-minute and bound to client_id + redirect_uri + PKCE S256, unregistered redirects refused, consent page for other registered destinations, callback error page escaped. Local: accessibility scan no longer executes scanned scripts;figma_import_tokensrefuses 0-token imports and scopesreplacedeletes to imported collections;figma_arrange_component_setreplaces only its own set's arrangement; token export/import read variables live; stdin-EOF exit (PR #140 by @RomanOdokienko); SlotsfileKey(PR #112 by @Wolfr); batch-create aliases. Server-only. Reported in #104, #122, #53, #91, #116. - v1.40.9 - Composed colors (color variable = another color at an opacity): export keeps the link in CSS/Tailwind v4/SCSS/Tokens Studio/DTCG and the resolved color elsewhere; import writes the composition back; resolver, audit, contrast and token-browser fixes; aliased colors no longer read as black in the design-system summary. Server-only. Reported by Isabella Minzly.
- v1.40.8 - Min/max sizing in every JSON extraction path (design system kit, reconstruction format,
figma_get_file_data, component docs) and in design-code parity; reconstruction reads the full REST tree with real geometry, alignment, hidden layers and absolute positioning;nodeIdshonored by the file-data tools; Cloud Modefigma_diagnoseon/mcp. Server-only. Reported by Brett Cooper. - v1.40.7 - Color Tokens readability: a layer shown by a boolean property is printed once under that property when identical across variants (kept per variant when it differs); paints on nested instances carry the instance's variant, and same-named fills/strokes are qualified by instance. Server-only. Reported by Robin Di Capua.
- v1.40.6 - Extended collections + doc fidelity.
figma_get_variablesreads extended variable collections (overrides live on the collection; they were invisible and reported as nonexistent) — summary, per-collection resolved values marked overridden/inherited, per-variable overrides; the mode filter no longer drops0/falsevalues;figma_export_tokensexplains instead of emitting empty sets.figma_generate_component_doc: radius and per-side stroke bindings read per corner/side, Design-Code Parity compares booleans and never prints an empty section, source links pinned to a commit (no raw relative paths, no local paths, credentials stripped), hidden layers linked to the boolean that shows them, same-named layers qualified by instance. Server-only. Reported by Brett Cooper and Robin Di Capua. - v1.40.5 - Clean dependency audit.
@cloudflare/puppeteer(→@puppeteer/browsers→extract-zip, high, no upstream fix) andagentswere regular dependencies but are only used by the Cloudflare Worker; they are now devDependencies and the Worker build is excluded from the npm package, so a fresh install audits at 0 vulnerabilities (was 4 high) and drops from 173 MB to 64 MB. The local server now reports its real version to MCP clients instead of0.1.0. A new test guards both directions of the dependency split. Server-only. Reported by Daniel Westerlund. - v1.40.4 - Live-test fixes. Tools given a
fileUrl(figma_generate_component_doc,figma_get_component,figma_get_component_for_development) read bridge data from the ACTIVE file instead of the named one — token names vanished, and on an id collision another file's names, description, annotations or even component were returned; they now target the named file and fall back to REST. A tool result over 16 MB disconnected the server for the session (the client closes the transport); results are now size-capped centrally with an actionable error. Anatomy sizing labels follow the real layout axes (vertical layouts were mislabeled); icons are grouped, counted and named by the glyph in the slot; typography rows are identified by (element, style); identical sibling layers collapse to×N. Found by testing on hard production components. Server-only. - v1.40.3 - Component-doc fidelity on harder components.
figma_generate_component_doc: hidden layers labeled rather than documented as rendered; border width honorsindividualStrokeWeights(a tab underline is4px bottom, not the vestigial scalar) and is reported only where a stroke is painted; typography and anatomy compared across every variant (an Applies to column; one tree per distinct layer structure) instead of read from the first; gradients, images, shadows, blurs and opacity reported instead of dropped; fetch depth raised from 4 to 8 with an explicit note when a tree may be cut off; boolean-valued variant properties keep their name; Configurable Properties renders for variant-only sets and listsSLOTproperties; every icon shown, not just the first; Design-Code Parity compares property values (it could report a property name as a missing variant); placeholderstatus/version/description no longer asserted. Server-only. Reported by Robin Di Capua. - v1.40.2 - Token export data-loss fix.
figma_export_tokensreads from whichever file is active in Figma Desktop; with the wrong one focused it could overwrite a real token file with an empty document — or, for CSS/SCSS/Tailwind/TS outputs, with another file's tokens — and reportsuccess: true. Exports now refuse (writing nothing) when a requested collection isn't in the file that was read, when the export is empty, when the target was generated from a different Figma file (generated files now record their source), when a DTCG target can't be parsed or would be replaced by a different kind of output, or when overwriting would destroy hand-added tokens or another collection's tokens.strategy: "merge"had been documented as preserving code-only tokens but was never implemented; it is now the safe default andreplaceis the explicit override. Every response reports thesourceFigma file. Server-only. Reported by Isabella Minzly; two further loss paths found in code review. - v1.40.1 - Component-doc variant accuracy + token export file paths.
figma_generate_component_doc: Background now comes only from the variant's own fills (a transparent outline/ghost variant no longer borrows its icon's color), Color Token headings name every variant property under any property names, Spacing Tokens are compared across all variants (varies by **Size**: …, with a Spacing Inconsistencies list for properties tokenized on some variants and hardcoded on others), and icons resolve from the main component andINSTANCE_SWAPslots rather than a layer name containing "icon".figma_export_tokens: anoutputPaththat is an existing file or ends in a token-file extension is written as that exact file; multi-file exports into a file path are rejected before anything is written.figma_search_componentsno longer reports a failed component load as a successful empty search. Server-only. Reported by Robin Di Capua and Isabella Minzly. - v1.40.0 - Design System Extraction. Seven new Local-Mode-only tools that turn a production codebase into a design system, plus the supporting extraction engine.
figma_ds_analyzescans one or more app codebases: framework/styling/vendor-layer detection (React/Next/Angular/Web Components; Tailwind v3/v4, CSS Modules, SCSS, Emotion, styled-components; shadcn/ui, Radix, MUI, Chakra…), a usage-ranked component inventory classified vendored/wrapped/pure-vendor/bespoke with prop contracts, variant inference from real call sites, duplicate detection, iconography + typography capture, and an architecture classification separating a UI kit from a design system (atomic levels, specializations like FollowButton → Button, missing generic primitives).figma_ds_extract_tokensmines de-facto styling into DTCG tokens — multi-mode CSS custom properties across.dark/[data-theme]conventions, SCSS variables, Tailwind config values, shadcn HSL triples, Tailwind utility-class frequency mining valued from the app's own theme, frequency-promoted raw values — with per-token provenance in$extensions, importable straight into Figma variables viafigma_import_tokens.figma_ds_scaffoldgenerates the package (token files via the shared formatters, token/typography/iconography showcase pages);figma_ds_setup_storybookwires a fresh Storybook workshop to the app's real theme layers and fonts;figma_ds_extract_componentproduces per-component porting manifests with CSF3 story scaffolds;figma_ds_verifygates the result with deterministic fidelity evals plus Figma round-trip readiness;figma_ds_statuspersists porting progress across sessions. Also fixes the CSS/SCSS/Tailwind v4 formatters quoting CSS functional expressions (a quotedcubic-bezier(...)silently kills transitions — affectsfigma_export_tokenstoo). Server-only, no plugin re-import. - v1.39.1 - Plugin update banner could never be cleared.
computePluginUpdateAvailable()was a bare inequality with no direction check, so a server whose bundled plugin copy was OLDER than the connected plugin still told the user to re-import — which only ever installs the same or a newer plugin. Not an edge case: the 9223–9232 port range keeps several server instances alive,BUNDLED_PLUGIN_VERSIONis parsed once at module load, and every server left running from before an upgrade nags a correctly-updated plugin. Reproduced live with four leftover v1.38.2 servers against a freshly re-imported 1.39.0 plugin. Now flags only when the bundled copy is genuinely newer. Server-only, no plugin re-import. 1452 tests. - v1.39.0 - Multi-file execution. New
figma_execute_across_filesruns one script against several Desktop Bridge-connected files concurrently, with per-file error isolation and independent timeouts (verified live: four files × 2s of work in ~3.0s, all dispatches within 5ms — versus ~8s serialized).figma_executegained an optionalfileKeyto target a single non-active file without moving the active file or releasing target lock. Targeting is deliberately explicit —fileKeysorallFiles: true, no fan-out-to-everything default — because this runs arbitrary code in files you may be actively editing, including one pinned by target lock. The transport was already concurrent (sendCommandhas always taken a target file key, and every hop is request-id keyed); only the tool layer was missing. Community PR #107 by @Wolfr. Also fixes a Desktop Bridge relay bug that silently droppedresultAnalysisandfileContextfrom everyfigma_executeresponse since they were introduced — making theresultAnalysis.warningcheck the tool's own description tells callers to perform impossible — guarded now by a test that reads the real plugin files. Re-importmanifest.jsonfor those two fields; the rest works without it, and mixed plugin versions degrade cleanly. 52 suites / 1443 tests. - v1.38.2 - Connection stability: the orphan reaper was terminating healthy MCP servers, the cause of recurring "Server disconnected" errors across every MCP client (reproduced in both Claude Code and Claude Desktop; unrelated to the Desktop Bridge plugin). The reaper probes a sibling's
/healthbefore deciding it is dead, but requested127.0.0.1while the WebSocket server bindslocalhost— resolved to the IPv6 loopback on dual-stack macOS, with nothing on IPv4 — so the probe reported "nothing responding" for healthy servers and every kill-safety gate built on it became a rubber stamp, including the one written to spare siblings after the machine sleeps. Three supporting defects: port files written non-atomically (a reader landing mid-rewrite got a parse error that both cleanup paths treated as "corrupt, delete it", stranding a healthy server), an orphan path that terminated fileless port-holders without probing at all, and a heartbeat that gave up permanently once its own file went missing. Fixes: probelocalhost, atomic temp+rename writes, never delete on a parse failure, health-probe before the orphan kill in both paths, and self-healing re-advertisement guarded by in-process port ownership. Fully restart MCP clients after upgrading — older running builds keep the broken probe and still terminate healthy siblings. Server-only, no plugin re-import. 1422 tests (7 new regressions, each verified to fail pre-fix). - v1.38.1 - Shared-library variable tools fixed.
figma_get_library_variablesreturnedtotalCollections: 0for every file, on every plan, since it shipped in v1.29.0, andfigma_import_library_variablereported failed imports as successes withid: undefined. Both read the Desktop Bridge's{ success, result }envelope as if it were the injected script's bare return value, soArray.isArray()was always false, the__errorguard was dead code, and.idwas always undefined. The failure presented as a success with a plausible hint attached ("subscribe a library via the Assets panel"), which is why it survived two months unreported. Both tools now unwrap through a shared helper that also maps a bridge-levelsuccess: falseonto the error path, so a plugin timeout surfaces as a real error instead of being swallowed as "0 collections"; an import yielding noidis now an explicit error. All 26executeCodeViaUIcall sites audited — only these two were affected. Test mocks had encoded a wire contract that does not exist, which is why CI stayed green; they now reproduce the real envelope, plus six regression tests verified to fail against the pre-fix source. Reported by Isabella Minzly. Server-only — no plugin re-import needed. - v1.38.0 - Ongoing component changelogs in generated docs.
figma_generate_component_docgained an opt-inhistoryparameter that produces a real changelog instead of only echoing hand-writtencodeInfo.changelogrows:history.figmawalks Figma version history and diffs each consecutive pair scoped to the component (reusing the same engine asfigma_diff_versions, so a rename, a newly added component property, or a token binding each become a row), whilehistory.gitrunsgit logover the component's source files auto-derived fromcodeInfo.filePath/sourceFiles[]. Labeled versions are preferred but auto-saves are used automatically when a file has none — verified against a mature system with 72 auto-saves and 0 labeled versions, where a labeled-only walk yields nothing. Detailed-mode bindings group by property (binding one token across a 24-variant set otherwise produced 44 near-identical bullets in a single table cell). Both sources default off, so existing callers get byte-identical output. No new tools; server-only, no plugin re-import. - v1.37.0 - Design-system health audit for every MCP client. New
figma_audit_design_system_reportruns the Design System Dashboard's deterministic scoring engine (naming, token architecture, component metadata, accessibility, consistency, coverage) and returns the scored report as data — no MCP Apps support orENABLE_MCP_APPSneeded (the previous registration gated everything, making the audit unreachable outside Claude Desktop). Component data is now live-first: a fileKey-verified per-page bridge crawl (30s/page, failures isolated per page) with REST published-library fallback, and the chosen source is disclosed in the report (bridge-live/rest-published/none) so stale-publish scores can't masquerade as live ones. Output is token-safe by design: bounded summary, per-category chunked drill-down, clamped full JSON, 5-minute raw-data cache. Every finding carries a remediation verdict — auto-fixable by this MCP's write tools, fixable after a design decision, or manual — with the exact tools named. Scoring accuracy pass: variant components no longer poison PascalCase/casing checks, Title Case accepted, component-set names count toward core-component coverage,color/content/*recognized in contrast pairing, state synonyms (active≈pressedetc.), and./_-prefixed internals excluded. Server-only — no plugin re-import needed. - v1.36.0 - Target lock for multi-file parallel work.
figma_navigategains alock: trueflag that pins the active file — new connections, reconnects, and the user's own selection/page changes in other files no longer move the command target, so an agent can safely write to one file while the user works in another. Auto-releases when the pinned file disconnects or navigates away;figma_list_open_filesreports atargetLockedflag for pre-write guards. Server-only — no plugin re-import needed. - v1.35.0 - Figma Slots write support, closing #29 (the tracker's most-requested feature) via community PR #77 by @simonesalvucci, updated to the GA API. Five new tools:
figma_create_slot(slot + auto-linked SLOT property; variants inside component sets supported — the beta restriction was lifted at GA),figma_get_slots,figma_append_to_slot(clone or create content into instance slots; snaps clones to the slot origin),figma_reset_slot, andfigma_add_slot_property(retrofit an existing frame as a slot). Hardened by live validation: VARIANTdefaultValuepassthrough restored (Figma requires non-empty), destructive-path reorder in the append handler (content validated beforeclearExistingempties anything), relay whitelist fix forslotpayloads. Plugin re-import required (code.js+ui.htmlchanged). - v1.34.0 - Bidirectional Token Sync v2 + DTCG 2025.10.
figma_import_tokensnow applies the complete diff plan: missing collections and variables are created (with modes, inferred/recorded types, and values set in dependency order — aliases in a second pass), token-path renames route to the update phase by round-trip variable ID (no more create+delete pairs that would permanently destroy the original underreplace), reference values write real{ type: "VARIABLE_ALIAS", id }payloads via a four-tier resolver, and deletes are strictly gated behindstrategy: "replace".figma_export_tokensgainsdtcgDialect: "2025"(object-form colors from full-precision floats, object dimensions) while the legacy default stays byte-identical; import accepts both dialects unconditionally with dialect-insensitive diff normalization. Variablescopes+codeSyntaxround-trip through$extensions["figma-console-mcp"].figma_setup_design_tokensaccepts DTCG brace references ("{color.blue.600}") that resolve to real aliases, including forward references. New toolfigma_create_component_setbuilds a variant set from an axes matrix (or combines existing components) withProp=Valuenaming, optional auto-arranged grid, and variant keys in the response — with count-scaled timeouts and rollback on failure. Plugin re-import required (code.js+ui.htmlchanged — the component-set handler and relay). 183 tests across the token/write-tools suites. - v1.33.2 - Version-handshake false-positive fix. The v1.33.0 handshake compared the plugin's reported version against the server's package version, so server-only releases (like the v1.33.1 dependency sweep) flagged every up-to-date plugin as stale and pushed the re-import banner for files that hadn't changed. The server now compares against the
PLUGIN_VERSIONembedded in thefigma-desktop-bridge/code.jsit ships — exactly what a re-import would install — andPLUGIN_VERSIONitself now means "last release in which plugin files changed" (release tooling bumps it only whenfigma-desktop-bridge/actually changed since the last tag).figma_get_statusgainstransport.websocket.bundledPluginVersion;figma_diagnoseblames the right version. No new tools, no plugin re-import required (one-time exception: if you re-imported at v1.33.1, the banner appears once more — clear it with one final re-import). 1245 tests passing (9 new). - v1.33.1 - Security dependency sweep. All runtime and critical npm audit alerts resolved via in-range bumps (
ws8.21.0,hono4.12.27,undici7.28.0,handlebars4.7.9 — the lone critical, dev-only — pluslodash,path-to-regexp,basic-ftp,fast-uri,vite).wranglerdeliberately held at 4.72.0 because newer versions require Node ≥22; the only residual audit findings are inside wrangler/miniflare's dev-time toolchain, which never ships in the npm package or Worker bundle. Supersedes dependabot PRs #81/#82/#84. No code changes, no API changes, no plugin re-import. 1236 tests passing unchanged. - v1.33.0 - Connection UX overhaul + full-codebase audit. The plugin's status pill now derives from live connection state instead of Figma's variables loading (it used to glow green with zero MCP servers connected); HTTP
/healthauto-discovery reconnects restarted servers automatically (including one-dead-among-live, previously a permanent dead end); a version handshake banners the plugin UI when a re-import is needed and surfaces the mismatch infigma_get_status/figma_diagnose; cloud pairing config survives plugin reopen and its status line is derived + labeled (no more orphaned "Disconnected" under a green pill); all plugin copy is designer-language. The audit fixed 33 verified issues: lossless DTCG multi-mode round-trips, set-qualified cross-collection aliases, TIMING/EASING mapped to DTCGduration/cubicBezier, two cache-poisoning bugs (the "search returns 0 components" reports), a CSWSH origin bypass (startsWith→ exact match), post-sleep reaper kill-safety (plus a shell-free/healthprobe withos.devNullso Windows curl can't false-negative a healthy sibling), branch-URL correctness across REST tools, and bridge-firstfigma_take_screenshot.figma_arrange_component_setnow rearranges variants in place so placed instances survive. No new tools; plugin re-import required (code.js+ui.htmlchanged — and the new handshake makes this the last one you have to discover on your own). 1236 tests passing (33 new). - v1.32.1 - Documentation-generator fix reported by Robin Di Capua:
figma_generate_component_docdocumented colors as raw hex (with—in the Figma Variable column) even when fills/strokes were bound to variables, while spacing tokens documented correctly. Two root causes — an id→name lookup that read the wrong keys (.id/.nameinstead ofvariableId/variableName), and variable names only ever being sourced from the Enterprise-only REST/variables/localendpoint (403 elsewhere). The generator now resolves names via the Desktop Bridge Plugin API (works on every plan) and threads them through the States, Color Tokens, and Spacing tables, so real token names likecolor/content/defaultandspacing/1appear. No new tools, no arg-shape changes, no plugin re-import required. 1203 tests passing. - v1.32.0 - Accessibility-audit correctness fix reported by Isabella (a11y collaborator):
figma_lint_designwas flagging line height below 1.5× as an accessibility failure on hundreds of components. That misreads WCAG 1.4.12 Text Spacing, which requires content to support user spacing overrides without loss — not that designs ship at 1.5× — so a sub-1.5 line height is not a conformance failure. Line/paragraph-spacing checks are now scoped to multi-line text (single-line labels and buttons exempt); readability hints (text-size,line-height,letter-spacing,paragraph-spacing) are decoupled from thewcaggroup into an opt-inbest-practicegroup, so the default audit (['wcag','design-system','layout']) andrules: ['wcag']return genuine conformance only; and a new code-sidetext-spacing-supportadvisory infigma_scan_code_accessibilityflags fixed-px typography — where 1.4.12/1.4.4 are actually verifiable. No new tools, no arg-shape changes; plugin re-import required to pick up the new audit behavior (bridge protocol unchanged, so an un-updated plugin stays compatible). 1196 tests passing. - v1.31.0 - Fixes the most-reported reliability bug: the Desktop Bridge connection dropping and staying down until you closed the plugin, restarted your MCP client, or killed ports by hand. Root cause was zombie MCP server processes squatting the WebSocket port range (9223–9232) after a bad shutdown. The reaper now escalates
SIGTERM→SIGKILL(a hung server that ignores graceful shutdown can no longer survive), sweeps the range every 5 minutes via anunref'd periodic reaper, and a shutdown backstop prevents a server from zombifying in the first place. The redesigned Desktop Bridge plugin adds an auto-reconnect watchdog (re-probes every ~12s while disconnected), a context-aware Pause / Resume / Reconnect button, and a live server-count badge. No new tools; plugin re-import required (bridgeui.html+code.jschanged). 1190 tests passing, including an integration test that spawns a realSIGTERM-ignoring process and asserts the reaper kills it. - v1.30.0 - Native variable binding + typography in the structured write tools, closing the Plugin API gaps that used to force raw
figma_execute.figma_set_fills/figma_set_strokesaccept avariableIdto bind a fill/stroke to a color variable viasetBoundVariableForPaint(any plan, via the bridge).figma_set_textgainsfontFamily/fontStylewith space-insensitive normalization (SemiBold→Semi Bold) and gracefulRegularfallback.figma_instantiate_componentpre-loads instance text fonts before applying overrides (fixes silently-skipped text overrides on non-Regular weights) and returns awarningsarray for failed overrides. Also fixes a mixed-font crash infigma_set_textand aui.htmlrelay that was dropping new message fields. No new tools; plugin re-import required (bridgeui.html+code.jschanged). Validated live; 1185 tests passing. - v1.29.2 - Bug fix:
figma_generate_component_docnow renders Figma component descriptions faithfully and reliably tags atomic-design level. Single-#headings in descriptions render as real sections (Usage Guidelines, Implementation Considerations, Accessibility Requirements, Content Configuration) instead of leaking as- # Headinglist items; frontmatterdescriptiontakes the first sentence instead of truncating on the word "Accessibility"; the generated Figma URL no longer doubles?node-id=; and the component's atomic level (atom/molecule/organism/template) is auto-detected via a singleids=<node>file request + divider walk-back, with no dependency on library publishing. No new tools; plugin re-import not required. - v1.29.1 - Bug fix:
figma_get_design_system_kitnow resolves variables bridge-first (Desktop Bridge / cloud relay → REST fallback) instead of calling the Enterprise-only Variables REST API directly. Non-Enterprise users no longer hit a 403 on the kit's token section when a bridge is connected, and a REST 403 now points the caller back to the bridge instead of dead-ending. 7 new tests, 1185 total passing. No new tools; plugin re-import not required. - v1.29.0 - Shared library inspection: three new tools close the gap between "I have a component key" and "I can actually use it."
figma_get_library_component_by_keyresolves any 40-char component key to fullcomponentPropertyDefinitions+ variants (with their published keys) + per-variant visual specs — without needing the source library file's URL.figma_get_library_variableslists library tokens via Plugin API (works on every Figma plan; the REST equivalent is Enterprise-only).figma_import_library_variableimports a library token to the current file so it can be bound to nodes. 27 new tests, 1178 total passing. Plugin re-import optional. - v1.28.1 - Bug fix patch surfacing from live-fire testing of the v1.28.0 formatters against multi-tier semantic-token design systems. Fixes: Tailwind v3 emitted empty
module.exportsfor alias-only sets (now resolves alias chains to literal values); TypeScript module + JSON flat + JSON nested formatters emitted"{alias.path}"strings as literal values (now resolves); Tailwind v4 namespace-prefix doubling (--color-theme-color-Xis now--color-theme-X). AddsresolveAliasChainpublic helper. 1151 tests still passing. - v1.28.0 - Full formatter coverage for
figma_export_tokens. Seven new output formats: Tailwind v4@theme inline, Tailwind v3 config, SCSS variables, TypeScript module, JSON flat/nested, Style Dictionary v3, Tokens Studio multi-file. Combined with DTCG + CSS variables, ships 10 fully-implemented output formats with zero third-party build-tool dependencies. Tool description updated, docs/tools.md table all-green. 22 new Jest tests, 1151 total passing. - v1.27.1 - Documentation patch. No code behavior changes. Sweeps stale "Phase 1 ships with DTCG only" claims across tool descriptions, error messages, and internal comments after CSS variables formatter and the apply phase shipped during the v1.27.0 dev cycle. Refreshes README banner + capability bullets + roadmap. Adds
Phase 3.5: Stale-Content Auditto the release runbook so future releases get a strict pre-publish grep sweep across banners, tool descriptions, error messages, source comments, and tool-count consistency. - v1.27.0 - Bidirectional token sync:
figma_export_tokens+figma_import_tokensreplace Style Dictionary and Tokens Studio's export pipeline. Canonical DTCG JSON + CSS custom properties. Diff-aware merge with round-trip ID preservation via$extensions["figma-console-mcp"]. Apply phase pushes hex-value edits back to Figma via the plugin bridge. Verified end-to-end against 713-token + 280-token design systems. - v1.26.0 - Internal cleanup + cross-MCP identity: Local-mode CDP/Puppeteer transport removed entirely (WebSocket-only).
figma_diagnosetool for designer-readable health checks. Every response tagged_mcp: "figma-console-mcp"; errors prefixed[figma-console-mcp]so attribution is unambiguous when running multiple Figma MCPs. Plugin status pill now readsLocal · ready/Cloud · ready/Local + Cloud · ready. Net diff: −7,299 lines, plugin re-import optional. - v1.25.0 - Description + Dev Mode annotation tracking in
figma_diff_versionsvia plugin session buffer. Description and annotation edits made during a session now appear in diff output (REST API doesn't return these — bridged through the plugin'sdocumentchangelistener). - v1.24.0 - Honest scope coverage on version diffs.
scope_coverageobject surfaces whatfigma_diff_versionsdoes and doesn't track; always-on coverage warnings prevent silent invisibility on token-value changes and component-instance placements. - v1.23.0 - Version History & Time-Series Awareness: 6 new tools (list versions, snapshot any past version, diff two versions for component/binding deltas, generate markdown changelogs, trace property/variant introduction via binary-search blame walker). Author attribution flows from autosaves, not just labeled releases.
- v1.17.0 - Figma Slides support: 15 tools for managing presentations.
- v1.16.0 - FigJam support: 9 tools for creating and reading FigJam boards.
- v1.12.0 - Cloud Write Relay: web AI clients can create and modify Figma designs without Node.js.
- v1.11.0 - Complete CDP removal, improved multi-file active tracking with focus detection.
- v1.10.0 - Multi-instance support (dynamic port fallback 9223–9232, multi-connection plugin, instance discovery).
- v1.9.0 - Figma Comments tools, improved port conflict detection.
- v1.8.0 - WebSocket Bridge transport (CDP-free connectivity), real-time selection/document tracking.
- v1.7.0 - MCP Apps (Token Browser, Design System Dashboard), batch variable operations, design-code parity tools.
Coming Next:
- Token sync — non-DTCG input parsers - Parsers for non-DTCG input (Tokens Studio, CSS vars, Tailwind v4, Tailwind v3 config, SCSS, Style Dictionary v3, JSON flat/nested) so
figma_import_tokenscan ingest the same formats it exports. (The import-side apply expansion — creates, replace-gated deletes, alias-target updates — shipped in v1.34.0.) - Component template library - Common UI pattern generation
- Visual regression testing - Screenshot diff capabilities
💻 Development
git clone https://github.com/southleft/figma-console-mcp.git
cd figma-console-mcp
npm install
# Local mode development
npm run dev:local
# Cloud mode development
npm run dev
# Build
npm run build
📄 License
MIT - See LICENSE file for details.
🔗 Links
- 📚 Documentation Site — Complete guides, tutorials, and API reference
- 📖 Local Docs — Documentation source files
- 🐛 Report Issues
- 💬 Discussions
- 🌐 Model Context Protocol
- 🎨 Figma API
Ähnliche Ressourcen

Penpot MCP Server
MCPOfficial MCP for the open-source design tool Penpot: through the Penpot plugin API, agents can query, modify and generate designs, supporting design-to-code and code-to-design. Run npx -y @penpot/mcp@latest first and load the MCP plugin in Penpot to connect.
penpot/penpot63k
OpenPencil
MCPOpen-source AI-native vector design tool with an MCP server built into its desktop app, connectable to Claude Code or Codex in one click. Agents read and edit .op designs in natural language, apply style guides and export React, Vue, Flutter or SwiftUI code. Needs the desktop app.
ZSeven-W/openpencil7.4k
Talk to Figma MCP
MCPUses a Figma plugin and a local WebSocket server so agents can read and directly edit designs: create frames and text, adjust auto layout and styles, and replace copy in bulk. Requires Bun; now maintained by Grab.
grab/cursor-talk-to-figma-mcp7.1k
figma-generate-design
SkillBuilds editable Figma designs on the canvas from screens, modals or sidebars in your code, or from a text description, reusing components and variables from the file's published design system first. Maintained by Figma; needs the remote Figma MCP server and the figma-use skill.
figma/mcp-server-guide2.2k
Figma Skills (mcp-server-guide)
SkillFigma's official skill collection: implement designs as code, map components with Code Connect, generate design-system libraries from code, and build screens and FigJam diagrams on the canvas. Needs the Figma MCP server; canvas writes are in beta and currently free.
figma/mcp-server-guide2.2k
Figma Code Connect
CLIFigma's official CLI that links Figma design-system components to real components in your code, so Dev Mode and the Figma MCP show production snippets instead of generated examples. Needs Node.js 18+, a Figma Organization or Enterprise plan, a full Design or Dev Mode seat and an access token.
figma/code-connect1.6k