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

plumb-mcp

v0.9.0

Published

Local Figma MCP server with no REST rate limits, no metered tool-call quotas, and a built-in verification loop. Works on every Figma plan including Free. Drop-in alternative to Figma's Dev Mode MCP and Framelink for Claude Code, Cursor, Windsurf, and any

Readme

Plumb (plumb-mcp)

带验证循环的 Figma → 代码 MCP。 设计稿进、规范化设计规范出,plumb-mcp verify 驱动无头 Chrome 来证明你渲染出的代码确实匹配 Figma 中的设计。

📖 完整文档:https://tathagat22.github.io/plumb-mcp/  ·  📦 npm:plumb-mcp  ·  🇬🇧 English README  ·  🇯🇵 日本語  ·  🇰🇷 한국어

本翻译由 AI 辅助生成。欢迎以 PR 形式提交改进意见 — 我们重视母语者的审校。

专为编码代理打造 —— Claude Code、Cursor、Windsurf,任何兼容 MCP 的工具。通过 Figma 桌面应用内运行的伴侣插件读取 Figma 文件(无 REST 速率限制,所有套餐包括免费版均可用),返回紧凑的归一化设计规范而非 Figma API 输出的数十万 token JSON,并按需将 SVG 图标和 PNG 图像直接导出到磁盘。


Plumb 与其他 Figma MCP 的不同之处

另有三个值得了解的 Figma MCP 服务器:

  • Figma 官方 Dev Mode MCP —— 双向(可写回 Figma),但有套餐门槛、按调用计费。
  • Framelink —— 轻量级 REST 包装。两个工具。无验证,继承 REST 速率限制。
  • cursor-talk-to-figma —— 面向设计师在 Figma 内自动化的双向工具。

Plumb 是唯一在代码侧闭环的方案。plumb_verify(MCP 工具)与 plumb-mcp verify(CLI)告诉你代理生成的代码是否真的匹配设计 —— 带颜色编码的 delta、无像素对比、可在 CI 中运行。


你是否遇到了这些问题?

如果你的代理是从错误信息中找到这里,Plumb 多半能解决。

| 你看到的错误 | Plumb 为何能解决 | |---|---| | Figma Dev Mode MCP exceeded the 25k token cap · 351,378 tokens observed | PDS 对设计 token($c1$t1 …)去重,并把 auto-layout 预解析为 flexbox。同一个 178 节点的对话框只需 ~2.6k token。 | | Dev Mode MCP: 6 tool calls per month limit · Starter plan tool-call limit reached | Plumb 的插件路径在所有套餐(包括免费版)上都没有按调用计费的配额。 | | Framelink figma-developer-mcp HTTP 429 · Figma REST API rate limit exceeded | 插件路径不走 REST,零速率限制。 | | Variables API requires Enterprise plan · 403 Forbidden on variables | Plumb 通过 Figma 插件 API 读取 Variables —— 所有套餐都可用。 | | Figma MCP returned 85% wrong layout · 幻觉式结构 | Plumb 返回结构化 PDS(而非解析后的散文),并附带 plumb_verify + plumb-mcp verify CLI,可对比已渲染 DOM 与设计稿。 | | Dev Mode MCP requires selection · "Open desktop app with the right selection" | 插件配对的那一刻,Plumb 就把整个文件清单流式发送过来,无需每次调用都选中节点。 |

安装:npm install -g plumb-mcpplumb-mcp init


快速开始

# 1. 安装
npm install -g plumb-mcp

# 2. 接入你的编辑器 —— 自动识别 Claude Code / Cursor / VS Code / Windsurf
plumb-mcp init

# 3. 一次性安装 Figma 插件。manifest 路径:
echo "$(npm root -g)/plumb-mcp/figma-plugin/manifest.json"
#    Figma 桌面应用 → Plugins → Development → Import plugin from manifest…
#    运行 Plumb → 点击 "Pair with Plumb" → 完成。后续运行折叠为一个小圆点。

# 4. 可选 —— 从终端直接验证渲染代码与 Figma 是否一致
plumb-mcp verify http://localhost:5173/dashboard --url <figma-url>

其他安装方式:npx plumb-mcp · docker run --rm -i ghcr.io/tathagat22/plumb-mcp:latest · 从源码构建


十二个工具

| 工具 | 作用 | |---|---| | plumb_status | 自描述、键名说明、连接状态。首先调用此工具。 | | plumb_outline | 列出文件中每一个屏幕(id、名称、尺寸)。 | | plumb_node | 将屏幕提取为紧凑的 PDS —— 通过 id 或名称。 | | plumb_tokens | 设计 token 表(颜色、文字、圆角、阴影)。 | | plumb_selection | 用户在 Figma 中当前选中的对象。 | | plumb_assets | 导出图标(SVG)和图像(PNG)—— 三种模式:递归、清单、精准 ids。 | | plumb_screenshot | 将任意节点渲染为 PNG/JPG。 | | plumb_search | 按名称和/或类型查找节点。 | | plumb_components | 列出组件及其实例使用情况。 | | plumb_verify | 将你渲染的布局与设计稿对比,返回结构化差异。 | | plumb_fig_outline | 无需 Figma 桌面应用,直接从磁盘读取已保存的 .fig 文件并列出所有屏幕。 | | plumb_fig_node | 无需 Figma 桌面应用,按 id 从已保存的 .fig 文件中获取一个节点。 |


完整文档(架构、教程、每个工具的详细说明、故障排查)位于 https://tathagat22.github.io/plumb-mcp/

MIT © Tathagat Maitray