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-rest-mcp-server

v0.1.5

Published

Local MCP server for reading Figma design data through the Figma REST API.

Downloads

405

Readme

Figma REST MCP Server

本项目提供一个 stdio MCP Server,通过 Figma REST API 读取设计稿数据,并把完整快照缓存到本机用户目录。

接入流程

  1. 创建 Figma Personal Access Token

在 Figma 主页进入:

Settings -> Security -> Personal access tokens -> Generate new token

权限建议:

  • file_content:read:必选,用于读取设计稿文件和节点内容。
  • file_comments:read:可选,只有需要 AI 读取评论、备注、交互说明时再勾选。
  1. 全局安装 MCP 包
npm i -g figma-rest-mcp-server

也可以使用 pnpm:

pnpm add -g figma-rest-mcp-server
  1. 写入 Figma PAT
figma-rest-mcp auth

默认写入:

~/.figma-rest-mcp-server/auth.json

auth.json 是本机明文凭据文件,不能提交、不能共享。

  1. 查看运行路径
figma-rest-mcp paths

默认路径:

~/.figma-rest-mcp-server/auth.json
~/.figma-rest-mcp-server/.figma-cache
  1. 注册到 Codex
codex mcp add figma_rest -- figma-rest-mcp serve

注册后重启 Codex App 或开启新会话。

在新会话中即可调用:

读取这个 Figma 链接:xxx 的布局和样式信息
  1. 清空缓存
figma-rest-mcp cache:clear

该命令只会删除并重建 ~/.figma-rest-mcp-server/.figma-cache,不会删除 auth.json

本地开发

pnpm install
pnpm build
pnpm cli auth
pnpm cli paths
pnpm cli cache:clear
pnpm cli serve

开发期也可以继续使用:

pnpm figma:pat

发布

pnpm typecheck
pnpm test
pnpm build
pnpm pack --dry-run
npm publish

原理介绍

./原理介绍.md