OpenFigma MCP
Generates Angular component code from Figma designs.
Reads and simplifies Figma design data, extracts design tokens, generates code, and performs accessibility audits and design-vs-code drift detection via the Figma REST API.
Generates Flutter widget code from Figma designs.
Generates React component code (inline styles or Tailwind CSS) from Figma designs.
Generates Svelte component code from Figma designs.
Generates SwiftUI component code from Figma designs.
Click on "Deploy 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., "@OpenFigma MCP extract design tokens from my app figma file"
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.
OpenFigma MCP (Enterprise Beast Edition v2.0)
The Autonomous Design Fabric (ADF). Zero-dependency, ultra-high-throughput Model Context Protocol (MCP) server for Figma. Reads online designs via free PAT or offline
.figKiwi binaries directly in microseconds. Solves layouts via Taffy 2.0 (Flexbox + CSS Grid), renders offline SVG vectors, provides an open Code Connect engine, transpiles code back to canvas, exports tokens to 8 formats, synthesizes code for 9 frameworks, runs APCA + DLP audits, and writes changes back to the live Figma canvas via a free companion plugin.
⚡ What Makes OpenFigma Beast Edition Superior?
Capability | Official Figma MCP ( | Framelink ( | Southleft ( | OpenFigma MCP v2.0 (Beast) |
Pricing / Seats | ❌ Paid Dev Mode seat ($25–$35/mo) | ✅ Free PAT | ✅ Free PAT | 👑 100% Free (PAT, OAuth, or Offline .fig) |
Offline Binary | ❌ Cloud only | ❌ No | ❌ No | 👑 Yes (Native Kiwi Binary Engine) |
Execution Engine | Proprietary Cloud | Node.js | Node.js | 👑 Dual Engine: Rust SIMD Core + Universal Node |
Layout Solver | Cloud compute | None (raw bounding boxes) | None | 👑 Taffy 2.0 (Full CSS Grid + Flexbox) |
Vector Rendering | Slow cloud | ❌ None | ❌ None | 👑 Pure Vector SVG Engine (< 2ms offline) |
Code Connect | ❌ Requires Enterprise Dev Mode | ❌ None | ❌ None | 👑 Open Code Connect ( |
Code-to-Canvas | ❌ None | ❌ None | ❌ None | 👑 HTML/JSX/Tailwind $\to$ Figma Scenegraph |
Context Compression | Low (~250k tokens/screen) | Medium (~3-4×) | Medium (~3×) | 👑 Hyper-Pruned CSM + Symbol Table (< 15k tokens) |
Design Tokens | Basic | ❌ None | ✅ DTCG JSON | 👑 8 Formats (TW3/TW4/CSS/SCSS/W3C/TS/Flutter) |
Code Generation | React only | ❌ None | Scaffolding | 👑 9 Frameworks (React, Vue, Svelte, Angular, Solid, Flutter, etc.) |
Accessibility Audit | Basic | ❌ None | WCAG 2.1 | 👑 WCAG 2.2 + APCA ($L^c$ Perceptual Math) |
Prompt Injection Defense | ❌ None | ❌ Open CVE Vector | ❌ None | 👑 Aho-Corasick SIMD Automaton (10 GB/s) |
DLP Secret Scanner | ❌ None | ❌ None | ❌ None | 👑 Catches AWS, OpenAI, GitHub, Private Keys |
Enterprise Caching & Circuit Breaker | ❌ None | ❌ None | ❌ None | 👑 L1/L2 Cache + ETag 304 + Circuit Breaker |
Canvas Mutation (Write) | ⚠️ Requires Full Seat ($75+/mo) | ❌ Read-Only | ✅ Desktop Bridge | 👑 Free Companion WebSocket Bridge (Port 3845) |
Related MCP server: Figma MCP Server
🚀 Quickstart & Installation
Option 1: Native Rust CLI (Maximum Performance)
# Build native binary
cargo build --release
# Run MCP stdio server for Cursor / VS Code / Claude Code
./target/release/open-figma --stdio
# Or start the local HTTP/SSE & companion WebSocket server on :3845
./target/release/open-figma serve --port 3845Option 2: One-Command NPX / Node
# Zero-install stdio mode
npx -y openfigma-mcp --stdio --figma-api-key figd_YOUR_TOKEN
# HTTP / SSE server
npx -y openfigma-mcp --port 3845 --figma-api-key figd_YOUR_TOKENOption 3: Genuine Native Electron Desktop Workbench
# Launches dedicated native desktop application with layer hierarchy AST, tokens palette, and live code generator
npm run desktop💻 CLI Commands
1. Fetch & Prune Scenegraph
# YAML output (default, token-minimal)
open-figma fetch "https://figma.com/design/AbC123XyZ/App?node-id=12-822"
# Offline .fig archive (Zero API calls, zero internet required!)
open-figma fetch ./designs/mobile-app.fig --format=json2. Extract Design Tokens
open-figma tokens "https://figma.com/design/AbC123XyZ/App" --format=tailwind-v4
# Formats: tailwind-v4 | tailwind-v3 | css | scss | w3c | style-dictionary | typescript | flutter3. Multi-Framework Codegen
open-figma codegen "https://figma.com/design/AbC123XyZ/App?node-id=12-822" --framework=react-tailwind
# Frameworks: react-tailwind | react-inline | vue | svelte | angular | solid | html-css | flutter | swiftui4. Pure Vector SVG Rendering
# Generate pure vector SVG directly from design
open-figma svg "https://figma.com/design/AbC123XyZ/App?node-id=12-822"
# Or as a base64 data URI
open-figma svg ./designs/mobile-app.fig --data-uri5. Open Code Connect
# Query mapped production components
open-figma connect "https://figma.com/design/AbC123XyZ/App?node-id=12-822"
# Auto-scaffold starter code-connect.json from a design system
open-figma connect ./designs/ui-kit.fig --scaffold > code-connect.json6. Code-to-Canvas Transpilation
open-figma transpile '<button class="flex p-4 bg-blue-600 rounded-lg text-white font-bold">Save</button>'7. Forensic APCA & DLP Security Audit
open-figma audit "https://figma.com/design/AbC123XyZ/App"8. Interactive Developer REPL
open-figma repl📦 Client SDKs
TypeScript / JavaScript SDK (@open-figma/sdk)
import { OpenFigmaClient } from '@open-figma/sdk';
const client = new OpenFigmaClient({ endpoint: 'http://localhost:3845' });
// Fetch compressed context
const context = await client.getFigmaData('https://figma.com/design/xyz');
// Extract tokens in Tailwind v4
const tokens = await client.getDesignTokens('https://figma.com/design/xyz', 'tailwind-v4');
// Generate React component
const code = await client.generateCode('https://figma.com/design/xyz', 'react-tailwind');
// Render SVG vector
const svg = await client.renderSvg('https://figma.com/design/xyz');Python SDK (open-figma-sdk)
from open_figma_sdk import OpenFigmaClient
client = OpenFigmaClient(endpoint="http://localhost:3845")
# Fetch context
yaml_data = client.get_figma_data("https://figma.com/design/xyz")
# Extract tokens
css_theme = client.get_design_tokens("https://figma.com/design/xyz", format="tailwind-v4")
# LangChain integration
from open_figma_sdk.langchain_tools import OpenFigmaLangChainTool
tool = OpenFigmaLangChainTool(client)☸️ Cloud-Native Enterprise Deployment
Kubernetes Helm Deployment
helm install open-figma-mcp ./helm/open-figma-mcp \
--set env.FIGMA_API_KEY="figd_..." \
--set autoscaling.minReplicas=3 \
--set autoscaling.maxReplicas=20Terraform / OpenTofu Modules
AWS ECS Fargate:
terraform/aws/main.tfGCP Cloud Run v2:
terraform/gcp/main.tf
Observability & Metrics
Prometheus metrics:
GET /metricsKubernetes probes:
GET /healthz,GET /readyz
🎨 Free Companion Figma Plugin
To enable live canvas mutations (creating frames, writing text, and editing components from your AI agent):
In Figma, go to Plugins $\to$ Development $\to$ Import plugin from manifest...
Select
figma-plugin/manifest.json.Click Run. The plugin connects to
ws://127.0.0.1:3845and enables instant bidirectional write capabilities.
🧪 Comprehensive Multi-Runtime Test Suites
# Run native Rust unit & CLI integration tests (27 passed)
cargo test --workspace
# Run Node.js enterprise engine, IPC & canvas tests (44 passed)
npm test
# Run TypeScript SDK tests (2 passed)
npm run test:sdk:ts
# Run Python SDK tests (3 passed)
python sdk/python/test_client.py
# Run all suites simultaneously (76 unit/integration tests + 20 benchmark/live probes, 0 failures)
npm run test:allAvailable Tools
19 toolsai_omni_routeB
Dispatches a design prompt through the multi-provider 3-tier fallback router (Claude, OpenAI, Gemini, DeepSeek, Groq, Ollama) with RTK token compression.
Inputs: prompt (required), preferredModel.
audit_accessibility_and_securityC
Runs APCA & WCAG 2.2 contrast compliance, DLP secret leak scanning, and prompt injection defense.
Inputs: url (required).
canvas_create_design_system_scaffoldB
Builds a complete design system artboard in Figma with title banner and 7 token color swatch cards.
Inputs: brandName, primaryColor.
canvas_create_frameC
Creates a frame on the active Figma canvas via companion plugin.
Inputs: name (required), width (required), height (required).
canvas_create_hero_sectionC
Generates a high-impact marketing hero section with badge pill, title, subtitle, and CTA buttons directly on the Figma canvas.
Inputs: badge, theme, title, subtitle, +2 more.
canvas_create_rectangleC
Creates a rectangle shape on the active Figma canvas via companion plugin.
Inputs: name (required), width (required), height (required), cornerRadius.
canvas_create_textC
Creates a text node on the active Figma canvas via companion plugin.
Inputs: text (required), fontSize.
canvas_insert_codeB
Transpiles HTML / JSX / Tailwind code and immediately instantiates it as native layers on the live Figma canvas.
Inputs: code (required).
capabilitiesB
Returns active server capabilities, runtime mode, and companion plugin bridge status.
Inputs: no named parameters.
design_checkpoint_createB
Creates an immutable LayerFS checkpoint of current design state to enable instant rollback if AI modifications fail.
Inputs: url (required), description, checkpointId.
design_checkpoint_diffB
Computes structural AST diff between two design checkpoints (added, modified, removed nodes).
Inputs: baseCheckpointId (required), targetCheckpointId (required).
design_checkpoint_rollbackC
Restores an earlier design checkpoint state in < 15ms.
Inputs: checkpointId (required).
generate_codeC
Generates production UI component code for 9 frameworks (React-Tailwind, Vue, Svelte, Angular, Solid, HTML/CSS).
Inputs: url (required), framework.
get_code_connectC
Maps Figma nodes to real production codebase components using Open Code Connect registry.
Inputs: url (required), scaffold.
get_design_tokensB
Exports design tokens in 8 formats (Tailwind v3/v4, CSS variables, SCSS, W3C DTCG, TypeScript, Flutter).
Inputs: url (required), format.
get_figma_dataB
Extracts simplified, deduplicated design context (YAML/JSON) from a Figma URL without burning LLM context tokens.
Inputs: url (required), depth, format.
render_svgB
Generates pure vector SVG markup or base64 data URI directly from any Figma frame or node.
Inputs: url (required), data_uri.
transpile_code_to_canvasC
Transpiles HTML / JSX / Tailwind code into native Figma scenegraph nodes for bidirectional canvas synthesis.
Inputs: code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have clear distinct purposes (tokens, SVG rendering, checkpoints, audit), but there is real overlap: transpile_code_to_canvas and canvas_insert_code both transpile HTML/JSX/Tailwind into Figma nodes, differing only in whether they instantiate live layers. The canvas_create_navbar / canvas_create_hero_section / canvas_create_design_system_scaffold presets also overlap heavily with what canvas_insert_code or generate_code could produce, making selection non-obvious.
All names use snake_case and group prefixes (canvas_*, design_checkpoint_*) are applied consistently within groups. However, verb conventions are mixed: some are verb_noun (get_figma_data, generate_code), some are bare nouns (capabilities), and some are compound/opaque (ai_omni_route, audit_accessibility_and_security), so the pattern is only partially predictable.
19 tools is on the heavy side for a single Figma integration, and several (navbar, hero section, design system scaffold) are convenience presets that could arguably be derived from the generic canvas_insert_code path. The set is coherent as a whole, but it sits in the 16-25 range where each tool's necessity becomes questionable.
Coverage is broad: read/extract, tokens, codegen, SVG export, live canvas write, accessibility/security audit, AI routing, and checkpoint create/rollback/diff form a fairly complete design-to-code lifecycle. The main gap is on the canvas write side, which only offers creation — there is no update, move, or delete operation for existing nodes, so agents cannot revise what they placed.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA 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.3-
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that enables AI agents to retrieve Figma design data for generating code, templates, or custom prompts.ISC
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI coding agents access to Figma design data, enabling pixel-perfect implementation of designs through structured data extraction, image downloads, and design token retrieval.43 npm1MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that enables AI tools to read and write Figma designs via a plugin bridge, bypassing the Figma REST API and rate limits.81MIT