figma-proxy-mcp
Provides tools for design inspection, CSS and layout specs, component and variable extraction, HTML codegen, image export, and UX writing audit for Figma files.
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-proxy-mcpGet the CSS for the primary button component"
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-proxy-mcp
Live Figma access for AI agents via MCP. No REST API token. No rate limits. No stale exports.
Why this exists
Every existing path from an AI agent to a Figma file goes through the REST API: generate a token, respect rate limits, and read a version of the file that may already be stale. This project takes a different route — a plugin running inside Figma Desktop, bridged to your agent over a local proxy.
Figma REST API | figma-proxy-mcp | |
Auth | Personal access token | None — plugin runs in your own session |
Rate limits | Yes, per-token | None |
Data freshness | Last saved version | Live document, including unsaved edits |
Write access | No (read-only endpoints) | Yes — text content, fills, visibility, geometry |
Selection awareness | No | Yes — reads your current selection |
An agent connected to this server can read design tokens, extract CSS, export assets, audit copy, and write text content — all against the file currently open in Figma Desktop.
Related MCP server: figma-mcp-write-server
Quickstart
Sixty seconds from clone to connected agent:
# 1. Start the servers
docker compose up -d
# 2. Build and load the plugin (once)
cd plugin && npm install && npm run build
# → Figma Desktop: Plugins → Development → Import plugin from manifest
# → select plugin/manifest.json, run the plugin
# 3. Connect your agent
claude mcp add figma --transport http http://localhost:3001/mcpAsk your agent to get_metadata — if it returns your file name, you're live.
Architecture
AI Agent (Claude, Cursor, Windsurf, …)
│
│ Streamable HTTP (MCP protocol)
▼
┌─────────────────────────────────┐
│ mcp-server :3001 │ Tool registry · RPC translation · Response processing
└─────────────┬───────────────────┘
│ HTTP POST /rpc
▼
┌─────────────────────────────────┐
│ websocket proxy :3000 │ Plugin connection manager · Multi-file routing
└─────────────┬───────────────────┘
│ WebSocket
▼
┌─────────────────────────────────┐
│ Figma Plugin │ Runs inside Figma Desktop · Executes Plugin API calls
└─────────────┬───────────────────┘
│ Plugin API
▼
Live Figma FilePrerequisites
Node.js 22+ — for local development
Docker + Docker Compose — for containerised deployment
Figma Desktop — the plugin requires the desktop Plugin API (not supported in the browser)
Installation
Option A — Docker (recommended)
docker compose upSet MCP_API_KEY and MCP_PUBLIC_URL in your environment (or an .env file) if you need authentication or remote access — see Configuration.
Option B — Local
cd websocket && npm install && npm run dev
cd mcp-server && npm install && npm run devFigma plugin
Build once, then load into Figma Desktop:
cd plugin && npm install && npm run buildOpen Figma Desktop
Plugins → Development → Import plugin from manifest
Select
plugin/manifest.jsonRun the plugin — the status indicator turns green when connected
The plugin reconnects automatically and persists the proxy URL across sessions.
Connecting an AI Tools
The MCP server speaks Streamable HTTP at http://localhost:3001/mcp. Any MCP client that supports HTTP transport can connect — the configurations below cover the common ones.
Before connecting: the two servers must be running and the Figma plugin must be active (green indicator) in Figma Desktop. Without the plugin, the client connects fine but every tool call returns "No Figma plugin connected. Run the plugin in Figma first."
Claude Code
claude mcp add figma --transport http http://localhost:3001/mcpIf MCP_API_KEY is set on the server, add the header:
claude mcp add figma --transport http http://localhost:3001/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Verify with claude mcp list — figma should report ✔ connected.
Claude Desktop
Edit the config file for your OS:
OS | Path |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"figma": {
"url": "http://localhost:3001/mcp"
}
}
}Restart Claude Desktop after saving — MCP servers are only loaded at startup. The figma server appears under the tools (🔨) icon when connected.
Cursor
Create or edit .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):
{
"mcpServers": {
"figma": {
"url": "http://localhost:3001/mcp"
}
}
}Then enable the server under Settings → MCP — it should list the available tools.
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"figma": {
"serverUrl": "http://localhost:3001/mcp"
}
}
}Refresh from Settings → Cascade → MCP Servers after saving.
Remote or tunneled server
To reach the server from another machine, expose port 3001 through a tunnel (Cloudflare Tunnel, ngrok, Tailscale Funnel, …), then point the client at the public URL:
claude mcp add figma --transport http https://your-tunnel.example.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Two server-side settings matter here (see Configuration):
MCP_API_KEY— always set this on a publicly reachable server; without it anyone with the URL can read and modify your open Figma file.MCP_PUBLIC_URL— set to the tunnel URL so assetdownloadUrls returned by export tools are reachable from the agent's machine.
Smoke test
Regardless of client, ask the agent to call get_metadata. A correct setup returns the open file's name, page list, and file key. If it fails:
Symptom | Likely cause |
Connection refused | MCP server not running on 3001 |
401 Unauthorized |
|
"No Figma plugin connected" | Plugin not running in Figma Desktop, or it can't reach the proxy on 3000 |
Slicing with the bundled skill
For design-to-code slicing, don't drive the tools by hand — this repo ships a figma-slice skill that orchestrates the full pipeline (reference screenshot, spec extraction, asset export, HTML build, and a ≥95% visual fidelity gate). Install it with:
npx skills add alfianyusufabdullah/figma-proxy-mcpThen invoke it from your agent with a node ID, or with nothing to slice the current Figma selection.
Configuration
Variable | Default | Description |
|
| WebSocket proxy address, consumed by the MCP server |
|
| Listening port for the MCP server |
| — | When set, all |
|
| Public base URL of the MCP server. Used to construct |
Tool reference
Node IDs accept both the internal colon format (2650:516) and the hyphen format found in Figma share URLs (2650-516). All tools accept an optional fileKey to target a specific open file; omit it when only one file is connected.
Document & node inspection
Tool | Key parameters | Description |
|
| Full node tree of the current page |
| — | Currently selected nodes |
|
| Fetch a single node and its subtree. Increase |
|
| Like |
|
| One-call slice bundle: complete node tree + layout specification + all SVG vector data |
|
| Depth-limited snapshot of one or more nodes, optimised for AI context windows |
| — | File name, page list, current page, file key |
CSS & layout
Tool | Key parameters | Description |
|
| CSS properties: dimensions, flex, color, padding, border-radius |
|
| Full auto-layout spec — direction, gap, padding, alignment, sizing mode |
|
| Constraints, grow flags, min/max sizes |
|
| Per-corner radii and corner smoothing factor |
|
| Per-side stroke weights, dash pattern, cap and join style |
|
| Drop shadows and blur effects with complete parameters |
| — | All local paint, text, effect, and grid styles |
Components & design tokens
Tool | Key parameters | Description |
|
| Property definitions, variant props, dev-mode status |
|
| Per-instance overrides and main component reference |
| — | All variable collections, modes, and raw values |
| — | Design tokens grouped by collection and mode |
|
| Variables bound to a node with their resolved mode values |
Assets & image export
Tool | Key parameters | Description |
|
| Scan a subtree for nodes that have export settings or image fills — use this to discover assets before exporting |
|
| Export nodes as PNG, JPG, PDF, or SVG. Returns |
|
| Export nodes as inline SVG markup strings |
|
| Extract raw image fill bytes from a node. Returns |
|
| Batch-export every exportable asset in a section. Returns |
| — | All unique hex colors extracted from fills and strokes |
| — | All font families and styles used in the document |
Asset download model
get_screenshot, get_image, and export_section_assets write exported files to the MCP server's temp directory (TTL: 10 minutes) and return a downloadUrl. The agent retrieves the file with a single command:
curl -o assets/hero.png "http://localhost:3001/dl/<id>"This pattern works uniformly across all deployment topologies — local, Docker, and tunneled remote. When the MCP server is tunneled, set MCP_PUBLIC_URL to the public URL so returned links are reachable from the agent's machine.
Alternatively, if the MCP server and the agent share a filesystem (local dev or Docker with a volume mount), pass outputPath (single node) or outputDir (batch) to write files directly without an intermediate download.
Text & copy
Tool | Key parameters | Description |
|
| Extract all text. Scope to a subtree with |
|
| Search text nodes by keyword or regular expression across all pages |
| — | Detect lorem ipsum, |
|
| Find text nodes whose content overflows their clipped container |
|
| Audit text style consistency; group results by page, font size, or font family |
|
| Per-segment rich text data: font, size, color, weight, hyperlink |
| — | All local text styles with complete typography properties |
|
| Replace the content of a text node. Handles mixed-font nodes. |
|
| Create a new text node |
Write operations
Tool | Key parameters | Description |
|
| Replace text content. Provides a clear error if the target node is not a TEXT node, listing any text children found inside it. |
|
| Show or hide a set of nodes |
|
| Replace a node's fill with a solid hex color |
|
| Update node geometry or name |
|
| Create a new text node |
set_text_content, set_solid_fill, and set_node_properties accept an updates array for bulk edits — one call updates many nodes, keeps going past per-node failures, and returns { results, succeeded, failed } with a per-node error message for each failure:
{ "tool": "set_text_content", "arguments": { "updates": [
{ "nodeId": "2650:516", "text": "Sign up free" },
{ "nodeId": "2650:517", "text": "No credit card required" }
] } }Code generation
Tool | Key parameters | Description |
|
| Convert a node to HTML with inline CSS |
|
| Convert an entire Figma page to a standalone HTML document |
|
| Export a node as Figma REST API JSON (v1 format) |
Contributing
Bug reports and feature requests are welcome — open an issue. For code changes:
npm install # root dev tooling (ESLint)
npm run lint # type-aware lint across all three services
npm run typecheck # tsc --noEmit for websocket + mcp-serverKeep pull requests scoped to one change, and make sure lint and typecheck pass before submitting.
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/alfianyusufabdullah/figma-proxy-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server