figma-console-mcp
v0.1.0
Published
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
Maintainers
Readme
Figma Console MCP Server
Model Context Protocol server that provides AI assistants with real-time console access, visual debugging, and design system extraction for Figma.
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
- ⚡ Real-time monitoring - Watch logs as plugins execute
- 🔄 Two modes - Remote (zero setup) or Local (plugin development)
⚡ Quick Start
Choose the setup that fits your needs:
For Most Users: Remote Mode (Zero Setup)
Perfect for design system extraction and basic debugging. No installation required!
Claude Desktop (Recommended)
Latest Method - No Config Files!
- Open Claude Desktop → Settings → Connectors
- Click "Add Custom Connector"
- Enter:
- Name:
Figma Console - URL:
https://figma-console-mcp.southleft.com/sse
- Name:
- Click "Add"
- Done! ✅
What you get:
- ✅ All 14 Figma tools available immediately
- ✅ OAuth authentication (automatic when you first use API tools)
- ✅ Design system extraction (variables*, components, styles)
- ✅ Console debugging and screenshots
- ❌ Desktop Bridge plugin NOT available (use Local Mode for that)
*Variables API requires Figma Enterprise plan OR use Local Mode + Desktop Bridge plugin
Claude Code
One-line install:
claude mcp add --transport sse figma-console https://figma-console-mcp.southleft.com/sseVerify: /mcp should show "figma-console: connected"
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
}
}
}Restart Cursor after saving.
Consult your client's MCP documentation for the config file location, then add:
{
"mcpServers": {
"figma-console": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
}
}
}For Plugin Developers: Local Mode
Use Local Mode if you:
- ✅ Are developing Figma plugins (need zero-latency console debugging)
- ✅ Need variables WITHOUT Enterprise plan (via Desktop Bridge plugin)
- ✅ Need reliable component descriptions (Figma API has bugs, plugin bypasses them)
- ✅ Want direct access to Figma Desktop state
⚠️ Important: The Desktop Bridge plugin ONLY works in Local Mode. Remote mode cannot access it because the plugin requires direct connection to Figma Desktop via localhost:9222.
Setup time: 10-15 minutes
Prerequisites:
- Node.js 18+
- Figma Desktop installed
- Terminal access
📊 Remote vs Local: Which Should I Use?
| Feature | Remote Mode | Local Mode | |---------|-------------|------------| | Setup | 2 minutes | 10-15 minutes | | Prerequisites | None | Node.js, Figma restart | | Console logs | ✅ | ✅ (lower latency) | | API access | ✅ | ✅ | | OAuth auth | ✅ (automatic) | ❌ (manual PAT) | | Desktop Bridge plugin | ❌ | ✅ | | Variables (no Enterprise) | ❌ | ✅ (via plugin) | | Reliable component descriptions | ⚠️ (API bugs) | ✅ (via plugin) |
🎯 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
All 14 tools work in both Remote and Local modes:
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 datafigma_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
📖 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 imageVisual Debugging
Take a screenshot of the current Figma canvas
Navigate to this file and capture what's on screen🎨 Desktop Bridge Plugin (Local Mode Only)
The Figma Desktop Bridge plugin enables:
- ✅ Variables without Enterprise API
- ✅ Reliable component descriptions (bypasses API bugs)
- ✅ Multi-mode support (Light/Dark/Brand variants)
⚠️ 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: "Show me the primary font for [your theme]"
📖 Desktop Bridge Documentation
🚀 Advanced Topics
- Local Mode Setup - Complete local installation guide
- 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
- [ ] Real-time collaboration - Multi-user debugging sessions
- [ ] Component screenshot diffs - Visual regression testing
- [ ] Batch operations - Process multiple files at once
- [ ] Design linting - Automated compliance checks
- [ ] Plugin template generation - Generate plugin boilerplate
💻 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.
