# Figma Console MCP

> Lets agents read and write Figma: extract variables, components and styles, create and edit screens, FigJam boards and slides on the canvas, and run accessibility checks and design-system audits. Needs a Figma personal access token, the Figma desktop app, Node.js and the companion plugin.

- Type: MCP
- Repository: https://github.com/southleft/figma-console-mcp
- Page: https://hebbmind.com/mcp/figma-console-mcp
- Stars: 3490
- Professions: [Frontend](https://hebbmind.com/tools.md?profession=frontend), [Product / Projects](https://hebbmind.com/tools.md?profession=product), [Design](https://hebbmind.com/tools.md?profession=design)
- Tags: design-files, ui-design, ui-components, figma
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
claude 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
```

### Codex

```bash
codex mcp add figma-console --env FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE --env ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest
```

## README

> The content below comes from the upstream repository https://github.com/southleft/figma-console-mcp . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

# Figma Console MCP Server

[![MCP](https://img.shields.io/badge/MCP-Compatible-blue)](https://modelcontextprotocol.io/)
[![npm](https://img.shields.io/npm/v/figma-console-mcp)](https://www.npmjs.com/package/figma-console-mcp)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Documentation](https://img.shields.io/badge/docs-docs.figma--console--mcp.southleft.com-0D9488)](https://docs.figma-console-mcp.southleft.com)
[![Sponsor](https://img.shields.io/badge/Sponsor-southleft-ea4aaa?logo=github-sponsors&logoColor=white)](https://github.com/sponsors/southleft)

> **Your design system as an API.** A design-system-focused Model Context Protocol server for Figma. It works in both directions (Figma ⇄ code), **writes to Figma**, and runs **deterministic checks** for design-code parity, accessibility, and design-system health. It hands the AI exact tokens, variants, bindings, and states as structured data rather than prescribing a framework or house style, so generated code follows your team's own stack and conventions.

> **🆕 v2.5: Token exports resolve variables from other libraries:** When your variables alias a shared library (a theme on top of a primitives library), `figma_export_tokens` and the Token Browser read those library variables through the Desktop Bridge, so CSS, SCSS, Tailwind, Style Dictionary and the other formats write real values instead of skipping the tokens, and DTCG carries the library collections as their own sets. Read-only: import never changes library variables. No plugin re-import. [See what's new →](https://github.com/southleft/figma-console-mcp/blob/HEAD/CHANGELOG.md#251---2026-11-30)

## What is this?

Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:

- **🎨 Design system extraction** - Pull variables, components, and styles
- **🧭 Design-system adherence** - Map each UI need to a real component (and each part, like a card's image), mark what the system lacks with an explained gap note where it belongs instead of inventing it, and audit generated Figma frames and code for look-alikes, off-system components and values not bound to tokens
- **⚡ Token-efficient by default** - Tools load in toolsets: a core set is always on and the rest switch on when a task needs them, cutting tool definitions from ~60k to ~9k tokens per message. Compact results and Skills loaded on demand
- **🔗 Dev resources & impact analysis** - Link components to their code, Storybook and docs in bulk; see where a style, variable or component is used before you change it
- **🧬 Codebase → design system extraction** - Scan a production codebase, mine its de-facto styling into DTCG tokens with per-token provenance, scaffold a design-system package with a wired Storybook workshop, and gate it with deterministic fidelity evals — then round-trip the tokens into Figma variables (Local Mode)
- **🔁 Bidirectional token sync** - Export Figma variables to DTCG JSON (legacy or 2025.10 dialect) + 9 more formats; push code-side edits back to Figma with full apply — creates, renames, alias re-targeting, and replace-gated deletes. Replaces Style Dictionary and Tokens Studio's export pipeline.
- **📸 Visual debugging** - Take screenshots for context
- **✏️ Design creation** - Create UI components, frames, and layouts directly in Figma — including one-call component-set creation from a variant axes matrix
- **🖼️ Icons, images and asset export** - Import SVG icons (one, a batch, or a whole folder) as editable vectors, icon components and variant sets built from file names, with color bound to a token; re-imports update icons in place. The AI can also write the SVG for a new icon or illustration. Place PNG, JPEG and GIF images, and export renders, code-ready icon SVGs and original images into your repo
- **🌐 Web pages as editable layers** - Capture a live site, your localhost dev server or an HTML string as Figma frames at several viewport widths: auto layout only where it reproduces the page, real text, images and vectors, and colors, spacing and type bound to your file's tokens, with the values your system doesn't cover listed instead of invented
- **🔧 Variable management** - Create, update, rename, and delete design tokens
- **🕰 Version history & time-series awareness** - List versions, diff snapshots, generate markdown changelogs, trace property/variant introduction via binary-search blame, and fold per-component design + git history into generated component docs
- **⚡ Real-time monitoring** - Watch console logs from the Desktop Bridge plugin
- **📌 FigJam boards** - Create stickies, flowcharts, tables, and code blocks on collaborative boards, and draw whole diagrams from Mermaid or JSON (flowchart, state, sequence, ER, gantt, architecture) that redraw in place, keeping what the team added, and read back as Mermaid
- **🎞️ Slides presentations** - Build and manage Figma Slides decks programmatically
- **♿ Accessibility scanning** - 14 WCAG design checks with conformance level tagging, component scorecards, axe-core code scanning, design-to-code parity
- **🔗 Code Connect** - Generate Code Connect files from your real code components (props, variants and value mapping, never an invented prop), map Figma instances to code snippets before writing code, audit coverage and drift as a CI gate, and preview and publish through your repo's own Code Connect CLI after a dry run
- **🔍 Design-code parity & component docs** - Deterministic comparison of a Figma component with its code (visual, spacing, typography, tokens, component API, accessibility), and generated component documentation with per-variant tokens and an optional design + git changelog
- **📋 Design-system health audits** - Lighthouse-style scored audit across naming, tokens, component metadata, accessibility, consistency, and coverage — available as a plain tool for any MCP client (with per-finding auto-fix guidance) and as a visual dashboard app
- **🛡 Cross-MCP identity** - Every tool response carries `_mcp: "figma-console-mcp"` and errors are prefixed `[figma-console-mcp]` so attribution stays unambiguous in agents running multiple Figma MCPs
- **☁️ Cloud Write Relay** - Web AI clients (Claude.ai, v0, Replit) can design in Figma via cloud pairing
- **🔄 Four ways to connect** - Remote SSE, Cloud Mode, NPX, or Local Git

---

## ⚡ Quick Start

### Choose Your Setup

**First, decide what you want to do:**

| I want to... | Setup Method | Time |
|--------------|--------------|------|
| **Create and modify designs with AI** | [NPX Setup](#-npx-setup-recommended) (Recommended) | ~10 min |
| **Design from the web** (Claude.ai, v0, Replit, Lovable) | [Cloud Mode](#-cloud-mode-web-ai-clients) | ~5 min |
| **Contribute to the project** | [Local Git Setup](#for-contributors-local-git-mode) | ~15 min |
| **Just explore my design data** (read-only) | [Remote SSE](#-remote-sse-read-only-exploration) | ~2 min |

### ⚠️ Important: Capability Differences

| Capability | NPX / Local Git | Cloud Mode | Remote SSE |
|------------|-----------------|------------|------------|
| Read design data | ✅ | ✅ | ✅ |
| **Create components & frames** | ✅ | ✅ | ❌ |
| **Edit existing designs** | ✅ | ✅ | ❌ |
| **Manage design tokens/variables** | ✅ | ✅ | ❌ |
| **FigJam boards (stickies, flowcharts, Mermaid diagrams)** | ✅ | ✅ | ❌ |
| Real-time monitoring (console, selection) | ✅ | ❌ | ❌ |
| Codebase → design system extraction (`figma_ds_*`) | ✅ | ❌ | ❌ |
| Code Connect: publish through your repo's CLI | ✅ | ❌ (generate, map and audit from files you pass) | ❌ |
| Desktop Bridge plugin | ✅ | ✅ | ❌ |
| Requires Node.js | Yes | **No** | No |
| **Total tools available** | **158** | **127** after pairing | Read-only subset |

> **Bottom line:** Remote SSE is **read-only** until you pair the plugin. **Cloud Mode** unlocks write access (127 tools) from web AI clients without Node.js. NPX/Local Git gives the full 158 tools with real-time monitoring.

---

### 🚀 NPX Setup (Recommended)

**Best for:** Designers who want full AI-assisted design capabilities.

**What you get:** All 158 tools including design creation, variable management, and component instantiation.

#### Prerequisites

- [ ] **Node.js 18+** — Check with `node --version` ([Download](https://nodejs.org))
- [ ] **Figma Desktop** installed (not just the web app)
- [ ] **An MCP client** (Claude Code, Cursor, Windsurf, Claude Desktop, etc.)

#### Step 1: Get Your Figma Token

1. Go to [Manage personal access tokens](https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens) in Figma Help
2. Follow the steps to **create a new personal access token**
3. Enter description: `Figma Console MCP`
4. 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://docs.figma-console-mcp.southleft.com/setup#step-1-get-your-figma-token-2-min)
5. **Copy the token** — you won't see it again! (starts with `figd_`)

#### Step 2: Configure Your MCP Client

**Claude Code (CLI):**
```bash
claude mcp add figma-console -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest
```

**OpenAI Codex (CLI):**
```bash
codex mcp add figma-console --env FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE --env ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest
```
Then set `startup_timeout_sec = 60` and `tool_timeout_sec = 300` for it in `~/.codex/config.toml` (Codex's 10 s / 60 s defaults are too short). The Codex app and IDE extension share this config. [Full Codex setup →](https://docs.figma-console-mcp.southleft.com/setup#-openai-codex)

**Gemini CLI:**
```bash
gemini mcp add -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true figma-console npx -y figma-console-mcp@latest
```

**Google Antigravity (IDE, CLI, app):** add the JSON below to `~/.gemini/config/mcp_config.json`, plus `"timeoutSeconds": 300` in the server entry. [Full Antigravity setup →](https://docs.figma-console-mcp.southleft.com/setup#-google-antigravity)

**Cursor / Windsurf / Claude Desktop:**

Add to your MCP config file (see [Where to find your config file](#-where-to-find-your-config-file) below):

```json
{
  "mcpServers": {
    "figma-console": {
      "command": "npx",
      "args": ["-y", "figma-console-mcp@latest"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
        "ENABLE_MCP_APPS": "true"
      }
    }
  }
}
```

#### 📂 Where to Find Your Config File

If you're not sure where to put the JSON configuration above, here's where each app stores its MCP config:

| App | macOS | Windows |
|-----|-------|---------|
| **Claude Desktop** | `~/Library/Application Support/Claude/claude_desktop_config.json` | `%APPDATA%\Claude\claude_desktop_config.json` |
| **Claude Code (CLI)** | `~/.claude.json` | `%USERPROFILE%\.claude.json` |
| **Cursor** | `~/.cursor/mcp.json` | `%USERPROFILE%\.cursor\mcp.json` |
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | `%USERPROFILE%\.codeium\windsurf\mcp_config.json` |
| **OpenAI Codex** (app, CLI, IDE) | `~/.codex/config.toml` (TOML, [see format](https://docs.figma-console-mcp.southleft.com/setup#-openai-codex)) | `%USERPROFILE%\.codex\config.toml` |
| **Gemini CLI** | `~/.gemini/settings.json` | `%USERPROFILE%\.gemini\settings.json` |
| **Google Antigravity** (IDE, CLI, app) | `~/.gemini/config/mcp_config.json` | `%USERPROFILE%\.gemini\config\mcp_config.json` |

> **Tip for designers:** The `~` symbol means your **home folder**. On macOS, that's `/Users/YourName/`. On Windows, it's `C:\Users\YourName\`. You can open these files in any text editor — even TextEdit or Notepad.
>
> **Can't find the file?** If it doesn't exist yet, create it. The app will pick it up on its next restart. Make sure the entire file is valid JSON (watch for missing commas or brackets).
>
> **Claude Code users:** You can skip manual editing entirely. Just run the `claude mcp add` command above and it handles everything for you.

#### Step 3: Connect to Figma Desktop

**Desktop Bridge Plugin:**
1. Open Figma Desktop normally (no special flags needed) and open a file
2. Go to **Plugins → Development → Import plugin from manifest...**
3. Select `~/.figma-console-mcp/plugin/manifest.json` (stable path, auto-created by the MCP server). Run `npx figma-console-mcp --print-path` to print the exact path for your machine.
4. Run the plugin in your Figma file — it scans ports 9223–9232 and connects automatically to your running MCP server

> **Can't see the folder in the import dialog?** `.figma-console-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.

> **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 `~/.figma-console-mcp/plugin/` on every startup, but Figma keeps using its cached copy until you re-import the manifest.
>
> **Re-importing is _required_ only when a release notes entry says so** — typically when the plugin adds a new method the server needs (e.g. v1.22.4, v1.10.0). The plugin files last changed in v1.41.5; if your imported plugin predates that, re-import once. The plugin shows an update banner when the server bundles a newer plugin than the one running. For most upgrades the new server stays wire-compatible with the previous plugin, and re-importing is **optional**: you'll still get every functional change, just not the cosmetic plugin-side touches (status-pill copy, `pluginVersion` reporting).
>
> When you do re-import: Plugins → Manage plugins → re-import `~/.figma-console-mcp/plugin/manifest.json`. The stable path never changes, so it's a one-click step.

#### Step 4: Restart Your MCP Client

Restart your MCP client to load the new configuration.

#### Step 5: Test It!

```
Check Figma status
```
→ Should show connection status with active WebSocket transport

```
Create a simple frame with a blue background
```
→ Should create a frame in Figma (confirms write access!)

**📖 [Complete Setup Guide](https://github.com/southleft/figma-console-mcp/blob/HEAD/docs/setup.md)**

---

### For Contributors: Local Git Mode

**Best for:** Developers who want to modify source code or contribute to the project.

**What you get:** Same 158 tools as NPX, plus full source code access.

#### Quick Setup

```bash
# Clone and build
git clone https://github.com/southleft/figma-console-mcp.git
cd figma-console-mcp
npm install
npm run build:local
```

#### Configure Your MCP Client

Add to your config file (see [Where to find your config file](#-where-to-find-your-config-file)):

```json
{
  "mcpServers": {
    "figma-console": {
      "command": "node",
      "args": ["/absolute/path/to/figma-console-mcp/dist/local.js"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
        "ENABLE_MCP_APPS": "true"
      }
    }
  }
}
```

Then follow [NPX Steps 3-5](#step-3-connect-to-figma-desktop) above.

**📖 [Complete Setup Guide](https://github.com/southleft/figma-console-mcp/blob/HEAD/docs/setup.md)**

---

### 📡 Remote SSE (Read-Only Exploration)

**Best for:** Quickly evaluating the tool or read-only design data extraction.

**What you get:** the read-only tools — view file data, components, styles, comments and version history, take screenshots, read logs, check design-code parity. **Cannot create or modify designs.**

#### Claude Desktop (UI Method)

1. Open Claude Desktop → **Settings** → **Connectors**
2. Click **"Add Custom Connector"**
3. Enter:
   - **Name:** `Figma Console (Read-Only)`
   - **URL:** `https://figma-console-mcp.southleft.com/sse`
4. Click **"Add"** — Done! ✅

OAuth authentication happens automatically when you first use design system tools.

#### Claude Code

> **⚠️ Known Issue:** Claude Code's native `--transport sse` has a [bug](https://github.com/anthropics/claude-code/issues/2466). Use `mcp-remote` instead:

```bash
claude mcp add figma-console -s user -- npx -y mcp-remote@latest https://figma-console-mcp.southleft.com/sse
```

**💡 Tip:** For full capabilities, use [NPX Setup](#-npx-setup-recommended) instead of Remote SSE.

#### Other Clients (Cursor, Windsurf, etc.)

```json
{
  "mcpServers": {
    "figma-console": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
    }
  }
}
```

#### Upgrading to Full Capabilities

Ready for design creation? Follow the [NPX Setup](#-npx-setup-recommended) guide above, or try [Cloud Mode](#-cloud-mode-web-ai-clients) if you don't want to install Node.js.

**📖 [Complete Setup Guide](https://github.com/southleft/figma-console-mcp/blob/HEAD/docs/setup.md)**

---

### ☁️ Cloud Mode (Web AI Clients)

**Best for:** Using Claude.ai, v0, Replit, or Lovable to create and modify Figma designs — no Node.js required.

**What you get:** 127 tools including full write access — design creation, variable management, component instantiation, and all REST API tools. Only real-time monitoring (console logs, selection tracking, document changes) requires Local Mode.

#### Prerequisites

- [ ] **Figma Personal Access Token** — [Create one here](https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens) (starts with `figd_`)
- [ ] **Figma Desktop** with the Desktop Bridge plugin installed (see [Desktop Bridge setup](#step-3-connect-to-figma-desktop))
- [ ] **A web AI client** that supports MCP (Claude.ai, Lovable, v0, Replit, etc.)

#### Step 1: Add the MCP Connector

Add this endpoint to your AI platform's MCP settings:

**URL:** `https://figma-console-mcp.southleft.com/mcp`
**Auth:** Your Figma PAT as Bearer token

In **Claude.ai**: Settings → Connectors → Add Custom Connector → paste the URL above.
In **Lovable/v0/Replit**: Look for "Add MCP Server" or "Integrations" in settings → paste the URL and add your token.

#### Step 2: Pair the Plugin

1. **Open the Desktop Bridge plugin** in Figma Desktop (Plugins → Development → Figma Desktop Bridge)
2. **Tell your AI assistant:**
   ```
   Connect to my Figma plugin
   ```
3. **The AI gives you a 6-character pairing code** (expires in 5 minutes)
4. **In the plugin:** Toggle "Cloud Mode" → enter the code → click Connect
5. **You're paired!** Full write access is now available

#### What You Can Do

Once paired, use natural language to design:
```
Create a card component with a header image, title, description, and action button
Set up a color token collection with Light and Dark modes
Add a "High Contrast" mode to my existing token collection
```

#### How It Works

Your AI client sends write commands through the cloud MCP server, which relays them via WebSocket to the Desktop Bridge plugin running in your Figma Desktop. The plugin executes the commands using the Figma Plugin API and returns results back through the same path.

```
AI Client → Cloud MCP Server → Durable Object Relay → Desktop Bridge Plugin → Figma
```

> **Variables on any plan:** Cloud Mode uses the Plugin API (not the Enterprise REST API), so variable management works on Free, Pro, and Organization plans.

**📖 [Complete Setup Guide](https://github.com/southleft/figma-console-mcp/blob/HEAD/docs/setup.md)**

---

## 📊 Installation Method Comparison

| Feature | NPX (Recommended) | Cloud Mode | Local Git | Remote SSE |
|---------|-------------------|------------|-----------|------------|
| **Setup time** | ~10 minutes | ~5 minutes | ~15 minutes | ~2 minutes |
| **Total tools** | **158** | **127** after pairing | **158** (Local Git) | Read-only subset |
| **Design creation** | ✅ | ✅ | ✅ | ❌ |
| **Variable management** | ✅ | ✅ | ✅ | ❌ |
| **Component instantiation** | ✅ | ✅ | ✅ | ❌ |
| **FigJam boards** | ✅ | ✅ | ✅ | ❌ |
| **Real-time monitoring** | ✅ | ❌ | ✅ | ❌ |
| **Desktop Bridge plugin** | ✅ | ✅ | ✅ | ❌ |
| **Variables (no Enterprise)** | ✅ | ✅ | ✅ | ❌ |
| **Console logs** | ✅ (zero latency) | ❌ | ✅ (zero latency) | ✅ |
| **Read design data** | ✅ | ✅ | ✅ | ✅ |
| **Requires Node.js** | Yes | **No** | Yes | No |
| **Authentication** | PAT (manual) | OAuth (automatic) | PAT (manual) | OAuth (automatic) |
| **Automatic updates** | ✅ (`@latest`) | ✅ | Manual (`git pull`) | ✅ |
| **Source code access** | ❌ | ❌ | ✅ | ❌ |

> **Key insight:** Remote SSE is read-only. Cloud Mode adds write access for web AI clients without Node.js. NPX/Local Git give the full 158 tools.

**📖 [Complete Feature Comparison](https://github.com/southleft/figma-console-mcp/blob/HEAD/docs/mode-comparison.md)**

---

## 🎯 Test Your Connection

After setup, try these prompts:

**Basic test (all modes):**
```
Navigate to https://www.figma.com and check status
```

**Design system test (requires auth):**
```
Get design variables from [your Figma file URL]
```

**Cloud Mode test:**
```
Connect to my Figma plugin
```
→ Follow the pairing flow, then try: "Create a simple blue rectangle"

**Plugin test (Local Mode only):**
```
Show me the primary font for [your theme name]
```

---

## 🔐 Authentication

### Remote Mode - OAuth (Automatic)

When you first use design system tools:
1. Browser opens automatically to Figma authorization page
2. Click "Allow" to authorize (one-time)
3. Token stored securely and refreshed automatically
4. Works with Free, Pro, and Enterprise Figma plans

### Local Mode - Personal Access Token (Manual)

1. Visit https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens
2. 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)
3. Add to MCP config as `FIGMA_ACCESS_TOKEN` environment variable

---

## 🛠️ Available Tools

> **v2.0: tools load in toolsets (Local Mode).** A core set is always listed: status, navigation, component search and resolve, building, token binding, audit, lint, screenshots and `figma_execute`. Everything else below sits in a toolset that the AI switches on when a task needs it: `inspect`, `variables`, `components`, `parity`, `codeconnect`, `docs`, `debug`, `motion`, `assets`, `figjam`, `slides` or `extraction`. This keeps every message ~50k tokens lighter. Set `FIGMA_TOOLSETS=all` to list every tool (the pre-2.0 behavior), or `FIGMA_TOOLSETS=variables,parity` to preload the ones you always use. Cloud Mode lists all its tools.

### 🧰 Toolsets
- `figma_enable_toolsets` - Switch on a toolset (sends `tools/list_changed`, so the client refreshes its list)
- `figma_call` - Run an enabled tool by name, for clients that don't refresh their tool list

### 🧭 Design-System Adherence
- `figma_resolve_components` - Map each UI need (and its parts, like a card's image) to a real component; what the system lacks comes back as an explained `GAP:` note to place where it belongs, never a look-alike
- `figma_audit_adherence` - Check a built frame: hand-built look-alikes, new or off-system components, values not bound to variables, and gap notes that don't explain themselves or stand in for a real component
- `figma_audit_code_adherence` - The same check for generated code: re-implemented components, unknown tokens, hardcoded values, Tailwind arbitrary values
- `figma_check_library_parity` - Pair a Figma library with its code library and compare props, variants and states (Custom Elements Manifest or React source)
- `figma_bind_tokens` - Bind spacing, radius, sizing and typography to existing variables and styles; never creates tokens

### Status & Diagnostics
- `figma_get_status` - Check WebSocket bridge connection and file context
- `figma_diagnose` - Designer-readable health check + setup guidance
- `figma_reconnect` - Force reconnect to the Desktop Bridge plugin
- `figma_navigate` - Switch the active file target among connected plugins (Local), or navigate the cloud headless browser (Remote/Cloud)
- `figma_list_open_files` - List files connected through the Desktop Bridge and which one is active (Local Mode)

### Console Debugging
- `figma_get_console_logs` - Retrieve console logs
- `figma_watch_console` - Real-time log streaming
- `figma_clear_console` - Clear log buffer
- `figma_reload_plugin` - Reload current page

### Visual Debugging
- `figma_take_screenshot` - Export an image of a page or node (Desktop Bridge first, REST fallback)
- `figma_capture_screenshot` - Render a node from the plugin runtime, reflecting changes that haven't reached the REST API yet

### 👁️ Real-Time Awareness (Local Mode only)
- `figma_get_selection` - The nodes currently selected in Figma
- `figma_get_design_changes` - Buffered document-change events, for polling what changed

### Design System Extraction
- `figma_get_design_system_kit` - **Full design system in one call** — tokens, components, styles, visual specs
- `figma_get_variables` - Extract design tokens/variables
- `figma_get_component` - Get component data (metadata or reconstruction spec)
- `figma_get_component_for_development` - Component + image
- `figma_get_component_image` - Just the image
- `figma_get_styles` - Color, text, effect styles
- `figma_get_file_data` - Full file structure
- `figma_get_file_for_plugin` - Optimized file data
- `figma_get_design_system_summary` / `figma_get_token_values` - Compact design-system overview and variable values by mode (Local Mode only)
- `figma_audit_design_system_report` - **Scored health audit for any MCP client** — six-category report (naming, tokens, metadata, accessibility, consistency, coverage) with per-finding remediation ("can this MCP fix it?"), chunked per-category drill-down, live-first data with disclosed source, 5-minute cache

### 📚 Shared Library Inspection
- `figma_get_library_component_by_key` - **Resolve any component key to full properties + variants + visual specs** — without needing the source library file's URL. Works for both COMPONENT_SET and standalone COMPONENT keys. Adaptive compression at >500KB.
- `figma_get_library_components` - Discover all components in a library file (requires library file URL/key)
- `figma_get_library_variables` - List every variable from team libraries the current file has subscribed. **Works on every Figma plan** — uses the Plugin API path, not the Enterprise-only REST endpoint. Filter by `libraryName`, `collectionName`, or `resolvedType`.
- `figma_import_library_variable` - Import a library variable into the current file. Returns a local `id` ready to pass to `figma_set_fills` / `figma_update_variable` / any variable-binding tool.

### ☁️ Cloud Relay
- `figma_pair_plugin` - Generate a pairing code to connect a Desktop Bridge plugin via the cloud relay

### ✏️ Design Creation (Local Mode + Cloud Mode)
- `figma_execute` - **Power tool**: Run any Figma Plugin API code to create designs
  - Create frames, shapes, text, components
  - Apply auto-layout, styles, effects
  - Build complete UI mockups programmatically
  - Optional `fileKey` targets one specific connected file directly (Local Mode only), without touching the active file or target lock
- `figma_execute_across_files` - **Local Mode only.** Run the same script in several Desktop Bridge-connected files at once, concurrently, returning a per-file result map — for cross-file consistency checks and fixes across a multi-file design system, replacing "open file, run plugin, repeat per file"
  - Name the files with `fileKeys` (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
  - Per-file timeouts and error isolation: one slow or failing file doesn't delay or fail the others
- `figma_create_component_set` - **Create a component set with variants in one declarative call**
  - Generate every variant combination from an axes matrix (e.g. `{ State: ["default", "hover", "disabled"], Size: ["sm", "lg"] }` → 6 variants) off a base component, or combine existing components
  - `Prop=Value` variant naming, `combineAsVariants` under the hood, optional auto-arranged labeled grid
  - Returns each variant's key, ready for `figma_instantiate_component`
- `figma_arrange_component_set` - **Organize variants into professional component sets**
  - Convert multiple component variants into a proper Figma component set
  - Applies native purple dashed border visualization automatically
  - Creates white container frame with title, row labels, and column headers
  - Row labels vertically centered with each grid row
  - Column headers horizontally centered with each column
  - Use natural language like "arrange these variants" or "organize as component set"
- `figma_set_description` - **Document components with rich descriptions**
  - Add descriptions to components, component sets, and styles
  - Supports markdown formatting for rich documentation
  - Descriptions appear in Dev Mode for developers

### 🧩 Figma Slots (Local Mode + Cloud Mode)
- `figma_create_slot` - **Add a slot to a component** via the GA `createSlot()` API — the linked SLOT property is created automatically; works on standalone components and variants inside a component set
- `figma_get_slots` - List slots on a component, component set (aggregated across variants), or instance — ids, names, property keys, dimensions, and current children
- `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)
- `figma_reset_slot` - Clear a slot's content on an instance
- `figma_add_slot_property` - Retrofit an existing frame as a slot via a manual SLOT property binding, with `description` and `preferredValues`

### 🎬 Motion (Local Mode + Cloud Mode)
Figma Motion (Plugin API beta). Animations play in Figma's preview and in video export, not in static screenshots.
- `figma_get_animations` - Read a layer's animation styles, keyframe tracks and timeline, with CSS easings and token bindings
- `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/TIMING variables
- `figma_remove_animation` - Remove one animation style, one keyframe track, or everything
- `figma_manage_animation_styles` - **Build reusable motion styles**: list Figma's presets and their options, and create, update or delete custom animation styles
- `figma_export_animation` - Export an animated frame as MP4, GIF or WebM

### 🧱 Code Layers (Local Mode + Cloud Mode)
- `figma_get_code_layers` - Find Figma code layers on a page or across the file, with position, size and linked dev resources. Figma's APIs don't expose code-layer source, so creating and editing them stays in Figma or Figma's own MCP (`send_code_to_figma`)

### ✨ Shaders (Local Mode + Cloud Mode)
- `figma_list_shaders` - List shaders applied in the file (with each property's name, type and default, and the layers using them) and shaders from your libraries
- `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

### 📐 Layout (Local Mode + Cloud Mode)
- `figma_set_layout` - **Auto layout and grid layout in one call**: direction, gaps, padding, alignment including `SPACE_EVENLY`/`SPACE_AROUND`, wrap, sizing, and grid tracks written CSS-style (`'240px 1fr 1fr'`, `repeat(3, 1fr)`) with child placement and spans

### 📥 Import & Export (Local Mode + Cloud Mode)
- `figma_import_svg` - **SVG markup, files or a whole icon folder → editable vectors, icon components and variant sets** (from file names like `24/outline/arrow-left.svg`), color bound to a COLOR variable. Re-importing updates existing icons in place so instances follow, asking first when they have instances or are published. Also how the AI draws a new icon or illustration: it writes the SVG and imports it. SVGs are sanitized first. Cloud Mode: inline markup only. Call it by name (not through `figma_call`)
- `figma_import_image` - PNG, JPEG or GIF → new image layers, or the fill of existing layers; `@2x` files placed at 1x; folders in Local Mode. Cloud Mode: base64 data only
- `figma_import_html` - **A web page, localhost app or HTML string → editable frames**, one per viewport width (1–4), with auto layout checked against the rendered page, states reached through actions (hover, open menu, dark mode), and colors, spacing, radii, type and shadows bound to the file's variables and styles; unmatched values are reported. Local Mode uses your installed Chrome or Edge and also loads localhost, `file://` inside `FIGMA_HTML_IMPORT_FILE_ROOTS` and signed-in pages (attach mode); Cloud Mode loads public URLs only
- `figma_export_assets` - **Export for code**: PNG/JPG/SVG/PDF renders of up to 50 nodes (honoring their Export panel settings), code-ready icon SVGs (`currentColor`, no fixed size), the icons inside a screen, and original image files. Local Mode writes files into a folder you name; Cloud Mode returns inline content or Figma-hosted links. Call it by name (not through `figma_call`)

### 🔍 Design-Code Parity (All Modes)
- `figma_check_design_parity` - Compare Figma component specs against code implementation, producing a scored diff report with actionable fix items
- `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`

### 🔗 Code Connect (Local Mode + Cloud Mode unless noted)
- `figma_generate_code_connect` - **Code Connect files from your real code components**: reads the Figma component's properties live (any plan, published or not) and your code component's props (TypeScript, `cva` variants and defaults, children, or a Web Components manifest), maps variants, booleans, text, instance swaps, slots and nested instances, and never invents a prop. Writes `.figma.ts` files only with `write: true`; Cloud Mode returns the content. Call it by name (not through `figma_call`)
- `figma_get_code_connect_map` - The code component each instance in a frame maps to, with a snippet rendered from that instance's own values and its imports. Use it before writing code from a design
- `figma_audit_code_connect` - Coverage per label and config, and drift (renamed properties, stale variant values, deleted nodes, files the CLI would refuse), with `status: pass|fail` for CI
- `figma_preview_code_connect` - Figma-rendered snippets through your repo's Code Connect CLI (Local Mode only)
- `figma_publish_code_connect` - Publish with your repo's own CLI: a dry run returns a `planId`, the real run publishes exactly that after you confirm (Local Mode only)
- `figma_unpublish_code_connect` - Remove published Code Connect for your files or one component, with the same dry run and confirmation (Local Mode only)

The CLI tools run code from your repo, so the first run asks you to trust that CLI; it runs isolated from the repo's `.env` and config, with the token only in confirmed runs. See the [Code Connect guide](https://docs.figma-console-mcp.southleft.com/code-connect).

### 🔗 Dev Resources, Usage & Library Analytics
- `figma_manage_dev_resources` - List, add, edit or delete the code, Storybook and docs links on components (Dev Mode), in bulk
- `figma_find_usages` - Where a style, variable or component is used, before you change or retire it
- `figma_get_library_analytics` - Library usage across the org: instances, unused assets, insertions and detach rates (Enterprise; token needs `library_analytics:read`)
- `figma_extend_library_collection` - Create an extended collection (a brand or product theme) from a library's or the file's own variables (Enterprise)
- `figma_reset_variable_override` - Put a variable in an extended collection back to its inherited value (Enterprise)

### 🔬 Components, Nodes & Deep Analysis (Local Mode + Cloud Mode unless noted)
- `figma_search_components` / `figma_get_component_details` - Find components (local + library) and get their variants, properties, and keys (Local Mode only)
- `figma_instantiate_component` / `figma_set_instance_properties` - Place instances and set their TEXT, BOOLEAN, INSTANCE_SWAP, and VARIANT properties
- `figma_add_component_property` / `figma_edit_component_property` / `figma_delete_component_property` - Manage component properties
- `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/Display P3 and other CSS colors on fills and strokes, and text wrap style and variable-font axes on text
- `figma_get_component_for_development_deep` - Full component tree with resolved token names and instance references
- `figma_analyze_component_set` - A variant set as a state machine, with CSS pseudo-class mappings and per-variant diffs

### ♿ Accessibility (Local Mode + Cloud Mode)
- `figma_lint_design` - WCAG and design-system lint on the canvas, with AA and best-practice level tagging
- `figma_audit_component_accessibility` - Component scorecard: state coverage, focus indicators, color-blind simulation
- `figma_scan_code_accessibility` - axe-core scan of HTML

### 📝 Annotations & Comments
- `figma_get_annotations` / `figma_set_annotations` / `figma_get_annotation_categories` - Read and write designer annotations (Local Mode + Cloud Mode)
- `figma_get_comments` / `figma_post_comment` / `figma_delete_comment` - File comments, optionally pinned to a node

### 🕰 Version History
- `figma_get_file_versions` / `figma_get_file_at_version` - List versions and snapshot a file or node at a past version
- `figma_diff_versions` / `figma_get_changes_since_version` - Structured diffs, including component property and binding changes
- `figma_generate_changelog` - Markdown changelog for release notes
- `figma_blame_node` - Find when, and by whom, a property or variant was introduced

### 🔁 Token Sync (Local Mode + Cloud Mode)
- `figma_export_tokens` - **Export Figma variables to design token files in your codebase.** Canonical DTCG JSON (legacy hex dialect by default, or DTCG 2025.10 object colors/dimensions via `dtcgDialect: "2025"`) plus CSS, Tailwind v4/v3, SCSS, TS, JSON, Style Dictionary, and Tokens Studio formats. Diff-aware merge against existing source files (only writes what changed). `tokens.config.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.
- `figma_import_tokens` - **Push code-side token edits back to Figma with a full apply phase.** Diffs against current Figma state, then applies value updates, **creates** missing collections/variables, applies **renames**, writes real **alias** (`VARIABLE_ALIAS`) references, and — only 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).

### 🧬 Design System Extraction (Local Mode only)


> The README is long; the above is its first 40000 characters. Full content: https://github.com/southleft/figma-console-mcp
