Figma MCP Server
Retrieves Figma file or node structure to provide design data for AI agents, enabling code generation, template creation, and design context for frontend development.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Figma MCP ServerGet the Figma file structure for this design: https://figma.com/file/design"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Figma MCP Server
MCP Server để lấy cấu trúc JSON từ Figma, dùng cho các AI Coding Agent hỗ trợ giao thức Model Context Protocol (Continue extension, Claude Desktop, Cursor, v.v.).
Yêu cầu
Node.js >= 18
Figma Personal Access Token
Related MCP server: tellfigma
Cài đặt
1. Clone repository
git clone <repository-url>
cd figma-mcp2. Cài dependencies
npm install3. Lấy Figma Token
Vào Figma Settings > Personal Access Tokens tạo token mới với scope file_read.
Sử dụng
Khởi động server (stdio)
Set biến môi trường rồi chạy:
export FIGMA_ACCESS_TOKEN="your-figma-token"
node index.jsServer chạy im lặng qua stdio, chờ nhận request từ MCP client.
API (MCP Tools)
get_figma_from_url
Lấy cấu trúc JSON của file Figma hoặc một node cụ thể.
Parameters:
Parameter | Type | Required | Mô tả |
| string | ✅ | URL file Figma (hỗ trợ cả URL có |
| number | ❌ | Giới hạn độ sâu cây (2 hoặc 3 để lấy plan; bỏ trống lấy full) |
Ví dụ URL:
Response: JSON string chứa cấu trúc Figma.
Cấu hình cho Continue Extension (VS Code)
Thêm vào file ~/.continue/config.json (hoặc Continue > Configuration):
{
"experimental": {
"mcpServers": {
"figma": {
"command": "/usr/bin/node",
"args": ["/path/to/figma-mcp/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your-figma-token"
}
}
}
}
}Lưu ý: Thay
/path/to/figma-mcp/index.jsbằng đường dẫn tuyệt đối tới file index.js trong repo. Nếu dùng Windows, thay/usr/bin/nodebằng đường dẫn tới node.exe.
Caching
Cache lưu trong thư mục
.figma_cachetại thư mục chạy serverThời gian sống: 1 giờ
Cache key: MD5 hash của endpoint
Sử dụng Prompts với Continue Extension (Bộ 3 bước Figma -> Block)
Thư mục prompts/examples/continue-extensions/ chứa 3 file prompt giúp tự động hoá việc quét Figma, phân tích và sinh code HTML/Tailwind + JSON.
Cài đặt Prompts
Copy 3 file .prompt.md vào thư mục prompts của Continue:
cp prompts/examples/continue-extensions/*.prompt.md ~/.continue/prompts/Nếu muốn dùng thư mục khác, thêm cấu hình trong ~/.continue/config.json:
{
"experimental": {
"mcpServers": {
"figma": { ... }
}
},
"prompts": {
"include": [
"/path/to/figma-mcp/prompts/examples/continue-extensions"
]
}
}Luồng thực thi 3 bước
Bước 1: Quét Page Figma → Master Plan
Gọi lệnh trong Continue Chat:
/figma-page https://www.figma.com/file/ABC123/design-nameKết quả: Tạo file plans/page-master.md chứa danh sách các Section và lệnh copy-paste.
Bước 2: Phân tích Section → Plan chi tiết
Từ danh sách ở Bước 1, copy từng lệnh và chạy:
/figma-section https://www.figma.com/file/ABC123/design-name?node-id=123-456 -> src/blocks/heroKết quả: Tạo file src/blocks/hero/plan.md chứa DOM Tree, JSON Schema, responsive strategy.
Bước 3: Build HTML/Tailwind + JSON từ Plan
Gọi lệnh:
/figma-build src/blocks/heroKết quả: Sinh file src/blocks/hero/index.html và src/blocks/hero/data.json.
Lưu ý: Bước 3 yêu cầu tool
save_component_datado Node.js MCP server cung cấp (cần implement riêng nếu chưa có).
License
ISC
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
- Flicense-qualityDmaintenanceAn MCP server that provides write access to Figma through the Plugin API, enabling AI agents to create, modify, and manage Figma designs programmatically.Last updated23
- Alicense-qualityCmaintenanceAn open-source MCP server that gives AI assistants full read-write access to Figma, enabling creation, editing, and deletion of designs directly without plugins or API keys.Last updated689MIT
- AlicenseBqualityDmaintenanceAn MCP server that integrates AI agents with Figma, enabling reading and programmatic modification of designs.Last updated41MIT
- Flicense-qualityAmaintenanceA local MCP server that gives AI agents live access to open Figma files for design handoff and UX writing without API tokens or rate limits.Last updated2
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
An MCP server that integrates with Discord to provide AI-powered features.
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/vnsunny-dev/-figma-mcp-selfhost'
If you have feedback or need assistance with the MCP directory API, please join our Discord server