
Figma Context MCP AIR
io.github.compassalessandrolorenz由 GitHub 账号 compassalessandrolorenz 发布v2.0.2更新于 Oct 27, 2026
Figma MCP server for AI agents. 9 tools: design context, variables, screenshots, and FigJam.
发布方自己的服务:Figma MCP Server
概览
本地 MCP 服务器,让 AI 编程助手读取 Figma 设计数据,从而把设计实现为代码。
- 可以做什么
- 获取并简化 Figma 文件或节点的设计数据(布局、字体、颜色、组件)
- 下载 PNG/SVG 素材,并把节点截图保存到本地文件系统
- 读取设计令牌、变量与已发布样式,输出 CSS 自定义属性语法
- 以稀疏 XML 查看图层结构,并提取 FigJam 白板内容
- 生成适配框架的设计系统规则,并验证 Figma 账号认证
- 适用场景
- 适合希望让 AI 编程助手把 Figma 文件、画板或组件按指定框架写成代码,或把设计令牌与素材引入项目的场景。
- 运行要求
- 通过 npx(Node.js)以 stdio 模式在本地运行。需要 Figma 个人访问令牌,通过 FIGMA_API_KEY 或 --figma-api-key 参数提供,也可改用 OAuth 令牌。需要访问 Figma API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Figma Context MCP AIR,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Figma Context MCP AIR
Give your AI coding agent access to Figma design data.
Implement designs in any framework with pixel-perfect accuracy — in one shot.
[npm version] [npm downloads] [MIT License]
What is this?
figma-context-mcp-air is a Model Context Protocol (MCP) server that gives AI coding tools (Cursor, Claude, Windsurf, etc.) direct access to your Figma design data.
It exposes 9 tools covering the full design-to-code workflow:
Before returning data to the AI, the server simplifies and filters the raw Figma API response — keeping only the layout and styling information that matters for code generation. This reduces noise and dramatically improves AI accuracy.
Getting Started
You need a Figma Personal Access Token to use this server.
How to create a Figma API access token →
MacOS / Linux
Add this to your MCP client configuration file (e.g. ~/.cursor/mcp.json, claude_desktop_config.json):
Windows
Using Environment Variables
You can also set FIGMA_API_KEY in the env field instead of passing it as a flag:
How it works
- Open your AI coding tool's chat (e.g. agent mode in Cursor).
- Paste a link to a Figma file, frame, or component.
- Ask the AI to implement the design.
- The AI calls
get_design_context(orget_figma_data) to fetch structured design data, then writes your code.
For more advanced workflows, the AI can:
- Call
get_screenshotto visually inspect a node before implementing it - Call
get_variable_defsto extract your design tokens and map them to CSS variables - Call
get_metadatafor a quick layer overview before fetching full data - Call
create_design_system_rulesto generate project-specific coding guidelines
Configuration Options
Tool Reference
get_figma_data / get_design_context
Fetches and simplifies Figma design data for a file or specific node. Returns layout (flexbox/grid), typography, colors, borders, effects, and component metadata in YAML or JSON.
Parameters:
fileKey(required) — The key from your Figma URL:figma.com/design/<fileKey>/...nodeId(optional) — The node ID from the URL:?node-id=<nodeId>. Use format1234:5678.depth(optional) — How many levels deep to traverse. Only use if explicitly needed.
download_figma_images
Downloads PNG or SVG renders of Figma nodes to your local filesystem.
Parameters:
fileKey(required)nodes(required) — Array of{ nodeId, fileName }objectslocalPath(required) — Directory to save imagespngScale(optional) — Scale factor for PNG exports (default: 1)svgOptions(optional) — SVG export options (outline text, include IDs, simplify strokes)
get_screenshot
Captures a Figma node as a 2x PNG and saves it to disk. Useful for visual validation.
Parameters:
fileKey(required)nodeId(required)localPath(optional) — Save directory (default:./screenshots)fileName(optional) — Output filename without extension
get_metadata
Returns a sparse XML representation of the node hierarchy (depth=2). Use this for quick layer discovery before fetching full design context.
Parameters:
fileKey(required)nodeId(required)
get_variable_defs
Fetches all design tokens from a Figma file — variable collections (colors, spacing, typography) and published styles (effects, text styles, fill styles). Returns data with CSS custom property syntax.
Parameters:
fileKey(required)
whoami
Returns the authenticated user's Figma account information (name, email, plan tier). Useful for verifying your API key is working.
Parameters: None
create_design_system_rules
Generates a comprehensive markdown template for project-specific design system rules. Tailored to your language and framework combination. Save the output to CLAUDE.md or your project's AI instructions file.
Parameters:
clientLanguages(required) — e.g."typescript,javascript"clientFrameworks(required) —"react","vue","svelte","angular", or"unknown"
get_figjam
Extracts content from a FigJam board — sticky notes, connectors, shapes, sections — as XML with screenshot URLs.
Parameters:
fileKey(required)nodeId(optional) — Specific section or frame within the FigJam board
Development
Contributing
Contributions are welcome! Please read CONTRIBUTING.md before submitting a pull request.
For major features, open an issue first to discuss the approach.
License
MIT — see LICENSE
Acknowledgements
This project is a fork of GLips/Figma-Context-MCP (the Framelink MCP server), extended with additional tools to match the full official Figma MCP tool surface.
来源:README.md,提交 234a9b1
工具
0版本历史
1- v2.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Figma 集成

Figma MCP Server
com.figma.mcp官方发布者
Figma 官方远程 MCP 服务器,为 AI 编程助手提供 Figma 设计上下文,用于生成和更新代码。

Figma Vector MCP
由 GitHub 账号 workingmodel 发布
本地 MCP 服务器加 Figma 插件,让助手在 Figma 画布上创建和编辑可完全编辑的矢量节点、形状、文本与组件。

Figma CodeKit MCP
由 GitHub 账号 Mehmoodqureshi 发布
把 Figma 画板转换为 HTML、React 或 Next.js 代码,并将渲染结果与设计稿做像素比对,反复迭代直至收敛。

figma-mcp
由 GitHub 账号 Mehmoodqureshi 发布
把 Figma 画板确定性地转换为 HTML、React 或 Next.js 代码,在 Chromium 中渲染并与设计稿做像素比对,直到一致。

figma-vault
由 GitHub 账号 NBhey 发布
本地 MCP 服务器,让助手读取一次性拉取到本地库中的 Figma 设计,离线可用,无需 Figma 令牌,也不受速率限制。