
figmcp
io.github.irshadio由 GitHub 账号 irshadio 发布v1.6.0更新于 Oct 24, 2026
Local Figma MCP server: frames to Flutter, React and HTML code, and design in Figma. No API limits.
概览
本地 Figma MCP 服务器,让编码助手读取 Figma Desktop 中打开的文件,把画框转成 Flutter、React 或 HTML 代码,并可在 Figma 中做设计。
- 可以做什么
- 读取节点的设计上下文:参考代码、资源、截图和变量,以及图层树元数据与截图
- 导出资源,并把完整设计导出保存为 JSON 或作为快照导入
- 渲染生成的代码并与 Figma 渲染结果比对,给出错误、布局差异和像素差异图
- 通过运行 Figma 插件 API 脚本在打开的文件中创建和编辑设计,并放置本地图片
- 搜索文件的设计系统,并管理设计组件与代码组件之间的 Code Connect 映射
- 查看连接状态、配对码、当前文件和选区
- 适用场景
- 适合希望编码助手把 Figma 画框实现为 Flutter、React 或 HTML + Tailwind 代码,或直接在打开的 Figma 文件中生成和修改设计的场景,且不想使用 Figma API 令牌或受套餐限制。
- 运行要求
- 需要 Node.js 18+ 和 macOS 或 Windows 上的 Figma Desktop;服务器以 stdio 本地运行,并通过 localhost 的 WebSocket(端口 3947)与 Figma 开发插件通信。安装脚本会注册服务器并打印配对码,需在插件中输入。可选环境变量用于配置数据目录、框架、Code Connect 路径和允许的来源。
安装
在 SourceWeft 中
- 打开 控制台中的 figmcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[figmcp: design and code, locally]
[figmcp]
Design and code, locally.
Turn Figma frames into Flutter and React code, and let your coding agent design in Figma.
No Figma API calls. No rate limits.
[npm version] [Node.js version] [macOS and Windows]
[figmcp MCP server – quality and maintenance score on Glama]
Website · Docs · Installation · Tools · Changelog
figmcp is a local MCP server that gives your coding agent the Figma file you have open in Figma Desktop. A development plugin streams the file to a server on your machine over localhost, so reads never touch the Figma REST API: no access token, no quota, no rate limit.
- Design to code. Flutter widgets for Flutter projects, HTML + Tailwind for static sites, React + Tailwind for everything else, with the assets and a screenshot to compare against.
- Design in Figma. The agent creates and edits frames in the open file with Figma plugin API scripts, one undo step per script.
- Your components. Map design components to code components with Code Connect.
- Works offline. Read saved snapshots when the plugin is closed.
- Any plan. Works on every Figma plan, including the free Starter plan. No Dev Mode seat needed.
Works with Claude Code, Cursor, Claude Desktop and any MCP client that runs stdio servers.
Quick start
Needs Node.js 18+ and Figma Desktop on macOS or Windows.
1. Run setup
It registers the server with Claude Code, copies the Figma plugin to your home folder, and prints your pairing code and the config for other MCP clients.
2. Import the plugin (once)
In Figma Desktop, go to Plugins › Development › Import plugin from manifest… and choose:
On macOS, press ⌘ ⇧ G in the file picker and paste the path. On Windows, paste it into the File name box.
3. Pair and ask
Restart your coding agent. In Figma Desktop, run Plugins › Development › figmcp and enter the pairing code. The dot turns green once it's connected. Then select a frame and ask:
Keep the plugin window open while you work. Full guide: figmcp.web.app/docs/installation.
Usage
Design to code
Select a frame, or paste a Figma link that has a node-id:
Projects with a pubspec.yaml get Flutter widgets, and SVGs and images are saved into the asset folders the pubspec declares. Static sites get HTML + Tailwind, and everything else gets React + Tailwind. React output uses the real font families, declares the design's variables as CSS (with a Tailwind 4 @theme), writes repeated items as data with .map() and names reused text styles, names assets after their layers with copy commands for public/figma, turns prototype taps, layer names and placeholders into buttons, links, landmarks and inputs, draws phone frames as screens that fill the viewport and desktop frames as pages whose full-width sections stretch. Its classes work in Tailwind 3.4 and 4. The code is a reference that your agent adapts to your project. More →
Design in Figma
Open the file in Figma Desktop, run the plugin and ask:
The agent builds the design with use_figma and checks each step with a screenshot. Each script is one undo step. More →
Code Connect
Mapped instances come back as your own components. Mappings are saved in .figma-local/code-connect.json in your project. More →
MCP clients
Claude Code is registered by setup. Restart it and check with /mcp.
Cursor, Claude Desktop and other clients: add the config that setup prints. It looks like this, with paths for your machine:
Step-by-step for each client, on macOS and Windows: figmcp.web.app/docs/configuration.
Tools
Arguments for each tool: figmcp.web.app/docs/tools.
How it works
The plugin reads the open file with the Figma plugin API and runs the scripts your agent sends. The server turns that into code, assets, screenshots and metadata. When the plugin is closed, reads fall back to the newest saved snapshot. More →
Configuration
Set these in the env of your MCP client config.
Update
Then restart your coding agent and run the plugin again. The plugin updates itself, so there's no need to import it again.
Troubleshooting
- The dot stays grey: start your coding agent first, then run the plugin again.
- Lost the pairing code: run setup again, or ask your agent to run
whoami. use_figmacan't edit the file: switch the file from Dev Mode back to Design mode.
More fixes: figmcp.web.app/docs/troubleshooting. Still stuck? Open an issue with the output of whoami.
Development
To work on the site: cd web && npm install && npm run dev. To publish it: npm run deploy.
License
Figma is a trademark of Figma, Inc. This project is not affiliated with Figma, Inc.
来源:README.md,提交 22892c3
工具
0版本历史
2- v1.6.0最新Oct 19, 2026
- v1.4.2Oct 14, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分