Figma MCP Server
Figma MCP 服务器
连接到 Figma 的 API 的模型上下文协议 (MCP) 服务器,允许 AI 工具和 LLM 访问和使用您的 Figma 设计。
特征
设计数据提取:从 Figma 设计中提取组件、样式和文本
设计系统分析:分析设计系统的一致性和模式
UI 内容管理:从设计中提取并组织所有 UI 副本
开发交接:为开发人员生成全面的文档
无缝 AI 集成:将您的设计连接到 Claude、Cursor 和其他兼容 MCP 的客户端等 AI 工具
Related MCP server: Figma MCP Server
入门
先决条件
Node.js 16 或更高版本
Figma 个人访问令牌(从您的 Figma 帐户设置中获取)
安装
克隆存储库:
git clone https://github.com/yourusername/figma-mcp-server.git cd figma-mcp-server安装依赖项:
npm install在项目根目录中创建一个
.env文件:FIGMA_API_TOKEN=your_figma_personal_access_token API_KEY=your_secure_api_key TRANSPORT_TYPE=stdio构建服务器:
npm run build启动服务器:
npm start
连接到客户端
克劳德桌面版
打开或创建 Claude for Desktop 配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
添加以下配置:
{ "mcpServers": { "figma": { "command": "node", "args": ["/absolute/path/to/figma-mcp-server/build/index.js"], "env": { "FIGMA_API_TOKEN": "your_figma_personal_access_token", "TRANSPORT_TYPE": "stdio" } } } }重启 Claude 桌面版
光标
全局配置
创建或编辑 Cursor 的 MCP 配置文件:
macOS:
~/Library/Application Support/Cursor/mcp.jsonWindows:
%APPDATA%\Cursor\mcp.json
{
"mcpServers": {
"figma-mcp": {
"url": "http://localhost:3000/sse",
"env": {
"API_KEY": "your_secure_api_key"
}
}
}
}项目特定配置
在项目根目录中创建一个
.cursor目录:mkdir -p .cursor在该目录中创建一个
mcp.json文件:{ "mcpServers": { "figma-mcp": { "url": "http://localhost:3000/sse", "env": { "API_KEY": "your_secure_api_key" } } } }
可用工具
工具 | 描述 |
| 获取有关 Figma 文件的基本信息 |
| 从 Figma 文件中获取特定节点 |
| 从 Figma 文件获取组件信息 |
| 从 Figma 文件获取样式信息 |
| 从 Figma 文件获取评论 |
| 按类型、名称等搜索 Figma 文件中的元素。 |
| 从 Figma 文件中提取所有文本元素 |
可用提示
analyze-design-system- 分析设计系统组件和样式的一致性extract-ui-copy- 从设计中提取并组织所有 UI 副本generate-dev-handoff- 根据设计生成开发交接文档
使用示例
与 Claude 一起使用:
Can you analyze the design system in my Figma file with key abc123? Look for consistency in color usage and typography.与游标一起使用:
Generate React components for the buttons from my Figma file with key abc123, using tailwind CSS.环境变量
多变的 | 描述 | 默认 |
| 您的 Figma 个人访问令牌 | (必需的) |
| API 身份验证的安全密钥 | (必需的) |
| 传输方法( |
|
| SSE运输港口 |
|
建筑学
此 MCP 服务器:
使用您的个人访问令牌连接到 Figma API
遵循模型上下文协议公开标准化接口
提供 LLM 可以用来与 Figma 设计进行交互的工具、资源和提示
支持 stdio 传输(本地连接)和 SSE 传输(远程连接)
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceA Model Context Protocol server that provides access to Figma API functionality, allowing AI assistants like Claude to interact with Figma files, comments, components, and team resources.181,3344
- FlicenseBqualityDmaintenanceA Model Context Protocol server that integrates with Figma's API, allowing interaction with Figma files, comments, components, projects, and webhook management.52,061
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that integrates Figma design files with AI coding tools like Cursor, Windsurf, and Cline, allowing AI tools to access and understand Figma design data for generating more accurate code.41930MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI agents to programmatically create, modify, and manage Figma documents via a WebSocket bridge and Figma plugin.116MIT
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mohammeduvaiz/figma-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server