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

figma-claude-connector

v1.1.5

Published

MCP server that bridges Claude Code to Figma plugin via WebSocket

Readme

figma-claude-connector

AI-powered Figma design tool via MCP (Model Context Protocol). Control Figma canvas directly from Claude Code, Cursor, or any MCP-compatible AI client.

AI Client ──stdio──▶ MCP Server ──ws://localhost:3055──▶ Figma Plugin

Quick Start

1. Add to your MCP config

Claude Code (.mcp.json):

{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-claude-connector"]
    }
  }
}

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-claude-connector"]
    }
  }
}

2. Install the Figma Plugin

  1. Open Figma Desktop
  2. Go to Plugins > Manage Plugins
  3. Search for "Claude Connector"
  4. Click Install

3. Use

  1. Run the plugin in Figma: Plugins > Claude Connector
  2. Confirm "Connected" in the plugin UI
  3. Start designing with AI from your MCP client

Features — 122 Tools

Canvas Manipulation (82 tools)

| Category | Tools | Examples | |---|---|---| | Nodes | 4 | createFrame, createRectangle, createEllipse, createText | | Components | 7 | createButton, createCard, createInput, createComponent, createInstance | | Layout | 6 | applyAutoLayout, createGridLayout, createFlexContainer, alignDistribute | | Shapes | 8 | createLine, createPolygon, createStar, createVector, createSection | | Styles | 4 | applyFill, applyShadow, applyStroke, createColorStyles | | Local Styles | 11 | createPaintStyle, createTextStyle, importComponentByKey | | Operations | 11 | groupNodes, flattenNodes, booleanOperation, moveNode, resizeNode | | Annotations | 3 | addAnnotation, getAnnotations, deleteAnnotation | | Comments | 4 | postComment, getComments, replyComment, resolveComment | | Query | 4 | getSelection, findNodes, getNodeDetails, getFileInfo | | Viewport | 13 | scrollIntoView, setImageFill, setCornerRadius, setEffects | | Metadata | 5 | setPluginData, getPluginData, setDescription | | Export | 1 | exportImage (PNG/SVG/PDF) | | Typography | 1 | createTypographyScale |

Figma REST API (40 tools)

| Category | Tools | Examples | |---|---|---| | Files | 6 | getFile, getFileNodes, getImages, getFileVersions | | Components | 9 | getTeamComponents, getFileComponents, getTeamStyles | | Projects | 2 | getTeamProjects, getProjectFiles | | Variables | 3 | getLocalVariables, getPublishedVariables, modifyVariables | | Webhooks | 6 | createWebhook, getWebhook, updateWebhook, deleteWebhook | | Dev Resources | 4 | getDevResources, createDevResources, updateDevResources | | Analytics | 4 | getComponentActions, getComponentUsages, getStyleActions | | Reactions | 3 | getCommentReactions, addCommentReaction | | Activity | 2 | getActivityLogs, getPayments | | Users | 1 | getMe |

REST API tools require a Figma Personal Access Token. Set it via the FIGMA_TOKEN environment variable.

Architecture

┌─────────────────┐     stdio      ┌─────────────┐   WebSocket    ┌───────────────┐
│   AI Client     │ ◄────────────► │  MCP Server  │ ◄────────────► │ Figma Plugin  │
│ (Claude, Cursor)│                │  (Node.js)   │  ws://3055     │ (Canvas API)  │
└─────────────────┘                └─────────────┘                └───────────────┘
  • MCP Server: Communicates with AI clients via stdio, connects to Figma plugin via WebSocket
  • Figma Plugin: Receives commands from the MCP server and executes Figma API calls on the canvas

Figma REST API Setup

To use REST API tools (file reading, team components, analytics, etc.), set your Personal Access Token:

{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-claude-connector"],
      "env": {
        "FIGMA_TOKEN": "figd_xxxxx"
      }
    }
  }
}

Generate a token at: Figma > Settings > Personal Access Tokens

Troubleshooting

Plugin shows "Waiting for server..."

  • Ensure the MCP server is running: lsof -i:3055
  • Start manually: npx figma-claude-connector

Port 3055 already in use

kill $(lsof -ti:3055)

Font errors

  • Figma must have the required fonts loaded
  • Inter font (Regular, Medium, Bold) is supported by default

Requirements

  • Node.js >= 18
  • Figma Desktop app

License

MIT