Figma MCP 服务器添加福利群:解决AI开发者的「MCP实战痛点」这是一个提供与Figma API集成的模型上下文协议(MCP)服务器,允许你与Figma文件、评论、组件等进行交互。
文件操作
评论管理
项目和团队功能
Webhook管理
要通过Smithery自动为Claude Desktop安装Figma MCP服务器:
npx -y @smithery/cli install @deepsuthar496/figma-mcp-server --client claude
npm install
npm run build
在你的MCP设置文件中使用Figma访问令牌配置服务器:
{
"mcpServers": {
"figma": {
"command": "node",
"args": ["path/to/figma-server/build/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "你的访问令牌"
},
"disabled": false,
"alwaysAllow": []
}
}
}

获取Figma文件信息
{
"file_key": "字符串"
}

获取文件版本历史
{
"file_key": "字符串"
}

获取文件中的组件
{
"file_key": "字符串"
}

从文件获取评论
{
"file_key": "字符串"
}

向文件发布评论
{
"file_key": "字符串",
"message": "字符串"
}

从文件删除评论
{
"file_key": "字符串",
"comment_id": "字符串"
}

获取团队的项目
{
"team_id": "字符串"
}

获取项目中的文件
{
"project_id": "字符串"
}

获取已发布的样式
{
"team_id": "字符串"
}

创建Webhook
{
"team_id": "字符串",
"event_type": "字符串",
"callback_url": "字符串"
}

列出Webhook
{
"team_id": "字符串"
}

删除Webhook
{
"webhook_id": "字符串"
}

// 使用MCP工具获取文件信息的示例
<use_mcp_tool>
<server_name>figma</server_name>
<tool_name>get_file</tool_name>
<arguments>
{
"file_key": "你的文件键"
}
</arguments>
</use_mcp_tool>

MIT