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 🙏

© 2026 – Pkg Stats / Ryan Hefner

zapcode-figma-mcp

v2.0.0

Published

An MCP server that exposes Figma context via a plugin and saves assets, from Zapcode.

Readme

ZapCode Figma MCP Server

Zapcode Figma MCP Server

npm version Discord

Connect your Figma designs directly to AI tools like Claude Desktop, Claude Code, Cursor, and Cline. Get real-time HTML, CSS, images, and assets from selected Figma frames — and now fully control Figma with 57 tools through the Model Context Protocol.

Get Started: Visit https://zapcode.pages.dev/ for complete documentation, tutorials, and live examples.

What's New in v2.0

The biggest release yet — massively expanded Figma control. AI can now create, edit, style, and manage your entire Figma design, not just read it.

Features

  • Real-time Design Context - Fetches live data from your currently selected Figma frame
  • Full Design Control - Create, edit, move, style, and delete any Figma element via AI
  • Design System Support - Manage components, styles, and variables
  • Complete Asset Export - Supports SVG, PNG, JPG, PDF, and all Figma asset types
  • Configurable Storage - Save assets to custom paths or default workspace location
  • Auto-organized Assets - Assets grouped by type (svg/, png/, jpg/, etc.)
  • Zero Configuration - Works out of the box with npx
  • Rich Context - Provides HTML structure, CSS styles, images, and design specifications

Prerequisites

  1. Node.js 16+ - Download here
  2. Figma Desktop or Web - Required for plugin
  3. Zapcode Figma Plugin - Install from Figma Community

Installation

Note: The --figma-port argument specifies which port to use for communication with the Figma plugin. Default is 32896. You can customize this port if needed (e.g., to run multiple instances or if the default port is already in use).

Claude Desktop

Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "zapcode-figma": {
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

Restart Claude Desktop after making changes.

Claude Code

Add to your claude_code_config.json:

macOS/Linux: ~/.config/claude-code/claude_code_config.json Windows: %APPDATA%\claude-code\claude_code_config.json

{
  "mcpServers": {
    "zapcode-figma": {
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

or run

claude mcp add --transport stdio zapcode -- npx -y zapcode-figma-mcp --figma-port 61234

Cursor

Add to your MCP settings configuration:

{
  "mcpServers": {
    "zapcode-figma": {
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

Cline (VS Code Extension)

Add to Cline's MCP settings:

{
  "mcpServers": {
    "zapcode-figma": {
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

Windsurf

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "zapcode-figma": {
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

Continue (VS Code/JetBrains)

Add to Continue's configuration:

{
  "mcpServers": {
    "zapcode-figma": {
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

GitHub Copilot

Add to your GitHub Copilot MCP configuration:

{
  "servers": {
    "zapcode-figma": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "zapcode-figma-mcp", "--figma-port", "61234"]
    }
  }
}

How It Works

  1. Install Plugin - Add Zapcode plugin to Figma Desktop
  2. Run Plugin - Launch Zapcode plugin from Figma
  3. Select Frame - Choose any frame in your Figma design
  4. Ask AI - Ask AI to bring you the figma context
  5. Get Context - Receive complete design data and assets

Troubleshooting

"Figma plugin is not connected"

Cause: MCP server cannot reach the Zapcode Figma plugin.

Solution:

  1. Open Figma Desktop App
  2. Open your design file
  3. Run Zapcode plugin (Plugins → Zapcode)
  4. Ensure plugin window stays open
  5. Retry connecting using toggle
  6. Try the MCP tool again

Assets Not Saving

Cause: Permission issues or invalid path.

Solution:

  1. Ensure the assets path exists or parent directory is writable
  2. Use absolute paths for clarity
  3. Check file permissions on the target directory

Asset Organization

Assets are automatically organized by type:

assets/
├── svg/
│   ├── icon_component.svg
│   └── logo.svg
├── png/
│   ├── screenshot_1.png
│   └── image_export.png
└── jpg/
    └── photo.jpg

Supported Clients

This server works with any MCP-compatible client, including:

  • Claude Desktop - Anthropic's desktop application
  • Claude Code - Anthropic's official CLI for Claude
  • Cursor - AI-first code editor
  • Cline - Autonomous coding agent for VS Code
  • Windsurf - AI-powered IDE with MCP Plugin Store
  • Zed - High-performance code editor (MCP in preview)
  • Continue - Open-source IDE extension
  • GitHub Copilot - With MCP support in VS Code

Links


Sources: