mcp-figma
Provides tools for reading, creating, modifying, styling, and exporting design nodes in Figma documents via the Figma Plugin API, enabling AI agents to manipulate designs in real-time on Figma Desktop.
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., "@mcp-figmaCreate a login page with email and password fields"
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.
mcp-figma
MCP server that bridges AI clients (Claude, Cursor, GPT) to Figma Desktop via Plugin API + WebSocket. Zero rate limits, free, real-time design manipulation.
Why This Exists
Figma's REST API is rate-limited (6 calls/month on free tier) and existing MCP servers all wrap that same API. mcp-figma takes a different approach — it uses the Figma Plugin API running inside your desktop app, which has no rate limits and is completely free.
Related MCP server: Agent to Figma MCP
How It Works
Three components run simultaneously:
Component | What it does | How to start |
WebSocket Server | Relay with token auth + channel routing |
|
Figma Plugin | Executes commands inside Figma Desktop | Import in Figma |
MCP Server | Exposes 25 design tools to AI via stdio | Configure in AI client |
Quick Start
Prerequisites
Step 1: Install & Build
git clone https://github.com/tranhoangtu-it/mcp-figma.git
cd mcp-figma
npm install
npm run buildStep 2: Start WebSocket Server
npm run wsOutput:
[ws] WebSocket server listening on 127.0.0.1:3055
[ws] Session token: abc123... ← Copy this token!Step 3: Import Figma Plugin
Open Figma Desktop
Go to Plugins → Development → Import plugin from manifest...
Navigate to
mcp-figma/src/figma-plugin/and selectmanifest.jsonRun the plugin: Plugins → Development → MCP Figma Bridge
Paste the session token from Step 2 → Click Connect
Status dot turns green = connected
Step 4: Configure Your AI Client
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"mcp-figma": {
"command": "node",
"args": ["/absolute/path/to/mcp-figma/dist/mcp-server/index.js"],
"env": {
"MCP_FIGMA_TOKEN": "paste-token-from-step-2"
}
}
}
}Cursor
Add to MCP settings (Settings → MCP Servers):
{
"mcp-figma": {
"command": "node",
"args": ["/absolute/path/to/mcp-figma/dist/mcp-server/index.js"],
"env": {
"MCP_FIGMA_TOKEN": "paste-token-from-step-2"
}
}
}Windsurf / Other MCP Clients
Any MCP-compatible client works — configure it to run node dist/mcp-server/index.js with the MCP_FIGMA_TOKEN environment variable.
Step 5: Try It!
Ask your AI: "Create a login page in Figma with email input, password input, and a blue submit button"
Watch it appear in real-time on your Figma canvas.
Available Tools (25)
Read Design
Tool | Description |
| Document name, pages, current page |
| Currently selected nodes |
| Detailed properties of a node by ID |
| All top-level nodes on a page |
| Find all text nodes in subtree |
| Find nodes by type (FRAME, TEXT, etc.) |
Create Nodes
Tool | Description |
| Frame with position, size, fill, auto-layout |
| Rectangle with fill and corner radius |
| Text node (Inter font default) |
| Ellipse or circle |
Modify Nodes
Tool | Description |
| Move to new X/Y coordinates |
| Change width and height |
| Rename a node |
| Round corners |
| Remove from canvas |
| Duplicate a node |
| Group multiple nodes |
| Configure auto-layout direction, spacing, padding |
Style Nodes
Tool | Description |
| Solid fill color (RGBA 0-1) |
| Stroke color and width |
| Update text content |
| Change font size |
| Set transparency (0-1) |
| List all local paint/text styles |
Export
Tool | Description |
| Export as PNG, SVG, or PDF (base64) |
Configuration
Environment Variable | Default | Description |
| (required) | Session token from WebSocket server |
|
| WebSocket server port |
|
| Channel name for communication |
Development
npm run build # Build with tsup
npm run dev # Watch mode (auto-rebuild)
npm run ws # Start WebSocket relay server
npm run start # Start MCP server (needs MCP_FIGMA_TOKEN)
npm test # Run all tests
npm run test:ws # Run WebSocket tests onlySecurity
Measure | Details |
Localhost only | WebSocket binds to |
Token auth | Per-session random token, timing-safe comparison |
Channel isolation | Clients can only message their own channel |
Schema validation | All messages validated with Zod before processing |
Input sanitization | Design data sanitized before reaching AI |
Rate limiting | 100 messages/sec per client |
Heartbeat | Dead connections detected and cleaned up |
Troubleshooting
Problem | Solution |
Plugin won't connect | Check token matches, WS server is running, port 3055 not blocked |
"Font not found" error | Figma defaults to Inter — ensure it's installed or specify available font |
MCP server exits immediately | Check |
Tools timeout after 30s | Ensure Figma plugin is connected (green status dot) |
Port 3055 in use | Set |
Contributing
See CONTRIBUTING.md for development setup, conventions, and how to add new tools.
License
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.
Latest Blog Posts
- 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/tranhoangtu-it/mcp-figma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server