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

ksn-figma-mcp

v0.1.0

Published

Local Figma MCP bridge using the Figma Plugin API

Readme

KSN Figma MCP

Local Figma MCP bridge that connects an MCP client to the Figma Plugin API.

MCP client -> mcp.js -> bridge-server.js -> Figma plugin UI WebSocket -> plugin/code.ts -> Figma Plugin API

This follows the same broad shape as Figma's MCP workflows: read design context, export screenshots/assets, inspect variables/styles, map nodes to code, upload assets, and write to the canvas with a use_figma tool. Official remote-only features such as creating new Figma files, hosted auth, remote libraries, shader libraries, and Figma's private code-generation pipeline are not reproducible from a local plugin alone.

Setup

Install root dependencies:

npm install

Install and build the Figma plugin:

npm --prefix plugin install
npm run build:plugin

Import the plugin in Figma Desktop:

  1. Open Figma Desktop.
  2. Go to Plugins -> Development -> Import plugin from manifest.
  3. Select plugin/manifest.json.
  4. Run KSN Figma MCP Bridge from Plugins -> Development.

Start the bridge:

npm run bridge

Add the MCP server to your client, replacing the path if needed:

codex mcp add ksn-figma-mcp node /Users/11502010/Desktop/Innovations/RD/ksn-figma-mcp/mcp.js

Use With npx

Start the local bridge:

npx -y ksn-figma-mcp bridge

Print the Figma plugin manifest path, then import that manifest in Figma Desktop:

npx -y ksn-figma-mcp plugin-path

Add the MCP server to Codex:

codex mcp add ksn-figma-mcp -- npx -y ksn-figma-mcp

Tools

  • check_bridge_status
  • whoami
  • get_metadata
  • get_design_context
  • get_figjam
  • get_screenshot
  • download_assets
  • upload_assets
  • get_variable_defs
  • search_design_system
  • add_code_connect_map
  • get_code_connect_map
  • use_figma

use_figma Example

const frame = figma.createFrame();
frame.name = params.name || "Generated frame";
frame.resize(360, 240);
frame.fills = [{ type: "SOLID", color: { r: 1, g: 1, b: 1 } }];
figma.currentPage.appendChild(frame);
figma.viewport.scrollAndZoomIntoView([frame]);
return helpers.serializeNode(frame, { detail: true, depth: 1 });

use_figma intentionally executes JavaScript in your active Figma file. Treat it like a local developer tool: only run code from sources you trust.

Environment

  • FIGMA_MCP_BRIDGE_PORT: bridge port, default 3845
  • FIGMA_MCP_BRIDGE_URL: MCP bridge URL, default http://127.0.0.1:3845
  • FIGMA_MCP_REQUEST_TIMEOUT_MS: plugin request timeout, default 60000
  • FIGMA_MCP_MAX_BODY_BYTES: HTTP body limit, default 50MB

Verify

npm run check