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

@guiqft/figma-slides-mcp

v2.1.0

Published

MCP server that bridges Claude Code and Figma Slides via a Figma plugin

Downloads

143

Readme

figma-slides-mcp

npm version License: MIT MCP

MCP server for controlling Figma Slides — create, edit, and screenshot slides from any AI assistant that supports MCP.

How It Works

AI Assistant  <-MCP->  MCP Server  <-WS :3055->  Broker  <-WS :3055->  Figma Plugin  <-Plugin API->  Figma Slides

The MCP server communicates with a Figma plugin running inside your Figma Slides file. The plugin executes JavaScript in the Figma plugin sandbox and returns results.

The MCP server does not own the WebSocket port. A small broker daemon (mcp/dist/broker.mjs) owns ws://localhost:3055; the MCP server starts it on demand and reconnects to it. The broker outlives MCP client restarts, so restarting your AI assistant no longer breaks the bridge. It shuts itself down after 30 minutes with nothing connected.

Several Figma files can be connected at once, each addressed by an optional deck argument. With a single deck connected nothing changes. With two or more and no pinned deck, the tools refuse to guess — they return the connected deck names and wait for a deck argument or a use_deck call.

Prerequisites

  • Node.js 18+
  • A Figma account with access to Figma Slides

Quick Start

1. Connect to your MCP client

claude mcp add figma-slides -- npx @guiqft/figma-slides-mcp

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "figma-slides": {
      "command": "npx",
      "args": ["@guiqft/figma-slides-mcp"]
    }
  }
}
code --add-mcp '{"name":"figma-slides","command":"npx","args":["@guiqft/figma-slides-mcp"]}'

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "figma-slides": {
      "command": "npx",
      "args": ["@guiqft/figma-slides-mcp"]
    }
  }
}

Any MCP-compatible client can use figma-slides-mcp:

{
  "mcpServers": {
    "figma-slides": {
      "command": "npx",
      "args": ["@guiqft/figma-slides-mcp"]
    }
  }
}

2. Load the Figma plugin

  1. Download the latest plugin release and unzip it
  2. In Figma, open a Slides file
  3. Go to Plugins > Development > Import plugin from manifest...
  4. Select the manifest.json from the unzipped folder
  5. Run the plugin — it connects to the MCP server via WebSocket on port 3055

Updating

The MCP server updates itself: npx re-resolves latest on the next start, so restarting your AI assistant is enough.

The plugin does not. It lives on your disk and the server cannot update it. Since 2.0.0 the plugin and server speak a versioned protocol, and 2.0.0–2.0.1 refused any plugin that did not speak it: the tools reported no deck connected while the plugin sat there showing "Connected".

From 2.1.0 the broker probes a silent socket instead of writing it off, so a pre-2.0 plugin keeps working — it is registered as a deck, list_decks marks it legacy: true, and the tools attach the update steps. Update it anyway: that build reconnects from a timer Figma throttles in hidden iframes, so it can stay dark after the broker restarts.

To update: download the current figma-plugin.zip, unzip it over the folder you imported from, and re-run the plugin in Figma. The manifest.json has not changed since 1.x, so re-importing is only needed if that folder moved.

If the tools still report no deck connected and count unidentified clients, something that is not a plugin is holding port 3055 — most often an older figma-slides-mcp from before the broker.

MCP Tools

Every tool below takes an optional deck — a connId from list_decks, a connId prefix, or part of the Figma file name. Omit it unless more than one deck is connected.

list_decks

List the Figma decks currently connected, with connId (routing key), docName (the Figma file name), editorType, isPinned, and legacy (set when the deck runs a pre-2.0 plugin served through the compatibility path).

use_deck

Pin one deck as the target for the rest of the session. A connId is regenerated every time the plugin is relaunched, so prefer the file name.

get_styleguide

Extract the design system from the current deck — colors (sorted by frequency with usage context), fonts, slide dimensions, and layout regions for every slide. Use this before creating or editing slides to match the existing style.

ping

Check if the Figma plugin is connected and responding. Returns slide count and timestamp.

execute

Run JavaScript in the Figma plugin sandbox. Has access to the full figma Plugin API plus these helpers:

| Helper | Description | |--------|-------------| | getSlide(index?) | Get a slide by 0-based index (defaults to current slide) | | findSlides() | Get all slides in the presentation | | serialize(node?) | Serialize a node (or the whole page) to a JSON summary | | loadFont(family, style?) | Load a font before setting text (style defaults to "Regular") |

list_slides

List all slides in the current presentation with their index, name, dimensions, skipped status, and a text preview.

read_slide

Read the full node tree of a single slide, including all nested children with their properties (text, fills, position, size).

| Parameter | Description | |-----------|-------------| | slideIndex | Slide index to read (0-based) | | depth | Max tree depth (default 5, max 10) |

update_text

Update text on a slide by matching node name or text content. Fonts are loaded automatically. Supports batch updates in one call.

| Parameter | Description | |-----------|-------------| | slideIndex | Slide index to update (0-based) | | updates | Array of { match, newText } — matches by node name, exact text, or text prefix |

duplicate_slide

Duplicate a slide and insert the copy immediately after the source. Returns the new slide's index and ID.

| Parameter | Description | |-----------|-------------| | sourceIndex | Index of the slide to duplicate (0-based) |

screenshot_slide

Export a slide as PNG and return it as a base64 image.

| Parameter | Description | |-----------|-------------| | slideIndex | Slide index to screenshot (0-based) | | scale | Export scale (default 1, use 0.5 for thumbnails) |

screenshot_presentation

Export all slides as PNG thumbnails in a single call. Returns an array of images.

| Parameter | Description | |-----------|-------------| | scale | Export scale (default 0.5 for thumbnails, use 1 for full resolution) |

Development

For contributors who want to work on the project:

git clone https://github.com/guiqft/figma-slides-mcp.git
cd figma-slides-mcp
npm install
npm run build:mcp    # Build MCP server + Figma plugin
npm run dev:mcp      # Watch mode for MCP builds
npm test             # Build, then run the node --test suite (needs Node 22+)

The published package runs on Node 18+; only the test script needs Node 22, for the test runner's glob support.

License

MIT — see LICENSE.