[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108686":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},108686,"figma-console-mcp","southleft\u002Ffigma-console-mcp","southleft","Your design system as an API. Connect AI to Figma for extraction, creation, and debugging.",null,"https:\u002F\u002Fgithub.com\u002Fsouthleft\u002Ffigma-console-mcp","TypeScript",3398,311,28,8,0,3,69,273,25,92.48,false,"main",[25,26,27,28,29,30],"ai","design-systems","figma","figma-api","figma-plugins","mcp","2026-11-13 16:00:41","2026-11-23 17:40:41","# Figma Console MCP Server\n\n[![MCP](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMCP-Compatible-blue)](https:\u002F\u002Fmodelcontextprotocol.io\u002F)\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Ffigma-console-mcp)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Ffigma-console-mcp)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n[![Documentation](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdocs-docs.figma--console--mcp.southleft.com-0D9488)](https:\u002F\u002Fdocs.figma-console-mcp.southleft.com)\n[![Sponsor](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSponsor-southleft-ea4aaa?logo=github-sponsors&logoColor=white)](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fsouthleft)\n\n> **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.\n\n> **🆕 Shaders, grid and auto layout, OKLCH and P3 color, text wrap and variable fonts (latest v1.46.0):** apply shaders and set their properties by name (`figma_apply_shader`, `figma_list_shaders`), set auto layout or grid layout in one call with CSS-style grid tracks (`figma_set_layout`), use OKLCH, Display P3 and other CSS colors on fills and strokes, and set text wrap (balance, pretty) and variable-font axes with `figma_set_text` (v1.46.0). v1.45 added Motion: animate layers with presets, custom animation styles or keyframes bound to Timing and Easing tokens, export video, and find code layers. [See what's new →](CHANGELOG.md#1460---2026-10-29)\n\n## What is this?\n\nFigma Console MCP connects AI assistants (like Claude) to Figma, enabling:\n\n- **🎨 Design system extraction** - Pull variables, components, and styles\n- **🧬 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)\n- **🔁 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.\n- **📸 Visual debugging** - Take screenshots for context\n- **✏️ Design creation** - Create UI components, frames, and layouts directly in Figma — including one-call component-set creation from a variant axes matrix\n- **🔧 Variable management** - Create, update, rename, and delete design tokens\n- **🕰 Version history & time-series awareness** - List versions, diff snapshots, generate markdown changelogs, trace property\u002Fvariant introduction via binary-search blame, and fold per-component design + git history into generated component docs\n- **⚡ Real-time monitoring** - Watch console logs from the Desktop Bridge plugin\n- **📌 FigJam boards** - Create stickies, flowcharts, tables, and code blocks on collaborative boards\n- **🎞️ Slides presentations** - Build and manage Figma Slides decks programmatically\n- **♿ Accessibility scanning** - 14 WCAG design checks with conformance level tagging, component scorecards, axe-core code scanning, design-to-code parity\n- **🔍 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\n- **📋 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\n- **🛡 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\n- **☁️ Cloud Write Relay** - Web AI clients (Claude.ai, v0, Replit) can design in Figma via cloud pairing\n- **🔄 Four ways to connect** - Remote SSE, Cloud Mode, NPX, or Local Git\n\n---\n\n## ⚡ Quick Start\n\n### Choose Your Setup\n\n**First, decide what you want to do:**\n\n| I want to... | Setup Method | Time |\n|--------------|--------------|------|\n| **Create and modify designs with AI** | [NPX Setup](#-npx-setup-recommended) (Recommended) | ~10 min |\n| **Design from the web** (Claude.ai, v0, Replit, Lovable) | [Cloud Mode](#-cloud-mode-web-ai-clients) | ~5 min |\n| **Contribute to the project** | [Local Git Setup](#for-contributors-local-git-mode) | ~15 min |\n| **Just explore my design data** (read-only) | [Remote SSE](#-remote-sse-read-only-exploration) | ~2 min |\n\n### ⚠️ Important: Capability Differences\n\n| Capability | NPX \u002F Local Git | Cloud Mode | Remote SSE |\n|------------|-----------------|------------|------------|\n| Read design data | ✅ | ✅ | ✅ |\n| **Create components & frames** | ✅ | ✅ | ❌ |\n| **Edit existing designs** | ✅ | ✅ | ❌ |\n| **Manage design tokens\u002Fvariables** | ✅ | ✅ | ❌ |\n| **FigJam boards (stickies, flowcharts)** | ✅ | ✅ | ❌ |\n| Real-time monitoring (console, selection) | ✅ | ❌ | ❌ |\n| Codebase → design system extraction (`figma_ds_*`) | ✅ | ❌ | ❌ |\n| Desktop Bridge plugin | ✅ | ✅ | ❌ |\n| Requires Node.js | Yes | **No** | No |\n| **Total tools available** | **130** | **105** after pairing | Read-only subset |\n\n> **Bottom line:** Remote SSE is **read-only** until you pair the plugin. **Cloud Mode** unlocks write access (105 tools) from web AI clients without Node.js. NPX\u002FLocal Git gives the full 130 tools with real-time monitoring.\n\n---\n\n### 🚀 NPX Setup (Recommended)\n\n**Best for:** Designers who want full AI-assisted design capabilities.\n\n**What you get:** All 130 tools including design creation, variable management, and component instantiation.\n\n#### Prerequisites\n\n- [ ] **Node.js 18+** — Check with `node --version` ([Download](https:\u002F\u002Fnodejs.org))\n- [ ] **Figma Desktop** installed (not just the web app)\n- [ ] **An MCP client** (Claude Code, Cursor, Windsurf, Claude Desktop, etc.)\n\n#### Step 1: Get Your Figma Token\n\n1. Go to [Manage personal access tokens](https:\u002F\u002Fhelp.figma.com\u002Fhc\u002Fen-us\u002Farticles\u002F8085703771159-Manage-personal-access-tokens) in Figma Help\n2. Follow the steps to **create a new personal access token**\n3. Enter description: `Figma Console MCP`\n4. 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](https:\u002F\u002Fdocs.figma-console-mcp.southleft.com\u002Fsetup#step-1-get-your-figma-token-2-min)\n5. **Copy the token** — you won't see it again! (starts with `figd_`)\n\n#### Step 2: Configure Your MCP Client\n\n**Claude Code (CLI):**\n```bash\nclaude 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\n```\n\n**OpenAI Codex (CLI):**\n```bash\ncodex mcp add figma-console --env FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE --env ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest\n```\nThen set `startup_timeout_sec = 60` and `tool_timeout_sec = 300` for it in `~\u002F.codex\u002Fconfig.toml` (Codex's 10 s \u002F 60 s defaults are too short). The Codex app and IDE extension share this config. [Full Codex setup →](https:\u002F\u002Fdocs.figma-console-mcp.southleft.com\u002Fsetup#-openai-codex)\n\n**Gemini CLI:**\n```bash\ngemini 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\n```\n\n**Google Antigravity (IDE, CLI, app):** add the JSON below to `~\u002F.gemini\u002Fconfig\u002Fmcp_config.json`, plus `\"timeoutSeconds\": 300` in the server entry. [Full Antigravity setup →](https:\u002F\u002Fdocs.figma-console-mcp.southleft.com\u002Fsetup#-google-antigravity)\n\n**Cursor \u002F Windsurf \u002F Claude Desktop:**\n\nAdd to your MCP config file (see [Where to find your config file](#-where-to-find-your-config-file) below):\n\n```json\n{\n  \"mcpServers\": {\n    \"figma-console\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"figma-console-mcp@latest\"],\n      \"env\": {\n        \"FIGMA_ACCESS_TOKEN\": \"figd_YOUR_TOKEN_HERE\",\n        \"ENABLE_MCP_APPS\": \"true\"\n      }\n    }\n  }\n}\n```\n\n#### 📂 Where to Find Your Config File\n\nIf you're not sure where to put the JSON configuration above, here's where each app stores its MCP config:\n\n| App | macOS | Windows |\n|-----|-------|---------|\n| **Claude Desktop** | `~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fclaude_desktop_config.json` | `%APPDATA%\\Claude\\claude_desktop_config.json` |\n| **Claude Code (CLI)** | `~\u002F.claude.json` | `%USERPROFILE%\\.claude.json` |\n| **Cursor** | `~\u002F.cursor\u002Fmcp.json` | `%USERPROFILE%\\.cursor\\mcp.json` |\n| **Windsurf** | `~\u002F.codeium\u002Fwindsurf\u002Fmcp_config.json` | `%USERPROFILE%\\.codeium\\windsurf\\mcp_config.json` |\n| **OpenAI Codex** (app, CLI, IDE) | `~\u002F.codex\u002Fconfig.toml` (TOML, [see format](https:\u002F\u002Fdocs.figma-console-mcp.southleft.com\u002Fsetup#-openai-codex)) | `%USERPROFILE%\\.codex\\config.toml` |\n| **Gemini CLI** | `~\u002F.gemini\u002Fsettings.json` | `%USERPROFILE%\\.gemini\\settings.json` |\n| **Google Antigravity** (IDE, CLI, app) | `~\u002F.gemini\u002Fconfig\u002Fmcp_config.json` | `%USERPROFILE%\\.gemini\\config\\mcp_config.json` |\n\n> **Tip for designers:** The `~` symbol means your **home folder**. On macOS, that's `\u002FUsers\u002FYourName\u002F`. On Windows, it's `C:\\Users\\YourName\\`. You can open these files in any text editor — even TextEdit or Notepad.\n>\n> **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).\n>\n> **Claude Code users:** You can skip manual editing entirely. Just run the `claude mcp add` command above and it handles everything for you.\n\n#### Step 3: Connect to Figma Desktop\n\n**Desktop Bridge Plugin:**\n1. Open Figma Desktop normally (no special flags needed) and open a file\n2. Go to **Plugins → Development → Import plugin from manifest...**\n3. Select `~\u002F.figma-console-mcp\u002Fplugin\u002Fmanifest.json` (stable path, auto-created by the MCP server). Run `npx figma-console-mcp --print-path` to print the exact path for your machine.\n4. Run the plugin in your Figma file — it scans ports 9223–9232 and connects automatically to your running MCP server\n\n> **Can't see the folder in the import dialog?** `.figma-console-mcp` starts 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.\n\n> **Heads-up on plugin updates.** Figma caches plugin files (`code.js` and `ui.html`) at the application level. The MCP server refreshes the files at `~\u002F.figma-console-mcp\u002Fplugin\u002F` on every startup, but Figma keeps using its cached copy until you re-import the manifest.\n>\n> **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, `pluginVersion` reporting).\n>\n> When you do re-import: Plugins → Manage plugins → re-import `~\u002F.figma-console-mcp\u002Fplugin\u002Fmanifest.json`. The stable path never changes, so it's a one-click step.\n\n#### Step 4: Restart Your MCP Client\n\nRestart your MCP client to load the new configuration.\n\n#### Step 5: Test It!\n\n```\nCheck Figma status\n```\n→ Should show connection status with active WebSocket transport\n\n```\nCreate a simple frame with a blue background\n```\n→ Should create a frame in Figma (confirms write access!)\n\n**📖 [Complete Setup Guide](docs\u002Fsetup.md)**\n\n---\n\n### For Contributors: Local Git Mode\n\n**Best for:** Developers who want to modify source code or contribute to the project.\n\n**What you get:** Same 130 tools as NPX, plus full source code access.\n\n#### Quick Setup\n\n```bash\n# Clone and build\ngit clone https:\u002F\u002Fgithub.com\u002Fsouthleft\u002Ffigma-console-mcp.git\ncd figma-console-mcp\nnpm install\nnpm run build:local\n```\n\n#### Configure Your MCP Client\n\nAdd to your config file (see [Where to find your config file](#-where-to-find-your-config-file)):\n\n```json\n{\n  \"mcpServers\": {\n    \"figma-console\": {\n      \"command\": \"node\",\n      \"args\": [\"\u002Fabsolute\u002Fpath\u002Fto\u002Ffigma-console-mcp\u002Fdist\u002Flocal.js\"],\n      \"env\": {\n        \"FIGMA_ACCESS_TOKEN\": \"figd_YOUR_TOKEN_HERE\",\n        \"ENABLE_MCP_APPS\": \"true\"\n      }\n    }\n  }\n}\n```\n\nThen follow [NPX Steps 3-5](#step-3-connect-to-figma-desktop) above.\n\n**📖 [Complete Setup Guide](docs\u002Fsetup.md)**\n\n---\n\n### 📡 Remote SSE (Read-Only Exploration)\n\n**Best for:** Quickly evaluating the tool or read-only design data extraction.\n\n**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.**\n\n#### Claude Desktop (UI Method)\n\n1. Open Claude Desktop → **Settings** → **Connectors**\n2. Click **\"Add Custom Connector\"**\n3. Enter:\n   - **Name:** `Figma Console (Read-Only)`\n   - **URL:** `https:\u002F\u002Ffigma-console-mcp.southleft.com\u002Fsse`\n4. Click **\"Add\"** — Done! ✅\n\nOAuth authentication happens automatically when you first use design system tools.\n\n#### Claude Code\n\n> **⚠️ Known Issue:** Claude Code's native `--transport sse` has a [bug](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-code\u002Fissues\u002F2466). Use `mcp-remote` instead:\n\n```bash\nclaude mcp add figma-console -s user -- npx -y mcp-remote@latest https:\u002F\u002Ffigma-console-mcp.southleft.com\u002Fsse\n```\n\n**💡 Tip:** For full capabilities, use [NPX Setup](#-npx-setup-recommended) instead of Remote SSE.\n\n#### Other Clients (Cursor, Windsurf, etc.)\n\n```json\n{\n  \"mcpServers\": {\n    \"figma-console\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-remote\", \"https:\u002F\u002Ffigma-console-mcp.southleft.com\u002Fsse\"]\n    }\n  }\n}\n```\n\n#### Upgrading to Full Capabilities\n\nReady for design creation? Follow the [NPX Setup](#-npx-setup-recommended) guide above, or try [Cloud Mode](#-cloud-mode-web-ai-clients) if you don't want to install Node.js.\n\n**📖 [Complete Setup Guide](docs\u002Fsetup.md)**\n\n---\n\n### ☁️ Cloud Mode (Web AI Clients)\n\n**Best for:** Using Claude.ai, v0, Replit, or Lovable to create and modify Figma designs — no Node.js required.\n\n**What you get:** 105 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.\n\n#### Prerequisites\n\n- [ ] **Figma Personal Access Token** — [Create one here](https:\u002F\u002Fhelp.figma.com\u002Fhc\u002Fen-us\u002Farticles\u002F8085703771159-Manage-personal-access-tokens) (starts with `figd_`)\n- [ ] **Figma Desktop** with the Desktop Bridge plugin installed (see [Desktop Bridge setup](#step-3-connect-to-figma-desktop))\n- [ ] **A web AI client** that supports MCP (Claude.ai, Lovable, v0, Replit, etc.)\n\n#### Step 1: Add the MCP Connector\n\nAdd this endpoint to your AI platform's MCP settings:\n\n**URL:** `https:\u002F\u002Ffigma-console-mcp.southleft.com\u002Fmcp`\n**Auth:** Your Figma PAT as Bearer token\n\nIn **Claude.ai**: Settings → Connectors → Add Custom Connector → paste the URL above.\nIn **Lovable\u002Fv0\u002FReplit**: Look for \"Add MCP Server\" or \"Integrations\" in settings → paste the URL and add your token.\n\n#### Step 2: Pair the Plugin\n\n1. **Open the Desktop Bridge plugin** in Figma Desktop (Plugins → Development → Figma Desktop Bridge)\n2. **Tell your AI assistant:**\n   ```\n   Connect to my Figma plugin\n   ```\n3. **The AI gives you a 6-character pairing code** (expires in 5 minutes)\n4. **In the plugin:** Toggle \"Cloud Mode\" → enter the code → click Connect\n5. **You're paired!** Full write access is now available\n\n#### What You Can Do\n\nOnce paired, use natural language to design:\n```\nCreate a card component with a header image, title, description, and action button\nSet up a color token collection with Light and Dark modes\nAdd a \"High Contrast\" mode to my existing token collection\n```\n\n#### How It Works\n\nYour 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.\n\n```\nAI Client → Cloud MCP Server → Durable Object Relay → Desktop Bridge Plugin → Figma\n```\n\n> **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.\n\n**📖 [Complete Setup Guide](docs\u002Fsetup.md)**\n\n---\n\n## 📊 Installation Method Comparison\n\n| Feature | NPX (Recommended) | Cloud Mode | Local Git | Remote SSE |\n|---------|-------------------|------------|-----------|------------|\n| **Setup time** | ~10 minutes | ~5 minutes | ~15 minutes | ~2 minutes |\n| **Total tools** | **130** | **105** after pairing | **130** (Local Git) | Read-only subset |\n| **Design creation** | ✅ | ✅ | ✅ | ❌ |\n| **Variable management** | ✅ | ✅ | ✅ | ❌ |\n| **Component instantiation** | ✅ | ✅ | ✅ | ❌ |\n| **FigJam boards** | ✅ | ✅ | ✅ | ❌ |\n| **Real-time monitoring** | ✅ | ❌ | ✅ | ❌ |\n| **Desktop Bridge plugin** | ✅ | ✅ | ✅ | ❌ |\n| **Variables (no Enterprise)** | ✅ | ✅ | ✅ | ❌ |\n| **Console logs** | ✅ (zero latency) | ❌ | ✅ (zero latency) | ✅ |\n| **Read design data** | ✅ | ✅ | ✅ | ✅ |\n| **Requires Node.js** | Yes | **No** | Yes | No |\n| **Authentication** | PAT (manual) | OAuth (automatic) | PAT (manual) | OAuth (automatic) |\n| **Automatic updates** | ✅ (`@latest`) | ✅ | Manual (`git pull`) | ✅ |\n| **Source code access** | ❌ | ❌ | ✅ | ❌ |\n\n> **Key insight:** Remote SSE is read-only. Cloud Mode adds write access for web AI clients without Node.js. NPX\u002FLocal Git give the full 130 tools.\n\n**📖 [Complete Feature Comparison](docs\u002Fmode-comparison.md)**\n\n---\n\n## 🎯 Test Your Connection\n\nAfter setup, try these prompts:\n\n**Basic test (all modes):**\n```\nNavigate to https:\u002F\u002Fwww.figma.com and check status\n```\n\n**Design system test (requires auth):**\n```\nGet design variables from [your Figma file URL]\n```\n\n**Cloud Mode test:**\n```\nConnect to my Figma plugin\n```\n→ Follow the pairing flow, then try: \"Create a simple blue rectangle\"\n\n**Plugin test (Local Mode only):**\n```\nShow me the primary font for [your theme name]\n```\n\n---\n\n## 🔐 Authentication\n\n### Remote Mode - OAuth (Automatic)\n\nWhen you first use design system tools:\n1. Browser opens automatically to Figma authorization page\n2. Click \"Allow\" to authorize (one-time)\n3. Token stored securely and refreshed automatically\n4. Works with Free, Pro, and Enterprise Figma plans\n\n### Local Mode - Personal Access Token (Manual)\n\n1. Visit https:\u002F\u002Fhelp.figma.com\u002Fhc\u002Fen-us\u002Farticles\u002F8085703771159-Manage-personal-access-tokens\n2. 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)\n3. Add to MCP config as `FIGMA_ACCESS_TOKEN` environment variable\n\n---\n\n## 🛠️ Available Tools\n\n### Status & Diagnostics\n- `figma_get_status` - Check WebSocket bridge connection and file context\n- `figma_diagnose` - Designer-readable health check + setup guidance\n- `figma_reconnect` - Force reconnect to the Desktop Bridge plugin\n- `figma_navigate` - Switch the active file target among connected plugins (Local), or navigate the cloud headless browser (Remote\u002FCloud)\n- `figma_list_open_files` - List files connected through the Desktop Bridge and which one is active (Local Mode)\n\n### Console Debugging\n- `figma_get_console_logs` - Retrieve console logs\n- `figma_watch_console` - Real-time log streaming\n- `figma_clear_console` - Clear log buffer\n- `figma_reload_plugin` - Reload current page\n\n### Visual Debugging\n- `figma_take_screenshot` - Export an image of a page or node (Desktop Bridge first, REST fallback)\n- `figma_capture_screenshot` - Render a node from the plugin runtime, reflecting changes that haven't reached the REST API yet\n\n### 👁️ Real-Time Awareness (Local Mode only)\n- `figma_get_selection` - The nodes currently selected in Figma\n- `figma_get_design_changes` - Buffered document-change events, for polling what changed\n\n### Design System Extraction\n- `figma_get_design_system_kit` - **Full design system in one call** — tokens, components, styles, visual specs\n- `figma_get_variables` - Extract design tokens\u002Fvariables\n- `figma_get_component` - Get component data (metadata or reconstruction spec)\n- `figma_get_component_for_development` - Component + image\n- `figma_get_component_image` - Just the image\n- `figma_get_styles` - Color, text, effect styles\n- `figma_get_file_data` - Full file structure\n- `figma_get_file_for_plugin` - Optimized file data\n- `figma_get_design_system_summary` \u002F `figma_get_token_values` - Compact design-system overview and variable values by mode (Local Mode only)\n- `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\n\n### 📚 Shared Library Inspection\n- `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.\n- `figma_get_library_components` - Discover all components in a library file (requires library file URL\u002Fkey)\n- `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 by `libraryName`, `collectionName`, or `resolvedType`.\n- `figma_import_library_variable` - Import a library variable into the current file. Returns a local `id` ready to pass to `figma_set_fills` \u002F `figma_update_variable` \u002F any variable-binding tool.\n\n### ☁️ Cloud Relay\n- `figma_pair_plugin` - Generate a pairing code to connect a Desktop Bridge plugin via the cloud relay\n\n### ✏️ Design Creation (Local Mode + Cloud Mode)\n- `figma_execute` - **Power tool**: Run any Figma Plugin API code to create designs\n  - Create frames, shapes, text, components\n  - Apply auto-layout, styles, effects\n  - Build complete UI mockups programmatically\n  - Optional `fileKey` targets one specific connected file directly (Local Mode only), without touching the active file or target lock\n- `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\"\n  - Name the files with `fileKeys` (from `figma_list_open_files`), or pass `allFiles: true` to hit every connected file — one of the two is required, so a script never fans out to files you didn't mean to touch\n  - Per-file timeouts and error isolation: one slow or failing file doesn't delay or fail the others\n- `figma_create_component_set` - **Create a component set with variants in one declarative call**\n  - 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\n  - `Prop=Value` variant naming, `combineAsVariants` under the hood, optional auto-arranged labeled grid\n  - Returns each variant's key, ready for `figma_instantiate_component`\n- `figma_arrange_component_set` - **Organize variants into professional component sets**\n  - Convert multiple component variants into a proper Figma component set\n  - Applies native purple dashed border visualization automatically\n  - Creates white container frame with title, row labels, and column headers\n  - Row labels vertically centered with each grid row\n  - Column headers horizontally centered with each column\n  - Use natural language like \"arrange these variants\" or \"organize as component set\"\n- `figma_set_description` - **Document components with rich descriptions**\n  - Add descriptions to components, component sets, and styles\n  - Supports markdown formatting for rich documentation\n  - Descriptions appear in Dev Mode for developers\n\n### 🧩 Figma Slots (Local Mode + Cloud Mode)\n- `figma_create_slot` - **Add a slot to a component** via the GA `createSlot()` API — the linked SLOT property is created automatically; works on standalone components and variants inside a component set\n- `figma_get_slots` - List slots on a component, component set (aggregated across variants), or instance — ids, names, property keys, dimensions, and current children\n- `figma_append_to_slot` - **Populate an instance's slot** by cloning an existing node or creating new content (`setProperties` rejects slot values by design — this is the population path)\n- `figma_reset_slot` - Clear a slot's content on an instance\n- `figma_add_slot_property` - Retrofit an existing frame as a slot via a manual SLOT property binding, with `description` and `preferredValues`\n\n### 🎬 Motion (Local Mode + Cloud Mode)\nFigma Motion (Plugin API beta). Animations play in Figma's preview and in video export, not in static screenshots.\n- `figma_get_animations` - Read a layer's animation styles, keyframe tracks and timeline, with CSS easings and token bindings\n- `figma_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\u002FTIMING variables\n- `figma_remove_animation` - Remove one animation style, one keyframe track, or everything\n- `figma_manage_animation_styles` - **Build reusable motion styles**: list Figma's presets and their options, and create, update or delete custom animation styles\n- `figma_export_animation` - Export an animated frame as MP4, GIF or WebM\n\n### 🧱 Code Layers (Local Mode + Cloud Mode)\n- `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`)\n\n### ✨ Shaders (Local Mode + Cloud Mode)\n- `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 libraries\n- `figma_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\n\n### 📐 Layout (Local Mode + Cloud Mode)\n- `figma_set_layout` - **Auto layout and grid layout in one call**: direction, gaps, padding, alignment including `SPACE_EVENLY`\u002F`SPACE_AROUND`, wrap, sizing, and grid tracks written CSS-style (`'240px 1fr 1fr'`, `repeat(3, 1fr)`) with child placement and spans\n\n### 🔍 Design-Code Parity (All Modes)\n- `figma_check_design_parity` - Compare Figma component specs against code implementation, producing a scored diff report with actionable fix items\n- `figma_generate_component_doc` - Generate platform-agnostic markdown documentation by merging Figma design data with code-side info; the optional `history` parameter adds a changelog from Figma version history and `git log`\n\n### 🔬 Components, Nodes & Deep Analysis (Local Mode + Cloud Mode unless noted)\n- `figma_search_components` \u002F `figma_get_component_details` - Find components (local + library) and get their variants, properties, and keys (Local Mode only)\n- `figma_instantiate_component` \u002F `figma_set_instance_properties` - Place instances and set their TEXT, BOOLEAN, INSTANCE_SWAP, and VARIANT properties\n- `figma_add_component_property` \u002F `figma_edit_component_property` \u002F `figma_delete_component_property` - Manage component properties\n- `figma_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\u002FDisplay P3 and other CSS colors on fills and strokes, and text wrap style and variable-font axes on text\n- `figma_get_component_for_development_deep` - Full component tree with resolved token names and instance references\n- `figma_analyze_component_set` - A variant set as a state machine, with CSS pseudo-class mappings and per-variant diffs\n\n### ♿ Accessibility (Local Mode + Cloud Mode)\n- `figma_lint_design` - WCAG and design-system lint on the canvas, with AA and best-practice level tagging\n- `figma_audit_component_accessibility` - Component scorecard: state coverage, focus indicators, color-blind simulation\n- `figma_scan_code_accessibility` - axe-core scan of HTML\n\n### 📝 Annotations & Comments\n- `figma_get_annotations` \u002F `figma_set_annotations` \u002F `figma_get_annotation_categories` - Read and write designer annotations (Local Mode + Cloud Mode)\n- `figma_get_comments` \u002F `figma_post_comment` \u002F `figma_delete_comment` - File comments, optionally pinned to a node\n\n### 🕰 Version History\n- `figma_get_file_versions` \u002F `figma_get_file_at_version` - List versions and snapshot a file or node at a past version\n- `figma_diff_versions` \u002F `figma_get_changes_since_version` - Structured diffs, including component property and binding changes\n- `figma_generate_changelog` - Markdown changelog for release notes\n- `figma_blame_node` - Find when, and by whom, a property or variant was introduced\n\n### 🔁 Token Sync (Local Mode + Cloud Mode)\n- `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\u002Fdimensions via `dtcgDialect: \"2025\"`) plus CSS, Tailwind v4\u002Fv3, SCSS, TS, JSON, Style Dictionary, and Tokens Studio formats. Diff-aware merge against existing source files (only writes what changed). `tokens.config.json` autodiscovery 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.\n- `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\u002Fvariables, applies **renames**, writes real **alias** (`VARIABLE_ALIAS`) references, and — only under `strategy: \"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 via `payload` or `files` (no local filesystem access).\n\n### 🧬 Design System Extraction (Local Mode only)\n\nTurn 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.\n\n- `figma_ds_analyze` - **Scan one or more production app codebases** — framework\u002Fstyling\u002Fvendor-layer detection; a usage-ranked component inventory classified vendored \u002F wrapped \u002F pure-vendor \u002F bespoke, with prop contracts, variant inference from real call sites, and duplicate detection; iconography + typography capture; and architecture classification (atomic levels, specializations like `FollowButton` → `Button`, missing generic primitives — the \"UI kit vs design system\" analysis)\n- `figma_ds_extract_tokens` - **Mine the app's styling into DTCG tokens.** Declared intent first — multi-mode CSS custom properties (`.dark` \u002F `[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 via `figma_import_tokens`\n- `figma_ds_scaffold` - Generate the design-system package — package skeleton, token files via the shared formatter engine, token\u002Ftypography\u002Ficonography showcase docs pages, framework peer deps, and a workflow README\n- `figma_ds_setup_storybook` - Wire a freshly-initialized Storybook workshop to the extraction — a preview stylesheet carrying the source app's `@theme` mapping, custom `@utility` definitions, `@layer base`, and `@font-face` rules; self-hosted font copying; config patches (Tailwind vite plugin, automatic JSX runtime); and a theme toolbar built from the extracted modes\n- `figma_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 scaffold\n- `figma_ds_verify` - **Deterministic fidelity evals** — DTCG parse + alias integrity, quoted-CSS-expression scan, workshop `var()` resolution, structure + porting coverage, and Figma round-trip readiness\n- `figma_ds_status` - Read or record porting progress, persisted across sessions\n\n### 🔧 Variable Management (Local Mode + Cloud Mode)\n- `figma_create_variable_collection` - Create new variable collections with modes\n- `figma_create_variable` - Create COLOR, FLOAT, STRING, or BOOLEAN variables\n- `figma_update_variable` - Update variable values in specific modes\n- `figma_rename_variable` - Rename variables while preserving values\n- `figma_delete_variable` - Delete variables\n- `figma_delete_variable_collection` - Delete collections and all their variables\n- `figma_add_mode` - Add modes to collections (e.g., \"Dark\", \"Mobile\")\n- `figma_rename_mode` - Rename existing modes\n- `figma_batch_create_variables` - Create up to 100 variables in one call (10-50x faster)\n- `figma_batch_update_variables` - Update up to 100 variable values in one call\n- `figma_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\n\n### 📌 FigJam Board Tools (Local Mode + Cloud Mode)\n- `figjam_create_sticky` - Create a sticky note with color options\n- `figjam_create_stickies` - Batch create up to 200 stickies\n- `figjam_create_connector` - Connect nodes with labeled connector lines\n- `figjam_create_shape_with_text` - Create flowchart shapes (diamond, ellipse, etc.)\n- `figjam_create_table` - Create tables with cell data\n- `figjam_create_code_block` - Add code snippets with syntax highlighting\n- `figjam_create_section` - Group board content in a section\n- `figjam_auto_arrange` - Arrange nodes in grid, horizontal, or vertical layouts\n- `figjam_get_board_contents` - Read all content from a FigJam board\n- `figjam_get_connections` - Read the connection graph (flowcharts, relationships)\n\n### 🎞️ Slides Presentation Tools (Local Mode + Cloud Mode)\n- `figma_list_slides` - List all slides with IDs, positions, and skip status\n- `figma_get_slide_content` - Get the full content tree of a slide\n- `figma_get_slide_grid` - Get the 2D grid layout of the presentation\n- `figma_get_slide_transition` - Read transition settings for a slide\n- `figma_get_focused_slide` - Get the currently focused slide\n- `figma_create_slide` - Create a new blank slide\n- `figma_delete_slide` - Delete a slide from the presentation\n- `figma_duplicate_slide` - Clone an existing slide\n- `figma_reorder_slides` - Reorder slides via new 2D grid layout\n- `figma_set_slide_transition` - Set transition effects (22 styles, 8 curves)\n- `figma_skip_slide` - Toggle whether a slide is skipped in presentation mode\n- `figma_add_text_to_slide` - Add text to a slide with custom fonts, colors, alignment, and wrapping\n- `figma_add_shape_to_slide` - Add rectangle or ellipse shapes with color\n- `figma_set_slide_background` - Set a slide's background color (creates or updates)\n- `figma_get_text_styles` - Get all local text styles with IDs, fonts, and sizes\n- `figma_set_slides_view_mode` - Toggle grid vs. single-slide view\n- `figma_focus_slide` - Navigate to a specific slide\n\n**📖 [Detailed Tool Documentation](docs\u002Ftools.md)**\n\n---\n\n## 📖 Example Prompts\n\n### Cloud Mode (Web AI Clients)\n```\nConnect to my Figma plugin so we can start designing\nPair with my Figma file and create a login form with email, password, and submit button\nSet up a brand color token collection with Light and Dark modes\n```\n\n### Plugin Debugging\n```\nNavigate to my Figma plugin and show me any console errors\nWatch the console for 30 seconds while I test my plugin\nGet the last 20 console logs\n```\n\n### Design System Extraction\n```\nGet all design variables from https:\u002F\u002Ffigma.com\u002Fdesign\u002Fabc123\nExtract color styles and show me the CSS exports\nGet the Button component with a visual reference image\nGet the Badge component in reconstruction format for programmatic creation\n```\n\n### Design Creation (Local Mode + Cloud Mode)\n```\nCreate a success notification card with a checkmark icon and message\nDesign a button component with hover and disabled states\nBuild a navigation bar with logo, menu items, and user avatar\nCreate a modal dialog with header, content area, and action buttons\nArrange these button variants into a component set\nOrganize my icon variants as a proper component set with the purple border\n```\n\n### Variable Management (Local Mode + Cloud Mode)\n```\nCreate a new color collection called \"Brand Colors\" with Light and Dark modes\nAdd a primary color variable with value #3B82F6 for Light and #60A5FA for Dark\nRename the \"Default\" mode to \"Light Theme\"\nAdd a \"High Contrast\" mode to the existing collection\n```\n\n### Design-Code Parity\n```\nCompare the Button component in Figma against our React implementation\nCheck design parity for the Card component before sign-off\nGenerate component documentation for the Dialog from our design system\n```\n\n### FigJam Boards\n```\nCreate a retrospective board with \"Went Well\", \"To Improve\", and \"Action Items\" columns\nBuild a user flow diagram for the checkout process with decision points\nRead this brainstorming board and summarize the key themes\nGenerate an affinity map from these meeting notes\nCreate a comparison table of our three platform options\n```\n\n### Slides Presentations\n```\nList all slides and tell me which ones are skipped\nAdd a new slide with the title \"Thank You\" in 72px text\nSet a DISSOLVE transition on the first slide with 0.5 second duration\nDuplicate slide 5 for an A\u002FB comparison\nSkip slides 8 and 9 — they're not ready for the client presentation\nReorder my slides so the conclusion comes before Q&A\n```\n\n### Visual Debugging\n```\nTake a screenshot of the current Figma canvas\nNavigate to this file and capture what's on screen\n```\n\n**📖 [More Use Cases & Examples](docs\u002Fuse-cases.md)**\n\n---\n\n## 🎨 AI-Assisted Design Creation\n\n> **Requires Desktop Bridge:** This feature works with Local Mode (NPX or Local Git) and [Cloud Mode](#-cloud-mode-web-ai-clients). Remote SSE without Cloud Mode pairing is read-only and cannot create or modify designs.\n\nOne 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.\n\n### What's Possible\n\n**Create original designs from scratch:**\n```\nDesign a login card with email and password fields, a \"Forgot password?\" link,\nand a primary Sign In button. Use 32px padding, 16px border radius, and subtle shadow.\n```\n\n**Leverage existing component libraries:**\n```\nBuild a dashboard header using the Avatar component for the user profile,\nButton components for actions, and Badge components for notifications.\n```\n\n**Generate complete page layouts:**\n```\nCreate a settings page with a sidebar navigation, a main content area with form fields,\nand a sticky footer with Save and Cancel buttons.\n```\n\n### How It Works\n\n1. **You describe what you want** in plain English\n2. **The AI searches your component library** using `figma_search_components` to find relevant building blocks\n3. **Components are instantiated** with proper variants and properties via `figma_instantiate_component`\n4. **Custom elements are created** using the full Figma Plugin API via `figma_execute`\n5. **Visual validation** automatically captures screenshots and iterates until the design looks right\n\n### Who Benefits\n\n| Role | Use Case |\n|------|----------|\n| **Designers** | Rapidly prototype ideas without manual frame-by-frame construction. Explore variations quickly by describing changes. |\n| **Developers** | Generate UI mockups during planning discussions. Create visual specs without switching to design tools. |\n| **Product Managers** | Sketch out feature concepts during ideation. Communicate visual requirements directly to stakeholders. |\n| **Design System Teams** | Test component flexibility by generating compositions. Identify gaps in component coverage. |\n| **Agencies** | Speed up initial concept delivery. Iterate on client feedback in real-time during calls. |\n\n### Example Workflows\n\n**Brand New Design:**\n> \"Create a notification toast with an icon on the left, title and description text, and a dismiss button. Use our brand colors.\"\n\nThe AI creates custom frames, applies your design tokens, and builds the component from scratch.\n\n**Component Composition:**\n> \"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.\"\n\nThe AI searches your library, finds the exact components, and assembles them with proper spacing and alignment.\n\n**Design Iteration:**\n> \"The spacing feels too tight. Increase the gap between sections to 24px and make the heading larger.\"\n\nThe AI modifies the existing design, takes a screenshot to verify, and continues iterating until you're satisfied.\n\n### Visual Validation\n\nThe AI automatically follows a validation workflow after creating designs:\n\n1. **Create** → Execute the design code\n2. **Screenshot** → Capture the result\n3. **Analyze** → Check alignment, spacing, and visual balance\n4. **Iterate** → Fix any issues detected\n5. **Verify** → Final screenshot to confirm\n\nThis ensures designs aren't just technically correct—they *look* right.\n\n---\n\n## 🎨 Desktop Bridge Plugin (Recommended Connection)\n\nThe **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.\n\n### Setup\n\n1. Open Figma Desktop (normal launch — no debug flags needed)\n2. Go to **Plugins → Development → Import plugin from manifest...**\n3. Select `~\u002F.figma-console-mcp\u002Fplugin\u002Fmanifest.json` — the stable path the MCP server keeps up to date (`npx figma-console-mcp --print-path` prints 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 select `figma-desktop-bridge\u002Fmanifest.json` from the clone instead.\n4. Run the plugin in your Figma file — it auto-connects via WebSocket (scans ports 9223–9232)\n5. Ask your AI: \"Check Figma status\" to verify the connection\n\n> **One-time import.** Once imported, the plugin stays in your Development plugins list. Just run it whenever you want to use the MCP.\n\n**📖 [Desktop Bridge Documentation](figma-desktop-bridge\u002FREADME.md)**\n\n### Capabilities\n\n**Read Operations:**\n- Variables without Enterprise API\n- Reliable component descriptions (bypasses API bugs)\n- Multi-mode support (Light\u002FDark\u002FBrand variants)\n- Real-time selection tracking and document change monitoring\n\n**Write Operations:**\n- **Design Creation** - Create frames, shapes, text, components via `figma_execute`\n- **Variable Management** - Full CRUD operations on variables and collections\n- **Mode Management** - Add and rename modes for multi-theme support\n\n### How the Transport Works\n\n- The MCP server communicates via **WebSocket** through the Desktop Bridge plugin\n- The server tries port 9223 first, then automatically falls back through ports 9224–9232 if needed\n- The plugin scans all ports in the range and connects to every active server it finds\n- All 130 tools work through the WebSocket transport\n\n**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).\n\n**Environment variables:**\n- `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.\n- `FIGMA_WS_HOST` — Override the WebSocket server bind address (default: `localhost`). Set to `0.0.0.0` when running inside Docker so the host machine can reach the MCP server.\n- `FIGMA_MCP_HTTP_PORT` — Also serve MCP over Streamable HTTP at `http:\u002F\u002F127.0.0.1:\u003Cport>\u002Fmcp`, so other local clients can share this server's Figma connection. Off by default. See [Sharing one server over HTTP](#sharing-one-server-over-http-optional).\n- `FIGMA_MCP_HTTP_TOKEN` — With `FIGMA_MCP_HTTP_PORT`, require `Authorization: Bearer \u003Ctoken>` on every HTTP request.\n\n**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](#-cloud-mode-web-ai-clients) for details.\n\n**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.\n\n---\n\n## 🔀 Multi-Instance Support (v1.10.0)\n\nFigma 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.\n\n### The Problem (Before v1.10.0)\n\nWhen 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.\n\n### How It Works Now\n\n- The server tries port **9223** first (the default)\n- If that port is already taken, it automatically tries **9224**, then **9225**, and so on up to **9232**\n- The Desktop Bridge plugin in Figma connects to **all** active servers simultaneously\n- Every server instance receives real-time events (selection changes, document changes, console logs)\n- `figma_get_status` shows which port you're on and lists other active instances\n\n### What This Means for You\n\n| Scenario | Before v1.10.0 | Now |\n|----------|----------------|-----|\n| Two Claude Desktop tabs (Chat + Code) | Second tab crashes | Both work independently |\n| Multiple CLI terminals on different projects | Only one can run | All run simultaneously |\n| Claude Desktop + Claude Code CLI | Port conflict | Both coexist |\n\n### Do I Need to Do Anything?\n\n**Nothing.** Multi-instance support is fully automatic:\n- Each MCP server claims the next available port in the range\n- The Desktop Bridge plugin scans all ports and connects to every active server\n- Orphaned processes from closed tabs are automatically cleaned up on startup\n- No manual port management — the plugin already scans the whole range\n\n(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.)\n\n### Sharing one server over HTTP (optional)\n\nNormally 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:\u002F\u002F127.0.0.1:\u003Cport>\u002Fmcp`, and lists that URL in its port file (`mcpHttpUrl`) and in `figma_get_status` (`transport.mcpHttp`).\n\n```bash\n# Start a shared server in a terminal (keep it open)\nFIGMA_ACCESS_TOKEN=figd_... FIGMA_MCP_HTTP_PORT=9300 npx -y figma-console-mcp@latest\n\n# Point clients at it, e.g. Claude Code:\nclaude mcp add --transport http figma-console-shared http:\u002F\u002F127.0.0.1:9300\u002Fmcp\n```\n\n- **Loopback only.** It binds `127.0.0.1` and refuses requests whose `Host` isn't localhost (DNS rebinding) or that come from a non-localhost browser page. Set `FIGMA_MCP_HTTP_TOKEN` to also require a bearer token.\n- **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.\n- **The endpoint lives as long as the server process.** When an MCP client spawned the server, closing that client ends it.\n- Avoid port 3845, which Figma's own Dev Mode MCP server uses, and the bridge range 9223–9232.\n\n---\n\n## 🧩 MCP Apps (Experimental)\n\nFigma Console MCP includes support for **MCP Apps** — rich interactive UI experiences that render directly inside any MCP client that supports the [MCP Apps protocol extension](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fanthropic-cookbook\u002Ftree\u002Fmain\u002Fmisc\u002Fmodel_context_protocol\u002Fext-apps). Built with the official [`@modelcontextprotocol\u002Fext-apps`](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@modelcontextprotocol\u002Fext-apps) SDK.\n\n> **What are MCP Apps?** Traditional MCP tools return text or images to the AI. MCP Apps go further — they render interactive HTML interfaces inline in the chat, allowing users to browse, filter, and interact with data directly without consuming AI context.\n\n### Token Browser\n\nAn interactive design token explorer.\n\n**Usage:** Ask Claude to \"browse the design tokens\" or \"show me the design tokens\" while connected to a Figma file.\n\n**Features:**\n- Browse all tokens organized by collection with expandable sections\n- Filter by type (Colors, Numbers, Strings) and search by name\u002Fdescription\n- Per-collection mode columns (Light, Dark, Custom) matching Figma's Variables panel\n- Color swatches, alias resolution, and click-to-copy on any value\n- Works without Enterprise plan via Desktop Bridge (local mode)\n\n### Design System Dashboard\n\nA Lighthouse-style health scorecard that audits your design system across six categories.\n\n**Usage:** Ask Claude to \"audit the design system\" or \"show me design system health\" while connected to a Figma file.\n\n**Features:**\n- Overall weighted score (0–100) with six category gauges: Naming, Tokens, Components, Accessibility, Consistency, Coverage\n- Expandable category sections with individual findings, severity indicators, and actionable details\n- Diagnostic locations linking findings to specific variables, components, or collections\n- Tooltips explaining each check's purpose and scoring criteria\n- Refresh button to re-run the audit without consuming AI context\n- Pure scoring engine with no external dependencies — all analysis runs locally\n\n**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 with no `ENABLE_MCP_APPS` flag; results cache for 5 minutes (`forceRefresh` to re-crawl).\n\n**Enabling MCP Apps:**\n\nMCP Apps are enabled by default in the setup configurations above (via `\"ENABLE_MCP_APPS\": \"true\"`). If you set up before v1.10.0 and don't have this in your config, add it to your `env` section:\n\n```json\n\"env\": {\n  \"FIGMA_ACCESS_TOKEN\": \"figd_YOUR_TOKEN_HERE\",\n  \"ENABLE_MCP_APPS\": \"true\"\n}\n```\n\n> **Note:** MCP Apps require an MCP client with [ext-apps protocol](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fanthropic-cookbook\u002Ftree\u002Fmain\u002Fmisc\u002Fmodel_context_protocol\u002Fext-apps) support (e.g. Claude Desktop). This feature is experimental and the protocol may evolve.\n\n### Future MCP Apps Roadmap\n\nPlanned MCP Apps:\n\n- **Component Gallery** — Visual browser for searching and previewing components with variant exploration\n- **Style Inspector** — Interactive panel for exploring color, text, and effect styles with live previews\n- **Variable Diff Viewer** — Side-by-side comparison of token values across modes and branches\n\nThe architecture supports adding new apps with minimal boilerplate — each app is a self-contained module with its own server-side tool registration and client-side UI.\n\n---\n\n## 🚀 Advanced Topics\n\n- **[Setup Guide](docs\u002Fsetup.md)** - Complete setup guide for all MCP clients\n- **[Self-Hosting](docs\u002Fself-hosting.md)** - Deploy your own instance on Cloudflare\n- **[Architecture](docs\u002Farchitecture.md)** - How it works under the hood\n- **[OAuth Setup](docs\u002Foauth-setup.md)** - Configure OAuth for self-hosted deployments\n- **[Troubleshooting](docs\u002Ftroubleshooting.md)** - Common issues and solutions\n\n---\n\n## 🤝 vs. Figma's Official MCP Server\n\nThe two servers are complementary, and both can run in the same MCP client.\n\n**Figma's official MCP server** is hosted by Figma. It focuses on design-to-code context (`get_design_context`), Code Connect, library search, and creating content in Figma: it writes through `use_figma`, creates files, generates FigJam diagrams, generates code layers, and works with shaders.\n\n**Figma Console MCP** focuses on design-system operations:\n- Deterministic checks: design-code parity, accessibility (canvas and code), and design-system health\n- Token export in 10 formats and DTCG import with round-trip variable IDs\n- Variable reads and writes on any Figma plan through the Desktop Bridge plugin\n- Component documentation with design and code history, and version-history diffs\n- Codebase → design system extraction\n- Plugin console capture, selection tracking, and multi-file execution (Local Mode)\n\n**📖 [Full comparison](https:\u002F\u002Fdocs.figma-console-mcp.southleft.com\u002Ffigma-mcp-vs-figma-console-mcp)**\n\n---\n\n## 🛤️ Roadmap\n\n**Current Status:** v1.46.0 (Stable) - Production-ready. Latest: shaders applied with properties set by name, `figma_set_layout` for auto layout and grid layout, OKLCH\u002FDisplay P3 and other CSS colors on fills and strokes, and text wrap style and variable-font axes in `figma_set_text` (server-only). On top of v1.45.1's `figma_get_code_layers` no longer hangs on a file in a background window, and the tool docs were audited against every tool's real parameters (server-only). On top of v1.45.0's Motion tools — apply, read, remove and export Figma Motion animations, manage custom animation styles, write Timing and Easing variables from token files, and find code layers (server-only). On top of v1.44.2's Cloud sign-in requests `library_assets:read`, so component lookups by key work over OAuth (server-only). On top of v1.44.1's Cloud Mode accepting personal access tokens without the Current user scope, 403 errors name the missing scope, and setup guides for Codex, Gemini CLI and Antigravity (server-only). On top of v1.44.0's opt-in Streamable HTTP endpoint for Local Mode (`FIGMA_MCP_HTTP_PORT`, loopback only, optional bearer token) so several local clients share one server and its Figma connection (server-only). On top of v1.43.0's `@modelcontextprotocol\u002Fsdk` 1.32.1 and `zod` 4 clear all seven production security advisories, with tool behavior unchanged and Gemini-safe schemas (server-only). On top of v1.42.1's commands to a plugin stuck on a timed-out script fail fast with a busy message instead of queuing behind it, port-exhaustion eviction ends the least recently used server instead of the oldest, and `figma_execute` accepts up to a 300 s timeout (server-only). On top of v1.42.0's `figma_get_comments` returning compact threads (root + replies, newest activity first) with `node_id`, `thread_id` and `since` filters and `limit`\u002F`offset` paging, 30 threads by default; summary counts are per thread (server-only, PR #139). On top of v1.41.5's component-set analysis reporting gradient\u002Fimage\u002Fpaint-opacity, corner radius, typography and label text, swapped spacing tokens, nested layer geometry and vector shape changes (re-import the plugin). On top of v1.41.4's variant background\u002Fstroke and auto-layout changes. On top of v1.41.3's component-set analysis reporting changes inside nested layers (instance swaps, nested token changes, opacity on the variant itself) and no longer reports a layer hidden in every variant as a change (re-import the plugin). On top of v1.41.2's design-system summary and `figma_get_token_values` report the file's tokens (they always reported 0) (server-only). On top of v1.41.1's component-set analysis reports real variant differences (Figma's default variant, size and layer changes), component loading no longer times out on large files (throttled plugin timers), relevance-ranked component search, and `figma_get_variables` paging that works with `format: \"full\"` (re-import the plugin for the component fixes). On top of v1.41.0's Cloud Mode sign-in hardening (per-session tokens on `\u002Fsse`, single-use authorization codes bound to client, redirect URI and PKCE, a consent page for unrecognized destinations), a script-execution fix in the accessibility scanner, `figma_import_tokens` refusing empty imports and scoping `replace` deletes to imported collections, `figma_arrange_component_set` no longer deleting other arranged sets, live variable reads for token export\u002Fimport, Windows orphan-server exit (PR #140), and `fileKey` for the Slots tools (PR #112) (server-only, no plugin re-import). On top of v1.40.9's composed colors (a color variable set to another color at an opacity, \"grey\u002F900 at 50%\") export and import with the link to the primitive intact — `color-mix()` in CSS\u002FTailwind v4, `rgba()` in SCSS, an alpha modifier in Tokens Studio, the resolved color plus the composition in DTCG — where the export previously failed or wrote `[object Object]` (server-only, no plugin re-import). On top of v1.40.8's min\u002Fmax width and height survive every way of extracting a component as JSON — the design system kit, the reconstruction format and `figma_get_file_data` now carry them, design-code parity compares them, and the reconstruction format returns real geometry again instead of 50×50 placeholders when the plugin is connected (server-only, no plugin re-import). On top of v1.40.7's clearer Color Tokens table in generated docs — layers revealed by a boolean property are printed once under that property, and stroke\u002Ffill rows name the nested instance they belong to (server-only, no plugin re-import). On top of v1.40.6's overrides in extended variable collections are visible (previously reported as nonexistent), and a third round of generated-doc fidelity fixes — radius tokens read per corner, boolean props compared in Design-Code Parity, source links pinned to a commit, hidden layers linked to the property that shows them (server-only, no plugin re-import). On top of v1.40.5's clean dependency audit for the npm package — Worker-only dependencies (`@cloudflare\u002Fpuppeteer`, which pulled in a high-severity `extract-zip` advisory with no upstream fix, and `agents`) no longer install for npm users, so `npm install figma-console-mcp` audits at 0 vulnerabilities and is 64 MB instead of 173 MB; the server also reports its real version to MCP clients instead of `0.1.0` (server-only, no plugin re-import). On top of v1.40.4's fixes found by live-testing v1.40.3 on hard production components — tools given a `fileUrl` now read variables, descriptions and annotations from THAT file rather than whichever file is active (previously every token name could vanish, or on an id collision come from the wrong file; `figma_get_component` could return a different component), a tool result over 16 MB no longer disconnects the server, anatomy labels sizing by the layout's real axes, and the icon\u002Ftypography\u002Fanatomy output stays readable on large components (server-only, no plugin re-import). On top of v1.40.3's fidelity fixes for generated component docs on harder components — hidden layers are labeled instead of documented as rendered, one-sided borders report the weight that actually renders, typography and layer structure are compared across every variant instead of read from the first, gradients\u002Fshadows\u002Fopacity are no longer silently dropped, truncated trees say so, and `SLOT` properties are listed (server-only, no plugin re-import). On top of v1.40.2's data-loss fix for `figma_export_tokens` — with a different file active in Figma than intended, an export could replace a real token file with an empty one (or with another file's tokens) and report success; exports now refuse to write when a requested collection is missing, when the export is empty, when the target was generated from a different Figma file, or when overwriting would destroy tokens the export doesn't manage, and `strategy: \"merge\"` — documented as preserving code-only tokens but never implemented — is now a genuinely safe default (server-only, no plugin re-import). On top of v1.40.1's accuracy fixes for generated component docs across variants — a descendant's fill (typically an icon's) could be documented as a variant's Background, Color Token headings kept only a property literally named `Variant`, spacing was read from the first variant alone, and icons were only detected by layer name — plus `figma_export_tokens` accepting a file path as `outputPath` instead of failing with a raw `EEXIST` or silently creating a directory (server-only, no plugin re-import). On top of v1.40.0's design system extraction from production codebases — seven Local-Mode `figma_ds_*` tools that scan one or more apps (framework\u002Fstyling\u002Fvendor detection, usage-ranked component inventory classified vendored\u002Fwrapped\u002Fpure-vendor\u002Fbespoke, variant inference from real call sites, duplicate detection, and an architecture pass separating UI-kit specializations from the missing generic primitives), mine the de-facto styling into DTCG tokens with per-token provenance (multi-mode CSS custom properties, SCSS, Tailwind config, shadcn HSL triples, utility-class frequency mining valued from the app's own theme), scaffold the design-system package with showcase docs pages, wire a fresh Storybook workshop to the app's real theme layers and fonts, deep-extract components for porting with CSF3 story scaffolds, verify with deterministic fidelity evals, and persist porting progress across sessions — the extracted tokens import straight into Figma variables via `figma_import_tokens`. On top of v1.39.1's fix for a plugin-update banner that could never be cleared — an older server instance nagging a newer plugin to re-import, which only ever installs the same or a newer plugin. On top of v1.39.0's multi-file execution — `figma_execute_across_files` runs one script against several Desktop Bridge-connected files concurrently (four files x 2s of work in ~3s, not ~8s), and `figma_execute` takes an optional `fileKey` to target a single file without moving the active file or releasing target lock; targeting must be explicit (`fileKeys` or `allFiles: true`), so nothing fans out to files you did not name. From community PR #107 by @Wolfr. Ships with a relay fix: `handleResult()` in the plugin's ui.html rebuilt each response field by field and silently dropped `resultAnalysis` and `fileContext`, so the `resultAnalysis.warning` check that `figma_execute`'s own description tells callers to perform has never been possible (re-import `manifest.json` for those two fields; everything else works without it). On top of v1.38.2's connection-stability fix — the server's own orphan reaper was terminating healthy MCP servers because its liveness probe used an IPv4 literal while the server binds the IPv6 loopback, which turned every kill-safety gate into a rubber stamp; this was the cause of recurring \"Server disconnected\" errors across all MCP clients. Alongside v1.38.1's fix for the shared-library variable tools, which had silently reported zero collections since v1.29.0 and reported failed imports as successes. On top of v1.38.0's ongoing component changelogs in generated docs — `figma_generate_component_doc` takes an opt-in `history` parameter that pulls per-component **design history** from Figma version history (each version diffed and scoped to that component, so renames, added properties, and token bindings show up as rows) alongside **code history** from `git log` on the component's source files, rendered as a `## History` section with design, code, and release-note tables. Prefers labeled versions, falls back to auto-saves when a file has none, and is off by default so existing calls are unchanged (server-only, no plugin re","Figma Console MCP 是一个面向设计系统的 Model Context Protocol（MCP）服务器，实现 AI 助手与 Figma 的深度双向集成。它支持从 Figma 中提取设计变量、组件和样式，也支持将代码库中的真实样式反向生成设计令牌并同步回 Figma；提供确定性校验（设计-代码一致性、无障碍、设计系统健康度）、可视化调试、UI 创建及变量全生命周期管理。技术上基于 TypeScript，兼容最新 Figma API 特性（如 OKLCH\u002FP3 色彩、网格布局、可变字体、动画等），以结构化数据暴露设计系统语义，不绑定前端框架。适用于设计工程化团队、AI 增强的设计协作、设计系统治理与跨职能对齐场景。",2,"2026-11-24 04:34:58","trending"]