Figma MCP Server
Figma MCP 服务器
一个ModelContextProtocol服务器,使 AI 助手能够与 Figma 文件交互。该服务器提供直接通过 ModelContextProtocol 查看、评论和分析 Figma 设计的工具。
特征
通过提供 URL 将 Figma 文件添加到与 Claude 的聊天中
阅读并发布 Figma 文件的评论
Related MCP server: Figma MCP Server
与 Claude 一起设置
从claude.ai/download下载并安装 Claude 桌面应用程序
获取 Figma API 密钥(figma.com -> 点击左上角您的姓名 -> 设置 -> 安全)。授予
File content和Comments范围。配置 Claude 使用 Figma MCP 服务器。如果这是您的第一个 MCP 服务器,请在终端中运行以下命令。
echo '{
"mcpServers": {
"figma-mcp": {
"command": "npx",
"args": ["figma-mcp"],
"env": {
"FIGMA_API_KEY": "<YOUR_API_KEY>"
}
}
}
}' > ~/Library/Application\ Support/Claude/claude_desktop_config.json如果不是,请将figma-mcp块复制到你的claude_desktop_config.json
重新启动 Claude Desktop。
在 Claude 的界面中查找带有可用工具数量的锤子图标,以确认服务器正在运行。
示例用法
使用 claude 桌面开始新的聊天并粘贴以下内容
What's in this figma file?
https://www.figma.com/design/MLkM98c1s4A9o9CMnHEyEC更实际的用法演示
https://www.loom.com/share/0e759622e05e4ab1819325bcf6128945?sid=bcf6125b-b5de-4098-bf81-baff157e3dc3
开发设置
与 Inspector 一起运行
您可以使用 MCP Inspector 工具进行开发和调试。该工具提供了一个可视化界面,用于测试和监控 MCP 服务器的交互。
访问Inspector 文档以获取详细的设置说明和使用指南。
使用 Inspector 进行本地测试的命令是
npx @modelcontextprotocol/inspector npx figma-mcp本地开发
克隆存储库
安装依赖项:
npm install构建项目:
npm run build对于自动重建的开发:
npm run watch可用工具
该服务器提供以下工具:
add_figma_file:通过提供其 URL 将 Figma 文件添加到您的上下文中view_node:获取 Figma 文件中特定节点的缩略图read_comments:获取 Figma 文件上的所有评论post_comment:在 Figma 文件中的节点上发表评论reply_to_comment:回复 Figma 文件中的现有评论
每个工具都旨在通过 ModelContextProtocol 接口提供与 Figma 文件交互的特定功能。
Available Tools
5 toolsadd_figma_fileC
Add a Figma file to your context
Inputs: url (required).
post_commentC
Post a comment on a node in a Figma file
Inputs: file_key (required), message (required), x (required), y (required), +1 more.
read_commentsC
Get all comments on a Figma file
Inputs: file_key (required).
reply_to_commentC
Reply to an existing comment in a Figma file
Inputs: file_key (required), comment_id (required), message (required).
view_nodeC
Get a thumbnail for a specific node in a Figma file
Inputs: file_key (required), node_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no overlap: adding files, posting comments, reading comments, replying to comments, and viewing nodes. The descriptions make it easy to differentiate between file management, comment operations, and node inspection.
All tool names follow a consistent verb_noun pattern (e.g., add_figma_file, post_comment, read_comments, reply_to_comment, view_node) using snake_case throughout. This predictable naming scheme enhances readability and usability.
With 5 tools, this server is well-scoped for basic Figma interactions, covering file management, comment lifecycle, and node viewing. Each tool earns its place without feeling excessive or insufficient for the domain.
The toolset provides solid coverage for comment workflows (post, read, reply) and file/node basics, but lacks operations like updating or deleting comments, or more advanced file manipulations. Agents can work around these minor gaps for core tasks.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Keeps Figma in sync with your Storybook and sends designers' changes to your coding agent.
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Read-only design skills, components and tokens from your Alpy library for any AI agent.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables seamless interaction with Figma via the Model Context Protocol, allowing LLM applications to access, manipulate, and track Figma files, components, and variables.2149-
- AlicenseNot gradedqualityCmaintenanceEnables Cursor to access Figma files through the Model Context Protocol, enhancing its ability to accurately interpret and utilize design data for code generation.137,431 npm16,332MIT
- FlicenseBqualityDmaintenanceEnables Cursor AI to read and modify Figma designs programmatically via the Model Context Protocol.383-
- AlicenseBqualityDmaintenanceEnables AI assistants to read and modify Figma designs programmatically through the Model Context Protocol.481MIT