figma-mcp-write-server
An MCP server that provides write access to Figma through the Plugin API, enabling AI agents to create, modify, and manage Figma designs programmatically.
README
Figma MCP Write Server
A Model Context Protocol (MCP) server that provides write access to Figma through the Plugin API, enabling AI agents to create, modify, and manage Figma designs programmatically.
Designed with ❤️ by a human. Coded with ✨ by AI agents (Claude and Gemini)
[!WARNING] This project is in pre-release development mode (Semantic Versioning < 1.0.0). All tools, interfaces and definitions are subject to change.
🚀 Overview
Since Figma's REST API is read-only, this server uses the Plugin API to enable write operations, allowing AI agents to act as autonomous graphic designers.
| Feature | REST API MCP | Plugin API MCP (This Project) |
|---|---|---|
| Read Operations | ✅ Full access | ✅ Full access |
| Write Operations | ❌ Not supported | ✅ Full support |
| Real-time Updates | ❌ Polling only | ✅ Live connection |
| Rate Limits | Yes (REST API limits) | No (direct plugin access) |
| Setup Complexity | Simple | Moderate (requires plugin) |
| Offline Usage | ✅ Works offline | ❌ Requires active Figma session |
📋 Available Tools
Rather than a thin wrapper around the Figma API, tools are organized for intuitive use and discovery. Humans rely on the UI and good UX, but MCP tools have to be designed from the Agent's perspective.
Tool Categories
- Core Design:
figma_nodes,figma_text,figma_fills,figma_strokes,figma_effects - Layout & Positioning:
figma_auto_layout,figma_constraints,figma_alignment,figma_hierarchy - Design System:
figma_styles,figma_components,figma_instances,figma_variables,figma_fonts - Advanced Operations:
figma_boolean_operations,figma_vectors - Developer Tools:
figma_dev_resources,figma_annotations,figma_measurements,figma_exports - System:
figma_plugin_status,figma_pages,figma_selection,figma_images
These 24 tools provide complete access to Figma's capabilities - from creating basic shapes and text to building complex design systems with components and variables. Advanced features include boolean operations for combining shapes, vector manipulation for custom paths, and comprehensive export options for developer handoff.
See the Complete Guide for detailed documentation of each tool.
⚡ Quick Start
System Requirements
- Operating System - Windows 10+, macOS 10.14+, or Linux (Ubuntu 18.04+)
- Active Figma Session - Server requires an open Figma file to operate
- Network Connection - For font database sync and plugin communication
1. 📋 Install pre-requisites
- Node.js 22.x - Download from nodejs.org
- npm - Comes with Node.js (verify with
npm --version) - Figma Desktop - Required for Plugin API access (browser version has limitations)
- Download: figma.com/downloads (Windows 10+ or macOS 11+)
- Git - For cloning the repository
node --version # Should show v22.x.x
npm --version # Should show 8.0.0 or higher
git --version # Should show 2.0.0 or higher
Note: Node.js v22.x is specifically required due to better-sqlite3 pre-built binary compatibility. Other Node versions may require manual compilation which can fail on some systems.
2. Clone and Build Project
git clone git@github.com:oO/figma-mcp-write-server.git
cd figma-mcp-write-server
npm install
npm run build
3. Configure Claude Desktop
Add this configuration to your Claude Desktop MCP settings file:
Configuration:
{
"mcpServers": {
"figma-mcp-write-server": {
"command": "node",
"args": ["/path/to/figma-mcp-write-server/dist/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}
4. Install the Figma Plugin
- Open Figma Desktop
- Go to Plugins → Development → Import plugin from manifest
- Select
figma-plugin/manifest.jsonfrom the project directory - Run the plugin from Plugins → Development → Figma MCP Write Server
Optional: Customize server settings by copying config.example.yaml to your platform-specific config directory and editing as needed. See Configuration Guide for details.
🎯 Start Creating
Open Claude Desktop and use any of the 24 available tools to design programmatically
Layout & Structure
- "Create a header frame with title and subtitle"
- "Make this frame arrange its children vertically with 16px spacing"
- "Center text within frame" or "Align circle's center to rectangle's left edge"
- "Add a 2px red stroke to this rectangle with rounded end caps"
Design Systems
- "Create color palette and apply styles consistently"
- "Build button variants with different colors and styles"
- "Create design tokens for colors and spacing, bind to components"
Boolean Operations
- "Combine shapes with union, create cutouts with subtract"
- "Create complex logos by intersecting and excluding shapes"
- "Build icon libraries with consistent stroke-to-fill conversion"
Vector Operations
- "Create and edit vector shapes with vertices, paths, and bezier curves"
- "Convert shapes, strokes, and text to editable vector paths"
- "Extract or explode vector elements into separate shapes"
- "Flatten multiple vectors into single optimized paths"
Developer Handoff
- "Add annotations and measurements, generate CSS for developers"
- "Export selected components as PNG files"
- "Create design specifications with spacing measurements"
Images
- "List all images used in this page with usage information"
- "Create image node from https://example.com/photo.jpg"
- "Add image from local file ~/Desktop/logo.png at position 100,50"
- "Create image node from existing hash abc123 at position 150,200"
- "Export image data to Downloads folder in PNG format"
🚧 Current Limitations
- Active Session Required - Requires open Figma Desktop application with active file
- Manual Plugin Setup - Plugin must be manually installed and run for each session
- Single File Scope - Operations limited to currently open file and selected page
- Network Dependency - WebSocket connection can be unstable on poor networks
- Pattern Fill Creation - Pattern fills can be read but not created due to a known Figma Plugin API validation bug
- Desktop Only - Figma browser version has limited Plugin API access
📚 Documentation
- Complete Guide - Setup, tools, examples, and development
- Examples - Common design tasks with natural language
- Configuration - Advanced server settings
- Development - Technical reference for contributors
- Changelog - Version history and updates
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。