Skip to content

About

MCP server that lets your AI assistant read and write Figma in real time — no API token, no rate limits. Works with Claude, Cursor, Copilot, Codex and any MCP client.

Topics

Resources

Contributing

Stars

15 stars

Watchers

0 watching

Forks

Repository files navigation

Figma MCP Console

npm MCP License: MIT

Let your AI assistant design in Figma — no API token, no rate limits. Works with Claude CLI · Claude Desktop · Codex · VS Code · Cursor · Antigravity · any MCP client.

✨ What can it do?

  • 🖥️ Figma → Code — paste a link to a Figma frame, and the AI implements that exact screen in your codebase, exporting the design's icons and images into your project instead of inventing its own
  • 🎨 Requirement → Figma — paste a requirement, and the AI draws the screen in Figma, then screenshots its own work and fixes what's off
  • 🗺️ Diagrams — 11 kinds, from userflow and BPMN to ERD, sequence and C4 architecture, drawn to their standard notation as editable layers, from a spec, a list of steps or pasted Mermaid. See the diagrams ↓
  • 🔁 Token sync — export Figma variables to CSS or design-tokens JSON (export_tokens), and import them back from your code (import_tokens), updating what changed instead of duplicating
  • ✅ Design checks — audit_design lists layers that are cut off or overflow, text that spills or is truncated, text below WCAG contrast, and tap targets that are too small
  • 🔍 What changed in the design — diff_design compares a frame with a checkpoint you save from the plugin window; get_component_states lists every state a screen's components define
  • ✏️ Bulk editing — rename layers, replace text across a page, reorganize frames; batch runs many steps in one call
  • 🎯 Icons — import SVG icons as editable vectors, resized and recolored, from your file's own components or an icon library
  • 🔒 Read-only by default — the AI can read a file but not change it until you untick Read-only in the plugin window

⚡ Quick start

Prerequisites

  • Node.js 18+ — check with node --version
  • Figma Desktop app (the web app can't run development plugins)

Step 1 — Add the server to your AI tool

No install needed — npx downloads and runs everything automatically.

Claude CLI

For one project — run inside that project (registers it there only):

claude mcp add figma-console -- npx -y figma-mcp-console@latest

For all your projects at once — add it globally instead:

claude mcp add --scope user figma-console -- npx -y figma-mcp-console@latest

Both work the same at runtime: each Claude session starts its own server instance in that project's directory (so exported assets land in the right project), and all instances share one local bridge to Figma automatically.

Or add to the project's .mcp.json:

{
  "mcpServers": {
    "figma-console": {
      "command": "npx",
      "args": ["-y", "figma-mcp-console@latest"]
    }
  }
}
Claude Desktop

Settings → Developer → Edit Config (claude_desktop_config.json):

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

Restart Claude Desktop. On Windows use "command": "cmd", "args": ["/c", "npx", "-y", "figma-mcp-console@latest"].

Codex CLI
codex mcp add figma-console -- npx -y figma-mcp-console@latest

Or in ~/.codex/config.toml:

[mcp_servers.figma-console]
command = "npx"
args = ["-y", "figma-mcp-console@latest"]
VS Code (GitHub Copilot)

Create .vscode/mcp.json (or Command Palette → "MCP: Add Server"):

{
  "servers": {
    "figma-console": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "figma-mcp-console@latest"],
      "cwd": "${workspaceFolder}"
    }
  }
}

Use it from Copilot Chat in Agent mode.

Cursor

Create .cursor/mcp.json (or Settings → MCP → Add new MCP server):

{
  "mcpServers": {
    "figma-console": {
      "command": "npx",
      "args": ["-y", "figma-mcp-console@latest"]
    }
  }
}
Antigravity

Agent panel → MCP Servers → Manage MCP servers → View raw config (mcp_config.json):

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

Click Refresh after saving.

Other MCP clients (opencode, Windsurf, Cline, Gemini CLI, Zed, …)

Standard MCP stdio transport — any client works. Set the command to npx with args ["-y", "figma-mcp-console@latest"].

Step 2 — Install the Figma plugin

First, get the plugin folder onto your machine — pick either option:

📦 Option A — Download from GitHub (recommended)

  1. Download plugin.zip → unzip it

⌨️ Option B — Get it via command (if the download doesn't work)

  1. Run npx figma-mcp-console install-plugin
  2. It saves the plugin to a folder and opens it automatically so you can see manifest.json

Then, in both cases:

  1. In Figma Desktop: Plugins → Development → Import plugin from manifest… → select manifest.json (one-time step)
  2. Run it: Plugins → Development → Figma MCP Console — and keep the plugin window open while you work. 🟢 Green dot = connected
  3. Untick Read-only in the plugin window when you want the AI to change the design. It is ticked every time the plugin opens, so a file you only want read stays safe; reading, screenshots, exports and checks work either way
  4. Working with several Figma files at once? Run the plugin in each file — every window connects to the same local bridge, and the AI picks the right file per call

Step 3 — Try it

Figma → code — right-click a frame → Copy link to selection, then:

Implement this Figma page in our project: <paste link>. Match layout, spacing,
type and colors; export its icons/images into the project; screenshot the frame
and compare when done.

Requirement → Figma:

Design a SaaS landing page in Figma (desktop, 1440px): hero + CTA, three feature
cards, pricing with three plans, footer. Light theme, use auto-layout, then
screenshot and fix anything off.

Requirement → diagram:

Draw the sign-up userflow from this spec in Figma: <paste spec>. Ask me about
anything the spec does not say before drawing.

🎯 Asking the AI to run audit_design, then screenshot and compare at the end makes it check its own work instead of guessing.

Updating

When you update the server (figma-mcp-console@<version>), re-import the plugin from that release's plugin.zip: a hand-installed plugin cannot update itself. The plugin window says Plugin outdated or Server outdated when the two do not match. Release notes: CHANGELOG.md.


🗺 Diagrams

Ask for a diagram in plain words, or paste a spec or Mermaid: the AI asks what the source does not say, then create_diagram lays it out, routes every line at right angles around the boxes, and draws it as ordinary Figma layers you can edit. update_diagram changes it in place, keeping any wording you retyped on the canvas.

BPMN: two pools with lanes, message flows, a timer and a message start event

Sequence diagram with alt, opt and an async message Architecture in the C4 model's colours

ERD with crow's feet Mind map, one colour per branch

Activity diagram with swimlanes

Type Drawn as
userflow Screens and decisions top to bottom (ISO 5807); Yes/No on every branch, the main answer straight on, ways back dashed
activity UML activity with swimlanes: start dot, end bullseye, decisions, hand-offs between lanes
bpmn BPMN 2.0: pools and lanes, typed tasks (user, service, send, receive), gateways, events with a trigger (message, timer, error, signal), message flows between pools
state UML state machine, left to right, the event on each transition
erd Tables with PK / FK; crow's feet, or UML multiplicities (notation: "uml"); non-identifying relations dashed
sequence Lifelines, activation bars, replies dashed, async messages with an open head, and alt / opt / loop / par frames
usecase Actors, the system boundary, «include» and «extend»
sitemap, mindmap A page tree (down, or right with direction: "right"); a mind map with one colour per branch
architecture Tiers of services, databases and outside systems, with a key; the C4 model's colours with notation: "c4"
screenflow The file's own screens as pictures, joined by what the user does; a line starts at the button whose prototype link leads on

Paste Mermaid — a flowchart, sequenceDiagram, stateDiagram or erDiagram is read as it is (the first word sets the type), and anything it cannot draw comes back as a warning instead of being dropped.

Warnings, not guesses — the tool reports holes in the model itself: a decision with one answer, a step that leads nowhere, a table without a primary key, a gateway branch without a condition. The AI takes them back to you instead of inventing an answer.

The plugin's Diagram style tab: type picker, preview, five looks, customise options

The Diagram style tab in the plugin window:

  • Type picker — the preview shows a sample of the type in the current look. When your request does not name a type, the AI draws this one.
  • Five looks — Clean, Mono, Pastel, Dark and High contrast. Every line and outline stands out from the background at 3 : 1 or more (WCAG 1.4.11).
  • Customise — font, text size, corners, line weight, spacing, a colour per lane, and the colours that carry meaning (main path, error, warning).
  • Apply to selection — redraws the selected diagram in the chosen look, or as the chosen type when the two hold the same things (userflow ↔ activity ↔ BPMN ↔ state, sitemap ↔ mind map).
Draw the checkout as a BPMN diagram: the customer and the shop are separate
pools, the warehouse is a lane in the shop. Ask me about anything unclear.
Here is our schema in Mermaid, draw it as an ERD in UML notation: <paste>
Draw a screen flow of the sign-in screens in the "Auth" section, following
their prototype links.


🗂 Multiple files, multiple projects

All AI sessions and all Figma files share one local bridge on port 2000 — the first MCP server to start owns it, later ones join it automatically, and if the owner exits another session takes over within a second. Nothing to configure.

  • Several Figma files: run the plugin in each file (its window shows Connected · <file name>). With more than one file connected, every tool accepts a file parameter (file name, case-insensitive), and list_files shows what's connected — so you can say things like "copy the primary color from Design System into the CTA button in Landing Page" in a single session. With one file connected, nothing changes.
  • Several code projects: each AI session (one per project) reaches every connected file through the shared bridge. State which file you mean in the prompt and each session works with the right one.

🧠 Teach your AI what to export, and where

Exports follow the file extension the AI picks (.svg for vector, .png/.jpg for bitmap, with an optional 0.5–4x scale). It decides based on what you ask — so put your preferences in the project rules file once, and stop repeating yourself:

AI tool Rules file
Claude CLI / Claude Desktop CLAUDE.md
Codex / opencode AGENTS.md
Cursor .cursorrules
VS Code Copilot .github/copilot-instructions.md
Windsurf .windsurfrules

📋 Copy-paste rules (adjust paths — this fits Next.js):

## Figma asset rules
- Icons: SVG into public/icons/. Images: PNG into public/images/.
- File names: kebab-case English (arrow-left.svg, hero-banner.png).
- Read design tokens with get_variable_defs; map them to our theme config.
- After building a screen, screenshot and fix issues before finishing.

🔧 Troubleshooting

Problem Fix
❌ "no Figma plugin is connected" Open the plugin in Figma Desktop (Plugins → Development → Figma MCP Console) and keep its window open — in every file you want the AI to touch
🕐 Plugin says "Searching for MCP server…" Normal before your AI client connects — the server starts automatically with it. If it never connects, click the status line to retry, or restart your AI client
🗂 "N Figma files are connected; pass the file parameter" More than one plugin window is open — tell the AI which file you mean (or close the extra plugin windows)
🚫 The MCP server doesn't appear in your AI tool Check Node.js 18+ is installed (node -v)
📁 Exported files end up in the wrong folder Exports are written relative to where the server runs. Register it in the project-level config, or tell the AI an explicit export path
🔤 Font errors when creating text The Figma file uses a font not installed on your machine — the error message names it
🔒 "… was blocked: read-only mode is on" Read-only is ticked in that file's plugin window (it is, every time the plugin opens). Untick it if the edit is intended
⚠ "Plugin outdated" / "the plugin … is outdated" Re-import the plugin from the latest release's plugin.zip and run it again
⚠ "Server outdated" Restart your AI client, or update the version in its MCP config
👁 The plugin will not run in a file Figma runs plugins only for people who can edit the file. Duplicate it to your drafts, or copy the frames into a file you can edit

🔢 Versions

  • The server (npm) and the plugin (plugin.zip) are released together under one version. Use the plugin from the same release as the server; the plugin window warns when they differ.
  • From 1.0, versions follow semantic versioning: a tool or parameter is removed or renamed, or a default changes what a call does, only in a new major version. New tools and new optional parameters come in minor versions; fixes in patch versions.
  • A release that changes the plugin protocol says so under "Upgrading" in the changelog; only those need the plugin re-imported.
  • To stay on a known version, pin it in your MCP config: figma-mcp-console@1.0.0 instead of @latest.

🛠 Contributing

Setup, how to add a tool, and the gotchas that cost time: CONTRIBUTING.md.

📄 License

MIT — © Hoang Le Thien An

This is an independent community project, not affiliated with or endorsed by Figma, Inc. "Figma" is a trademark of Figma, Inc.

About

MCP server that lets your AI assistant read and write Figma in real time — no API token, no rate limits. Works with Claude, Cursor, Copilot, Codex and any MCP client.

Topics

Resources

Contributing

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages