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 "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., "@OpenFigma MCPextract 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
Stop your AI agent from burning 350k tokens on a single Figma screen. OpenFigma returns a deduplicated, simplified design — typically 3–4× smaller than the raw API JSON — then turns it into tokens, code for 8 frameworks, and accessibility/diff/drift reports. All on a free Figma Personal Access Token. No paid Dev Mode seat.
The most capable free Model Context Protocol (MCP) server for Figma. It connects your designs to AI coding assistants (Lovable, Cursor, VS Code, Claude, Gemini) without a paid Figma Dev Mode seat — using a free Personal Access Token against the Figma REST API.
It is a drop-in superset of Framelink's figma-developer-mcp (same get_figma_data, simplified output, CLI fetch, config flags) and then goes well beyond every free and paid competitor.
✨ What makes it stand out
OpenFigma is the only free Figma MCP that does all of these — several of which no Figma MCP at any price offers:
Capability | OpenFigma | Framelink | Composio | Figma Official |
Works on a free PAT (no Dev seat) | ✅ | ✅ | ✅ | ❌ |
Simplified data + | ✅ | ✅ | ~ | ~ |
Design-token export — 8 formats (CSS/SCSS/TW3/TW4/JS/TS/W3C/style-dictionary) | ✅ | ❌ | ~ (Tailwind only) | ❌ |
Multi-framework codegen (React-Tailwind/inline, Vue, Svelte, Angular, HTML, Flutter, SwiftUI) | ✅ | ❌ | ❌ | ~ (React only) |
WCAG accessibility audit | ✅ | ❌ | ❌ | ❌ |
Design diff between versions | ✅ | ❌ | ❌ | ❌ |
Design-vs-code drift detection | ✅ | ❌ | ❌ | ❌ |
Typed component-API generation | ✅ | ❌ | ❌ | ~ |
Inline-SVG icon extraction | ✅ | ❌ | ❌ | ❌ |
Prompt-injection hardening | ✅ | ❌ (open CVE) | ❌ | ❌ |
Comments / versions / image-fills / dev-resources | ✅ | ❌ | ✅ | ~ |
Localhost asset serving | ✅ | ❌ | ❌ | ✅ |
Honest about what it can't do (no fake "success") | ✅ | — | — | — |
Related MCP server: figmind
🚀 Core features
Free-account friendly — PAT or OAuth Bearer token; no paid Dev Mode seat.
Simplified design data —
get_figma_datakeeps only what matters (layout, fills, strokes, effects, text, radius, opacity, bbox), converts autolayout → flexbox, colors → hex, and deduplicates styles into aglobalVarsblock. ~3–4× smaller than raw API JSON; far smaller on style-heavy files. Untrusted Figma text is scanned for prompt injection and flagged.Design → tokens → code, in one server — extract a full design-token system, export it to 8 formats, generate typed components for 8 framework targets (React-Tailwind, React-inline, Vue, Svelte, Angular, HTML/CSS, Flutter, SwiftUI), and pull real inline-SVG icons.
Quality + safety tooling — WCAG contrast audit, version diffing, and design-vs-code drift detection.
Three output formats —
yaml(default),json, ortree.CLI —
fetch,tokens,codegen,auditsubcommands print straight to stdout.Auto-routing assets + rules writer — downloads images into the right
figma-export/folder and keepsLOVABLE.md/.cursorrulescurrent; serves assets over localhost in HTTP mode.Dual transport + multi-tenant — HTTP/SSE (Lovable, default port 3845) or stdio; per-request
X-Figma-Tokenheader for shared deployments.Honesty layer — canvas-write tools (which need the Plugin API, impossible over REST) return a structured
supported:falseinstead of fabricating success. Acapabilitiestool reports exactly what will work.
🛠️ Installation & Usage
One-command (npx)
npx open-figma-mcp --figma-api-key figd_YOUR_TOKEN --stdioLocal clone
npm install
node src/server.js --figma-api-key figd_YOUR_TOKEN # HTTP/SSE on :3845
node src/server.js --figma-api-key figd_YOUR_TOKEN --stdio # stdio for editors⌨️ CLI fetch
Print simplified design data and exit — same pipeline as the get_figma_data tool.
# YAML (default)
node src/server.js fetch "https://figma.com/design/ABC123/My-File?node-id=12-822" --figma-api-key figd_x
# JSON, piped into jq
node src/server.js fetch "https://figma.com/design/ABC123/My-File?node-id=12-822" --figma-api-key figd_x --format=json | jq '.nodes[0]'
# Experimental compact tree
node src/server.js fetch "https://figma.com/design/ABC123/My-File?node-id=12-822" --figma-api-key figd_x --format=tree
# Explicit flags instead of a URL, with a depth cap
node src/server.js fetch --file-key ABC123 --node-id 12:822 --depth 3 --figma-api-key figd_xWrap URLs in quotes — characters like
&and?break unquoted in most shells.
fetch flags: --file-key, --node-id, --depth, --format, --json, --figma-api-key, --figma-oauth-token, --env. Explicit flags override values parsed from the URL.
More CLI subcommands
# Export design tokens (css/scss/tailwind/tailwind4/js/ts/json/style-dictionary)
node src/server.js tokens "https://figma.com/design/ABC123/..." --figma-api-key figd_x --format=tailwind4 > theme.css
# Generate component code from a node
node src/server.js codegen "https://figma.com/design/ABC123/...?node-id=12-822" --figma-api-key figd_x --framework=vue
# WCAG accessibility audit (JSON)
node src/server.js audit "https://figma.com/design/ABC123/..." --figma-api-key figd_x --page-background "#0b0b0b"⚙️ Configuration
All options can be set via CLI flag or environment variable. Precedence: CLI args > environment > defaults. (A per-request X-Figma-Token header overrides everything for that one request.)
CLI flag | Env var | Default | Description |
|
| — | Figma Personal Access Token |
|
| — | OAuth Bearer token (uses |
|
|
| HTTP port (3845 = Lovable autodetect) |
|
|
| HTTP host |
|
|
|
|
| — | — | Alias for |
|
| autodetected | Base dir for image downloads |
|
|
| Don't register image download tools |
|
| — | HTTP(S) proxy URL, or |
| — |
| Load env vars from a custom |
| — | — | Run over stdio (editors) instead of HTTP |
|
| — | Accepted for compatibility (OpenFigma collects no telemetry) |
| — | — | Print help / version and exit |
Lovable note: the default port is
3845so Lovable Desktop can autodetect the connector. For drop-in compatibility withfigma-developer-mcpconfigs that assume3333, setFRAMELINK_PORT=3333or--port=3333.
Authentication
Personal Access Token (recommended): generate under Figma → Settings → Security → Personal access tokens with File content: Read and Dev resources: Read scopes.
OAuth Bearer token: pass
--figma-oauth-token/FIGMA_OAUTH_TOKEN; the server then sendsAuthorization: Bearerinstead ofX-Figma-Token. OAuth takes precedence over a PAT when both are set.Per-request (HTTP mode): send
X-Figma-Token: figd_xxxxon each request to override the server's configured credentials for that request only — ideal for centrally hosted, multi-user deployments.
Network proxy
Behind a corporate proxy? Set --proxy=http://proxy:8080 (or FIGMA_PROXY). The server also respects the standard HTTP_PROXY / HTTPS_PROXY / NO_PROXY variables automatically. Use --proxy=none to ignore inherited proxy env vars and connect directly.
🤖 MCP Client Setup
Lovable Desktop
Start the server in HTTP mode on port 3845; Lovable scans localhost and enables the connector automatically.
Cursor / VS Code / Claude Desktop
{
"mcpServers": {
"open-figma-mcp": {
"command": "node",
"args": ["C:/path/to/open-figma-mcp/src/server.js", "--stdio"],
"env": { "FIGMA_API_KEY": "figd_YOUR_TOKEN" }
}
}
}HTTP / SSE
{
"mcpServers": {
"open-figma-mcp": {
"url": "http://localhost:3845/sse",
"env": { "FIGMA_API_KEY": "figd_YOUR_TOKEN" }
}
}
}🧰 Tools
Read & simplify
get_figma_data— fetch + simplify a file ornodeIds(withdepth), in yaml/json/tree. Start here.get_metadata/get_design_context— lighter structural views.get_variable_defs— variables/tokens (falls back to document styles on free accounts).get_figjam,get_libraries,search_design_system,whoami.
Design → code
get_design_tokens— extract a token system, export ascss/scss/tailwind/tailwind4/js/ts/json(W3C)/style-dictionary.generate_code— component code inreact-tailwind,react-inline,vue,svelte,angular,html,flutter, orswiftui(responsive via constraints).generate_component_api— typed TSinterface/ VuedefinePropsfrom component properties & variants.extract_vectors— real inline SVG icons from path geometry (themeablecurrentColor).
Quality & review
audit_accessibility— WCAG contrast + tap-target audit.get_design_diff— semantic diff between two file versions (added/removed/changed nodes).audit_drift— design tokens vs. your repo's colors (missing / stale / near-miss).
Figma API coverage
get_comments/add_comment,get_versions,get_image_fills,get_dev_resources,get_projects.download_figma_images/download_assets/get_screenshot(disabled by--skip-image-downloads).
Meta
capabilities— what this server can and cannot really do.Code Connect toolchain (
get_code_connect_map,get_code_connect_suggestions, …).Canvas-write tools (
use_figma,create_new_file,generate_figma_design,generate_diagram,upload_assets) honestly returnsupported:false— REST cannot write to the canvas; usegenerate_code+download_assetsinstead.
✅ Testing
npm run test:unit # offline, deterministic (serializers, simplify, config, proxy, URL parsing)
npm run test:integration # spins up the server over stdio + exercises the CLI fetch
npm test # bothThe unit tests run with no network and no token; the simplification tests use a cached fixture when present.
🤝 Project & community
Contributing guide — dev setup, how to add a framework or token format
Changelog — what changed, version by version
Security policy — how to report issues, and the localhost/auth notes
Launch & market-research notes — positioning and roadmap
Issues and PRs are welcome. Good first issues are labeled. If OpenFigma saved you tokens, a ⭐ helps others find it.
📄 License
MIT License. Feel free to share and modify!
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
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/Shivam990q/open-figma-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server