figma-mcp-console
MCP server that lets your AI assistant read and write Figma in real time — no API token, no rate limits.
No install needed — npx downloads and runs everything automatically. For one project — run inside that project (registers it there only): For all your projects at once — add it globally instead:
Summary extracted from the README.
Figma MCP Console
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
- 🔁 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_designlists 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_designcompares a frame with a checkpoint you save from the plugin window;get_component_stateslists every state a screen's components define - ✏️ Bulk editing — rename layers, replace text across a page, reorganize frames;
batchruns 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.
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"]
}
}
}
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 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"]
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.
Create .cursor/mcp.json (or Settings → MCP → Add new MCP server):
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "figma-mcp-console@latest"]
}
}
}
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.
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)
- Download plugin.zip → unzip it
⌨️ Option B — Get it via command (if the download doesn't work)
- Run
npx figma-mcp-console install-plugin- It saves the plugin to a folder and opens it automatically so you can see
manifest.json
Then, in both cases:
- In Figma Desktop: Plugins → Development → Import plugin from manifest… → select
manifest.json(one-time step) - Run it: Plugins → Development → Figma MCP Console — and keep the plugin window open while you work. 🟢 Green dot = connected
- 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
- 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.
🎯 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.
🗂 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
fileparameter (file name, case-insensitive), andlist_filesshows 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.0instead of@latest.
🛠 Contributing
Setup, how to add a tool, and the gotchas that cost time: CONTRIBUTING.md. Why the non-obvious parts work the way they do: docs/design-notes.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.