figma-console-mcp
v1.8.0
Published
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
Maintainers
Readme
Figma Console MCP Server
Your design system as an API. Model Context Protocol server that bridges design and development—giving AI assistants complete access to Figma for extraction, creation, and debugging.
What is this?
Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
- 🐛 Plugin debugging - Capture console logs, errors, and stack traces
- 📸 Visual debugging - Take screenshots for context
- 🎨 Design system extraction - Pull variables, components, and styles
- ✏️ Design creation - Create UI components, frames, and layouts directly in Figma
- 🔧 Variable management - Create, update, rename, and delete design tokens
- ⚡ Real-time monitoring - Watch logs as plugins execute
- 🔄 Three ways to install - Remote SSE (OAuth, zero-setup), NPX (npm package), or Local Git (source code)
⚡ Quick Start
Choose Your Setup
First, decide what you want to do:
| I want to... | Setup Method | Time | |--------------|--------------|------| | Create and modify designs with AI | NPX Setup (Recommended) | ~10 min | | Contribute to the project | Local Git Setup | ~15 min | | Just explore my design data (read-only) | Remote SSE | ~2 min |
⚠️ Important: Capability Differences
| Capability | NPX / Local Git | Remote SSE | |------------|-----------------|------------| | Read design data | ✅ | ✅ | | Create components & frames | ✅ | ❌ | | Edit existing designs | ✅ | ❌ | | Manage design tokens/variables | ✅ | ❌ | | Desktop Bridge plugin | ✅ | ❌ | | Total tools available | 53+ | 16 |
Bottom line: Remote SSE is read-only. If you want AI to actually design in Figma, use NPX Setup.
🚀 NPX Setup (Recommended)
Best for: Designers who want full AI-assisted design capabilities.
What you get: All 53+ tools including design creation, variable management, and component instantiation.
Prerequisites
- [ ] Node.js 18+ — Check with
node --version(Download) - [ ] Figma Desktop installed (not just the web app)
- [ ] Claude Desktop or another MCP client
Step 1: Get Your Figma Token
- Go to figma.com/developers/api#access-tokens
- Click "Get personal access token"
- Enter description:
Figma Console MCP - Copy the token — you won't see it again! (starts with
figd_)
Step 2: Configure Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "figma-console-mcp@latest"],
"env": {
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
}
}
}
}Step 3: Start Figma with Debug Mode
Quit Figma completely, then restart with debug flag:
macOS:
open -a "Figma" --args --remote-debugging-port=9222Windows:
cmd /c "%LOCALAPPDATA%\Figma\Figma.exe" --remote-debugging-port=9222Verify at http://localhost:9222 — you should see inspectable Figma pages.
Step 4: Restart Claude Desktop
Quit and reopen Claude Desktop. Look for 🔌 icon showing "figma-console: connected".
Step 5: Test It!
Check Figma status→ Should show "✅ Figma Desktop connected"
Create a simple frame with a blue background→ Should create a frame in Figma (confirms write access!)
For Contributors: Local Git Mode
Best for: Developers who want to modify source code or contribute to the project.
What you get: Same 53+ tools as NPX, plus full source code access.
Quick Setup
# Clone and build
git clone https://github.com/southleft/figma-console-mcp.git
cd figma-console-mcp
npm install
npm run build:localConfigure Claude Desktop
{
"mcpServers": {
"figma-console": {
"command": "node",
"args": ["/absolute/path/to/figma-console-mcp/dist/local.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
}
}
}
}Then follow NPX Steps 3-5 above.
📡 Remote SSE (Read-Only Exploration)
Best for: Quickly evaluating the tool or read-only design data extraction.
What you get: 16 read-only tools — view data, take screenshots, read logs. Cannot create or modify designs.
Claude Desktop (UI Method)
- Open Claude Desktop → Settings → Connectors
- Click "Add Custom Connector"
- Enter:
- Name:
Figma Console (Read-Only) - URL:
https://figma-console-mcp.southleft.com/sse
- Name:
- Click "Add" — Done! ✅
OAuth authentication happens automatically when you first use design system tools.
Claude Code
⚠️ Known Issue: Claude Code's native
--transport ssehas a bug. Usemcp-remoteinstead:
claude mcp add figma-console -s user -- npx -y mcp-remote@latest https://figma-console-mcp.southleft.com/sse💡 Tip: For full capabilities, use NPX Setup instead of Remote SSE.
Other Clients (Cursor, Windsurf, etc.)
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
}
}
}Upgrading to Full Capabilities
Ready for design creation? Follow the NPX Setup guide above.
📊 Installation Method Comparison
| Feature | NPX (Recommended) | Local Git | Remote SSE |
|---------|-------------------|-----------|------------|
| Setup time | ~10 minutes | ~15 minutes | ~2 minutes |
| Total tools | 53+ | 53+ | 16 (read-only) |
| Design creation | ✅ | ✅ | ❌ |
| Variable management | ✅ | ✅ | ❌ |
| Component instantiation | ✅ | ✅ | ❌ |
| Desktop Bridge plugin | ✅ | ✅ | ❌ |
| Variables (no Enterprise) | ✅ | ✅ | ❌ |
| Console logs | ✅ (zero latency) | ✅ (zero latency) | ✅ |
| Read design data | ✅ | ✅ | ✅ |
| Authentication | PAT (manual) | PAT (manual) | OAuth (automatic) |
| Automatic updates | ✅ (@latest) | Manual (git pull) | ✅ |
| Source code access | ❌ | ✅ | ❌ |
Key insight: Remote SSE is read-only with ~30% of the tools. Use NPX for full capabilities.
🎯 Test Your Connection
After setup, try these prompts:
Basic test (both modes):
Navigate to https://www.figma.com and check statusDesign system test (requires auth):
Get design variables from [your Figma file URL]Plugin test (Local Mode only):
Show me the primary font for [your theme name]🔐 Authentication
Remote Mode - OAuth (Automatic)
When you first use design system tools:
- Browser opens automatically to Figma authorization page
- Click "Allow" to authorize (one-time)
- Token stored securely and refreshed automatically
- Works with Free, Pro, and Enterprise Figma plans
Local Mode - Personal Access Token (Manual)
- Visit https://www.figma.com/developers/api#access-tokens
- Generate token
- Add to MCP config as
FIGMA_ACCESS_TOKENenvironment variable
🛠️ Available Tools
Navigation & Status
figma_navigate- Open Figma URLsfigma_get_status- Check connection status
Console Debugging
figma_get_console_logs- Retrieve console logsfigma_watch_console- Real-time log streamingfigma_clear_console- Clear log bufferfigma_reload_plugin- Reload current page
Visual Debugging
figma_take_screenshot- Capture UI screenshots
Design System Extraction
figma_get_variables- Extract design tokens/variablesfigma_get_component- Get component data (metadata or reconstruction spec)figma_get_component_for_development- Component + imagefigma_get_component_image- Just the imagefigma_get_styles- Color, text, effect stylesfigma_get_file_data- Full file structurefigma_get_file_for_plugin- Optimized file data
✏️ Design Creation (Local Mode + Desktop Bridge)
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
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
🔍 Design-Code Parity (All Modes)
figma_check_design_parity- Compare Figma component specs against code implementation, producing a scored diff report with actionable fix itemsfigma_generate_component_doc- Generate platform-agnostic markdown documentation by merging Figma design data with code-side info
🔧 Variable Management (Local Mode + Desktop Bridge)
figma_create_variable_collection- Create new variable collections with modesfigma_create_variable- Create COLOR, FLOAT, STRING, or BOOLEAN variablesfigma_update_variable- Update variable values in specific modesfigma_rename_variable- Rename variables while preserving valuesfigma_delete_variable- Delete variablesfigma_delete_variable_collection- Delete collections and all their variablesfigma_add_mode- Add modes to collections (e.g., "Dark", "Mobile")figma_rename_mode- Rename existing modesfigma_batch_create_variables- Create up to 100 variables in one call (10-50x faster)figma_batch_update_variables- Update up to 100 variable values in one callfigma_setup_design_tokens- Create complete token system (collection + modes + variables) atomically
📖 Example Prompts
Plugin Debugging
Navigate to my Figma plugin and show me any console errors
Watch the console for 30 seconds while I test my plugin
Get the last 20 console logsDesign System Extraction
Get all design variables from https://figma.com/design/abc123
Extract color styles and show me the CSS exports
Get the Button component with a visual reference image
Get the Badge component in reconstruction format for programmatic creationDesign Creation (Local Mode)
Create a success notification card with a checkmark icon and message
Design a button component with hover and disabled states
Build a navigation bar with logo, menu items, and user avatar
Create a modal dialog with header, content area, and action buttons
Arrange these button variants into a component set
Organize my icon variants as a proper component set with the purple borderVariable Management (Local Mode)
Create a new color collection called "Brand Colors" with Light and Dark modes
Add a primary color variable with value #3B82F6 for Light and #60A5FA for Dark
Rename the "Default" mode to "Light Theme"
Add a "High Contrast" mode to the existing collectionDesign-Code Parity
Compare the Button component in Figma against our React implementation
Check design parity for the Card component before sign-off
Generate component documentation for the Dialog from our design systemVisual Debugging
Take a screenshot of the current Figma canvas
Navigate to this file and capture what's on screen🎨 AI-Assisted Design Creation
⚠️ Local Mode Only: This feature requires the Desktop Bridge plugin and only works with Local Mode installation. Remote Mode is read-only and cannot create or modify designs.
One of the most powerful capabilities of this MCP server is the ability to design complete UI components and pages directly in Figma through natural language conversation with any MCP-compatible AI assistant like Claude Desktop or Claude Code.
What's Possible
Create original designs from scratch:
Design a login card with email and password fields, a "Forgot password?" link,
and a primary Sign In button. Use 32px padding, 16px border radius, and subtle shadow.Leverage existing component libraries:
Build a dashboard header using the Avatar component for the user profile,
Button components for actions, and Badge components for notifications.Generate complete page layouts:
Create a settings page with a sidebar navigation, a main content area with form fields,
and a sticky footer with Save and Cancel buttons.How It Works
- You describe what you want in plain English
- The AI searches your component library using
figma_search_componentsto find relevant building blocks - Components are instantiated with proper variants and properties via
figma_instantiate_component - Custom elements are created using the full Figma Plugin API via
figma_execute - Visual validation automatically captures screenshots and iterates until the design looks right
Who Benefits
| Role | Use Case | |------|----------| | Designers | Rapidly prototype ideas without manual frame-by-frame construction. Explore variations quickly by describing changes. | | Developers | Generate UI mockups during planning discussions. Create visual specs without switching to design tools. | | Product Managers | Sketch out feature concepts during ideation. Communicate visual requirements directly to stakeholders. | | Design System Teams | Test component flexibility by generating compositions. Identify gaps in component coverage. | | Agencies | Speed up initial concept delivery. Iterate on client feedback in real-time during calls. |
Example Workflows
Brand New Design:
"Create a notification toast with an icon on the left, title and description text, and a dismiss button. Use our brand colors."
The AI creates custom frames, applies your design tokens, and builds the component from scratch.
Component Composition:
"Build a user profile card using the Avatar component (large size), two Button components (Edit Profile and Settings), and a Badge for the user's status."
The AI searches your library, finds the exact components, and assembles them with proper spacing and alignment.
Design Iteration:
"The spacing feels too tight. Increase the gap between sections to 24px and make the heading larger."
The AI modifies the existing design, takes a screenshot to verify, and continues iterating until you're satisfied.
Visual Validation
The AI automatically follows a validation workflow after creating designs:
- Create → Execute the design code
- Screenshot → Capture the result
- Analyze → Check alignment, spacing, and visual balance
- Iterate → Fix any issues detected
- Verify → Final screenshot to confirm
This ensures designs aren't just technically correct—they look right.
🎨 Desktop Bridge Plugin (Local Mode Only)
The Figma Desktop Bridge plugin enables powerful capabilities:
Read Operations
- ✅ Variables without Enterprise API
- ✅ Reliable component descriptions (bypasses API bugs)
- ✅ Multi-mode support (Light/Dark/Brand variants)
Write Operations
- ✅ Design Creation - Create frames, shapes, text, components via
figma_execute - ✅ Variable Management - Full CRUD operations on variables and collections
- ✅ Mode Management - Add and rename modes for multi-theme support
⚠️ Plugin Limitation: Only works in Local Mode. Remote mode cannot access it.
Setup:
- Install Local Mode MCP
- Download plugin from Releases
- Import plugin: Figma Desktop → Plugins → Development → Import plugin from manifest
- Run plugin in your Figma file
- Ask Claude: "Create a button component" or "Show me the design variables"
📖 Desktop Bridge Documentation
🔌 WebSocket Bridge
Figma Desktop is transitioning away from Chrome DevTools Protocol (CDP) support. The MCP server includes a WebSocket bridge that provides seamless connectivity regardless of which transport is available.
How it works:
- The server tries WebSocket first (port 9223, instant check) via the Desktop Bridge plugin
- If no WebSocket client is connected, it falls back to CDP (port 9222)
- The transport is selected automatically per-command — no configuration needed
- All 53+ tools work identically through either transport
Setup:
- Install the Desktop Bridge plugin in Figma (Plugins > Development > Import from manifest)
- Open the plugin in your Figma file — it connects to ws://localhost:9223 automatically
- The MCP server detects the connection and routes commands through WebSocket
If you also have CDP available (Figma launched with --remote-debugging-port=9222), CDP serves as a fallback. Console tools work with both transports — CDP captures all page-level logs while WebSocket captures plugin-context logs. figma_navigate requires CDP for browser-level navigation; in WebSocket mode it returns the connected file info with guidance instead.
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). The MCP server routes commands to the appropriate file based on active context. If a plugin instance is replaced (e.g., plugin reloaded in the same file), the displaced client stops reconnecting automatically.
Environment variables:
FIGMA_WS_PORT— Override the server-side WebSocket port (default: 9223). Note: the plugin UI and manifest are hard-coded to port 9223. Using a custom port also requires updatingwsPortinui.htmlandallowedDomainsinmanifest.json.
Checking transport status:
Ask Claude: "Check Figma status"The response will show which transport is active (CDP or WebSocket).
🧩 MCP Apps (Experimental)
Figma 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. Built with the official @modelcontextprotocol/ext-apps SDK.
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.
Token Browser
An interactive design token explorer.
Usage: Ask Claude to "browse the design tokens" or "show me the design tokens" while connected to a Figma file.
Features:
- Browse all tokens organized by collection with expandable sections
- Filter by type (Colors, Numbers, Strings) and search by name/description
- Per-collection mode columns (Light, Dark, Custom) matching Figma's Variables panel
- Color swatches, alias resolution, and click-to-copy on any value
- Works without Enterprise plan via Desktop Bridge (local mode)
Design System Dashboard
A Lighthouse-style health scorecard that audits your design system across six categories.
Usage: Ask Claude to "audit the design system" or "show me design system health" while connected to a Figma file.
Features:
- Overall weighted score (0–100) with six category gauges: Naming, Tokens, Components, Accessibility, Consistency, Coverage
- Expandable category sections with individual findings, severity indicators, and actionable details
- Diagnostic locations linking findings to specific variables, components, or collections
- Tooltips explaining each check's purpose and scoring criteria
- Refresh button to re-run the audit without consuming AI context
- Pure scoring engine with no external dependencies — all analysis runs locally
Enabling MCP Apps:
MCP Apps are gated behind an environment variable. Add to your MCP config:
{
"mcpServers": {
"figma-console-local": {
"command": "node",
"args": ["/path/to/figma-console-mcp/dist/local.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
"ENABLE_MCP_APPS": "true"
}
}
}
}Note: MCP Apps require an MCP client with ext-apps protocol support (e.g. Claude Desktop). This feature is experimental and the protocol may evolve.
Future MCP Apps Roadmap
Planned MCP Apps:
- Component Gallery — Visual browser for searching and previewing components with variant exploration
- Style Inspector — Interactive panel for exploring color, text, and effect styles with live previews
- Variable Diff Viewer — Side-by-side comparison of token values across modes and branches
The 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.
🚀 Advanced Topics
- Setup Guide - Complete setup guide for all MCP clients
- Self-Hosting - Deploy your own instance on Cloudflare
- Architecture - How it works under the hood
- OAuth Setup - Configure OAuth for self-hosted deployments
- Troubleshooting - Common issues and solutions
🤝 vs. Figma Official MCP
Figma Console MCP (This Project) - Debugging & data extraction
- ✅ Real-time console logs from Figma plugins
- ✅ Screenshot capture and visual debugging
- ✅ Error stack traces and runtime monitoring
- ✅ Raw design data extraction (JSON)
- ✅ Works remotely or locally
Figma Official Dev Mode MCP - Code generation
- ✅ Generates React/HTML code from designs
- ✅ Tailwind/CSS class generation
- ✅ Component boilerplate scaffolding
Use both together for the complete workflow: generate code with Official MCP, then debug and extract data with Console MCP.
🛤️ Roadmap
Current Status: v1.2.x (Stable) - Production-ready with comprehensive capabilities
Coming Soon:
- [ ] Enhanced error messages - Actionable suggestions for design operations
- [ ] Component template library - Common UI pattern generation
- [ ] Batch variant operations - Create multiple variants efficiently
- [ ] Visual regression testing - Screenshot diff capabilities
Future:
- [ ] Multi-user debugging - Collaborative debugging sessions
- [ ] Design linting - Automated compliance and accessibility checks
- [ ] VS Code extension - Simplified setup and integration
- [ ] AI enhancements - Intelligent component suggestions and auto-layout optimization
💻 Development
git clone https://github.com/southleft/figma-console-mcp.git
cd figma-console-mcp
npm install
# Local mode development
npm run dev:local
# Cloud mode development
npm run dev
# Build
npm run build📄 License
MIT - See LICENSE file for details.
🔗 Links
- 📚 Documentation Site — Complete guides, tutorials, and API reference
- 📖 Local Docs — Documentation source files
- 🐛 Report Issues
- 💬 Discussions
- 🌐 Model Context Protocol
- 🎨 Figma API
