npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

figma-console-mcp

v0.1.0

Published

MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode

Readme

Figma Console MCP Server

MCP License: MIT

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!

  1. Open Claude Desktop → SettingsConnectors
  2. Click "Add Custom Connector"
  3. Enter:
    • Name: Figma Console
    • URL: https://figma-console-mcp.southleft.com/sse
  4. Click "Add"
  5. 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/sse

Verify: /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

📖 See Local Mode Setup Guide


📊 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) |

📖 Complete Feature Comparison


🎯 Test Your Connection

After setup, try these prompts:

Basic test (both modes):

Navigate to https://www.figma.com and check status

Design 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:

  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://www.figma.com/developers/api#access-tokens
  2. Generate token
  3. Add to MCP config as FIGMA_ACCESS_TOKEN environment variable

🛠️ Available Tools

All 14 tools work in both Remote and Local modes:

Navigation & Status

  • figma_navigate - Open Figma URLs
  • figma_get_status - Check connection status

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 - Capture UI screenshots

Design System Extraction

  • figma_get_variables - Extract design tokens/variables
  • figma_get_component - Get component data
  • 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

📖 Detailed Tool Documentation


📖 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 logs

Design 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

Visual Debugging

Take a screenshot of the current Figma canvas
Navigate to this file and capture what's on screen

📖 More Use Cases & Examples


🎨 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:

  1. Install Local Mode MCP
  2. Download plugin from Releases
  3. Import plugin: Figma Desktop → Plugins → Development → Import plugin from manifest
  4. Run plugin in your Figma file
  5. Ask Claude: "Show me the primary font for [your theme]"

📖 Desktop Bridge Documentation


🚀 Advanced Topics


🤝 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

📖 Full Roadmap


💻 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

📖 Development Guide


📄 License

MIT - See LICENSE file for details.


🔗 Links