figma-rest-mcp
Provides tools to interact with the Figma REST API, enabling reading design files, retrieving design context for codegen, searching nodes, extracting text, accessing variables/tokens, listing projects and files, and generating renders.
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., "@figma-rest-mcp Get a lite design context for the signup screen in the mobile app 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.
figma-rest-mcp
Headless Figma MCP over REST. Talk to Figma from Cursor or Claude with your personal access token — deterministic, CI-friendly, no official MCP seat tool-call quotas.
Servidor MCP stdio (Node 20+, TypeScript) de Andrés Felipe Navarro Gómez. Lee archivos de Figma por la REST API. No es el MCP oficial de Figma.
Problema → solución
El MCP oficial de Figma corre dentro de Figma Desktop, consume cuotas de tool-calls del asiento, y no encaja en CI ni en un agente headless. La REST API sí: un PAT, api.figma.com, respuestas repetibles.
figma-rest-mcp expone esa REST como tools MCP: contexto de diseño recortado para codegen, búsqueda de nodos, copy, tokens (variables Enterprise o fallback), discovery de team/library. Desactiva el MCP oficial en el cliente para que el modelo no lo llame por error.
Esto no es un exploit de cuotas. Usas tu PAT, sujeto a los términos de Figma y a los rate limits de api.figma.com.
Related MCP server: figma-mcp-express
Quickstart
Crea un personal access token en Figma (Settings → Security). Mínimo:
current_user:read,file_content:read.Clona, instala, copia el env:
git clone https://github.com/Rompni/figma-rest-mcp.git
cd figma-rest-mcp
npm install
cp .env.example .env
# edita .env y pega FIGMA_ACCESS_TOKEN=figd_...Cursor —
~/.cursor/mcp.jsono.cursor/mcp.json(placeholders, nunca un token real en git):
{
"mcpServers": {
"figma-rest": {
"command": "npx",
"args": ["tsx", "/ABSOLUTE/PATH/TO/figma-rest-mcp/src/index.ts"],
"env": {
"FIGMA_ACCESS_TOKEN": "figd_your_personal_access_token_here"
}
}
}
}Claude Desktop: claude_desktop_config.json (macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\).
npm start # stdio MCP, REST-only
npm test && npm run buildSi el oficial sigue conectado, el modelo puede llamarlo igual y gastar esa cuota. Déjalo solo figma-rest.
Tools destacadas
file acepta key o URL (figma.com/design/...).
Tool | Para qué |
| Snapshot codegen de un subtree: id, bbox, flex aproximado desde auto-layout, texto + tipografía, fills, instancias. |
| Filtra por |
| Copy de nodos |
| Tokens: variables reales si hay Enterprise + |
| Discovery. |
| JSON REST con |
Otras: renders (get_images), image fills, libraries, comments, webhooks v2, bundle de assets a data URI (caps + allowlist SSRF). Catálogo completo en las descripciones de las tools.
Tokens
Enterprise +
file_variables:read→source: "variables", aliases a un nivel.Si no → fallback de estilos / valores repetidos del subtree. No son variables de Figma.
get_design_tokens_fallbackfuerza el fallback.fallback: falseenget_variable_defsdeja el 403 (Enterprise + scope).
Frente al MCP oficial
Este repo (REST) | MCP oficial (Desktop) | |
Headless / CI | Sí | No (hace falta Figma Desktop) |
Cuotas | Rate limit de | Tool-calls del asiento / plan MCP |
| Lite: árbol recortado, flex best-effort | Plugin API + semántica extra de codegen |
Variables | REST Enterprise, o fallback etiquetado | Definiciones vivas en el archivo abierto |
Escribir canvas | REST no puede. Bridge opt-in, comandos allowlist | Plugin API ( |
Determinismo | Alto (JSON de REST) | Depende del archivo abierto en Desktop |
Dónde ganamos: agentes, CI, cuotas predecibles, archivos sin abrir Desktop.
Dónde ganan ellos: magia de codegen, variables vivas, writes de canvas de primer nivel.
Limitaciones
Read-mostly. REST no crea ni muta nodos de diseño. Comments / webhooks / dev resources sí son REST de escritura, no canvas.
get_design_context_lite≠get_design_context. Sin Plugin API, sin plantillas oficiales, sin “semantic magic”.Variables reales = Enterprise +
file_variables:read. El resto es fallbackinferred: true.Write bridge es secundario y opt-in (
FIGMA_ENABLE_WRITE_BRIDGE=1). Solocreate_frame/set_textallowlist; no hay eval de JS. Defaultnpm startno registra esas tools.FigJam / Slides / Make / shaders: fuera de alcance para writes; lectura REST según lo que exponga la API.
Seguridad y ToS
El token es tuyo. No lo subas a git (
.gitignorecubre.env).El servidor no bypasea autenticación de Figma ni cuotas de asiento: deja de usar el MCP oficial y usa REST con PAT.
401 = PAT; 403 = scopes/plan (variables Enterprise, webhooks); 429 = rate limit REST (
Retry-After), no cuota MCP.Bridge (si lo enciendes): solo
127.0.0.1, token compartido, sin eval. Sigue ejecutando Plugin API en el archivo abierto.
Escritura Desktop (opt-in, no es el producto)
REST no escribe el canvas. Si lo necesitas: FIGMA_ENABLE_WRITE_BRIDGE=1, FIGMA_BRIDGE_TOKEN, plugin de desarrollo (plugin/manifest.json) en Figma Desktop, archivo Design. Comandos allowlist; el plugin rechaza scripts libres. Sin plugin, las tools fallan al instante (no cuelgan). Detalle en .env.example.
Licencia
MIT © 2026 Andrés Felipe Navarro Gómez. Ver LICENSE.
Publicar este repo en GitHub: PUBLISH.md.
Available Tools
41 toolsbundle_image_fillsBundle image fills as data URIsARead-only
Design-to-code helper: GET /v1/files/{key}/images then download each fill (Figma/S3 hosts only). Returns imageRef → { contentType, byteLength, dataUri }. Skips assets over max_bytes (default 250KB). Not canvas mutation.
Inputs: file (required), max_bytes, image_refs, max_assets.
create_dev_resourcesCreate dev resourcesC
POST /v1/dev_resources — attach a Dev Mode URL to a node. Scope: file_dev_resources:write.
Inputs: url (required), file (required), name (required), node_id (required).
create_webhookCreate webhookA
POST /v2/webhooks — Figma sends a PING on create unless status=PAUSED. Scope: webhooks:write. Requires passcode for endpoint verification.
Inputs: context (required), endpoint (required), passcode (required), context_id (required), +3 more.
delete_commentDelete a Figma commentADestructive
DELETE /v1/files/{key}/comments/{comment_id} — only the author can delete. Scope: file_comments:write.
Inputs: file (required), comment_id (required).
delete_comment_reactionDelete a comment reactionADestructive
DELETE /v1/files/{key}/comments/{comment_id}/reactions?emoji= — only the author can delete.
Inputs: file (required), emoji (required), comment_id (required).
delete_dev_resourceDelete a dev resourceADestructive
DELETE /v1/files/{key}/dev_resources/{id}. Scope: file_dev_resources:write.
Inputs: id (required), file (required).
delete_webhookDelete webhookADestructive
DELETE /v2/webhooks/{id} — irreversible. Scope: webhooks:write.
Inputs: webhook_id (required).
extract_textExtract text from a fileBRead-only
Utility: walk TEXT nodes and return { id, name, characters, parentId } copy. Default depth 8.
Inputs: file (required), ids, depth, limit.
find_nodesFind nodes by name or typeARead-only
Utility (not a REST endpoint): fetch a file tree then return only { id, name, type, absoluteBoundingBox, parentId } matches. Requires name and/or type. Prefer this over dumping get_file to locate a frame.
Inputs: file (required), ids, name, type, +3 more.
get_comment_reactionsGet comment reactionsCRead-only
GET /v1/files/{key}/comments/{comment_id}/reactions — auto-follows pagination.next_page.
Inputs: file (required), comment_id (required), auto_paginate.
get_commentsGet Figma commentsARead-only
GET /v1/files/{key}/comments — Figma returns the full comment list (not cursor-paginated). Optional as_md.
Inputs: file (required), as_md.
get_componentGet published componentARead-only
GET /v1/components/{key} — metadata for a published component key (library key, not a file key). Scope: library_assets:read.
Inputs: key (required).
get_design_context_liteGet design context (REST lite)ARead-only
REST-only codegen snapshot for a subtree: identity, bbox, best-effort CSS flex from auto-layout, text + typography, fill/stroke summaries, component/instance ids. Optional include_tokens attaches a compact token summary (variables or labeled fallback). Not official MCP get_design_context. Image fills are refs — use get_images or bundle_image_fills for pixels.
Inputs: file (required), depth, format, node_id, +2 more.
get_design_tokens_fallbackGet design tokens fallbackARead-only
Skip the variables API. Build labeled tokens from file styles (library_content:read) plus optional inferred fills/type/radii/spacing from a subtree. Every inferred token has inferred: true — not real Figma variables.
Inputs: file (required), mode, node_id, max_variables.
get_dev_resourcesGet dev resourcesARead-only
GET /v1/files/{key}/dev_resources — Dev Mode links on nodes. Scope: file_dev_resources:read.
Inputs: file (required), ids.
get_fileGet Figma fileBRead-only
GET /v1/files/{key} — file JSON. depth defaults to 2. mode=trim|summary|full shrinks node payloads (see README).
Inputs: file (required), ids, mode, depth, +2 more.
get_file_componentsGet file componentsBRead-only
GET /v1/files/{key}/components — published components in a file library. Scope: library_content:read.
Inputs: file (required).
get_file_component_setsGet file component setsBRead-only
GET /v1/files/{key}/component_sets — published component sets in a file library.
Inputs: file (required).
get_file_metaGet Figma file metadataARead-only
GET /v1/files/{key}/meta — lightweight file metadata (name, folder, thumbnail, role). Scope: file_metadata:read.
Inputs: file (required).
get_file_stylesGet file stylesBRead-only
GET /v1/files/{key}/styles — published styles in a file library. Scope: library_content:read.
Inputs: file (required).
get_file_versionsGet Figma file versionsARead-only
GET /v1/files/{key}/versions — version history. Auto-follows pagination.next_page. Scope: file_versions:read.
Inputs: file (required), page_size, auto_paginate.
get_image_fillsGet Figma image fillsARead-only
GET /v1/files/{key}/images — download URLs for images already uploaded as fills (imageRef). Not a node render; use get_images to rasterize frames.
Inputs: file (required).
get_imagesRender Figma node imagesARead-only
GET /v1/images/{key}?ids=&format= — render nodes to short-lived image URLs (png default). Distinct from get_image_fills (uploaded fill assets).
Inputs: ids (required), file (required), scale, format.
get_local_variablesGet local variablesARead-only
GET /v1/files/{key}/variables/local — raw REST (local + consumed remote). Enterprise + file_variables:read. Prefer get_variable_defs for codegen shape and automatic fallback.
Inputs: file (required).
get_nodesGet Figma nodesBRead-only
GET /v1/files/{key}/nodes?ids=... — specific nodes by id. Supports mode=trim|summary|full.
Inputs: ids (required), file (required), mode, depth, +1 more.
get_published_variablesGet published variablesARead-only
GET /v1/files/{key}/variables/published — raw REST published names (no valuesByMode). Enterprise + file_variables:read. Prefer get_variable_defs.
Inputs: file (required).
get_styleGet published styleARead-only
GET /v1/styles/{key} — metadata for a published style key (library key, not a file key). Scope: library_assets:read.
Inputs: key (required).
get_team_componentsGet team componentsARead-only
GET /v1/teams/{team_id}/components — published team library components. Auto-paginates meta.cursor.after. Scope: team_library_content:read.
Inputs: team, team_id, page_size, auto_paginate.
get_team_component_setsGet team component setsARead-only
GET /v1/teams/{team_id}/component_sets — published team library component sets. Auto-paginates meta.cursor.after. Scope: team_library_content:read.
Inputs: team, team_id, page_size, auto_paginate.
get_team_stylesGet team stylesARead-only
GET /v1/teams/{team_id}/styles — published team library styles. Auto-paginates meta.cursor.after. Scope: team_library_content:read.
Inputs: team, team_id, page_size, auto_paginate.
get_variable_defsGet variable / token defsARead-only
Preferred token path (REST, not official Desktop get_variable_defs). Tries local Figma variables first (Enterprise + file_variables:read), shapes { collections, modes, variables: [{ id, name, resolvedType, valuesByMode, scopes }] }, resolves aliases one level. If variables 403/empty and fallback is on (default), uses file styles + inferred subtree tokens labeled inferred: true. Pass node_id so fallback can resolve style usage and infer colors/type/radii/spacing.
Inputs: file (required), mode, node_id, fallback, +2 more.
get_webhookGet webhookARead-only
GET /v2/webhooks/{id}. Scope: webhooks:read. Passcode is redacted by Figma.
Inputs: webhook_id (required).
list_project_filesList project filesARead-only
GET /v1/projects/{project_id}/files — files in a project. Scope: projects:read.
Inputs: project (required), branch_data.
list_projectsList team projectsARead-only
GET /v1/teams/{team_id}/projects — projects visible to the PAT. Pass team (id or team URL) or set FIGMA_TEAM_ID. Scope: projects:read.
Inputs: team, team_id.
list_webhooksList webhooksARead-only
GET /v2/webhooks — list Webhooks v2 for a context (team/project/file) or plan_api_id. Auto-paginates next_page. Scope: webhooks:read. 403 usually means missing scope or plan without webhooks.
Inputs: context, context_id, plan_api_id, auto_paginate.
post_commentPost a Figma commentA
POST /v1/files/{key}/comments — add a comment or reply (comment_id of a root comment). Scope: file_comments:write.
Inputs: file (required), message (required), x, y, +4 more.
post_comment_reactionAdd a comment reactionB
POST /v1/files/{key}/comments/{comment_id}/reactions — emoji shortcode such as :heart: or :+1:.
Inputs: file (required), emoji (required), comment_id (required).
render_nodes_as_data_uriRender nodes as data URIsARead-only
GET /v1/images/{key} then download renders (Figma/S3 only) as data URIs. Same size/SSRF caps as bundle_image_fills. For design-to-code, not writing back to Figma.
Inputs: ids (required), file (required), scale, format, +2 more.
update_dev_resourcesUpdate dev resourcesA
PUT /v1/dev_resources — update name/url by dev resource id. Scope: file_dev_resources:write.
Inputs: id (required), url, name.
update_webhookUpdate webhookB
PUT /v2/webhooks/{id}. Scope: webhooks:write. Empty description deletes it.
Inputs: webhook_id (required), status, endpoint, passcode, +2 more.
whoamiFigma whoamiARead-only
GET /v1/me — the user that owns FIGMA_ACCESS_TOKEN. Does not include team_id; pass a team URL or id to list_projects (or set FIGMA_TEAM_ID).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 41 tools
Most tools target a unique resource and action, and descriptions explicitly cross-reference sibling functions (get_images vs get_image_fills, get_variable_defs vs fallbacks). However, the variable/token helpers and design-to-code utilities overlap closely enough that an agent could still pick the wrong one without careful attention.
The majority use snake_case verb_noun names, but conventions are mixed: list_projects vs get_team_components, post_comment vs create_dev_resources, singular/plural dev_resource(s), plus non-standard utility names like whoami, find_nodes, extract_text, and suffix-based helpers (_lite, _fallback).
41 tools is well beyond the comfortable range and spans many subdomains such as files, nodes, images, comments, libraries, variables, dev resources, and webhooks. This would be more manageable as several focused MCP servers.
The server covers the major Figma REST surface: file/project/team reads, node inspection, rendering, images, comments/reactions, component/style libraries, variables, dev resources, and webhook CRUD. Mutation-capable resources have read/write/update/delete covered, so agents are unlikely to hit dead ends.
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI agents to read, inspect, and export Figma designs programmatically. Provides tools for listing components, styles, and exporting assets in various formats.51-
- AlicenseNot gradedqualityBmaintenanceFast, quota-free Figma automation for coding agents, enabling AI agents to read, edit, migrate, audit, screenshot, and prototype inside Figma Desktop files.9MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, analyze, and modify Figma designs, including bulk style updates, accessibility audits, comment triage, and code generation from designs.842 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to read a Figma design and render a new one back through the Figma Plugin API using a single shared tree format, so designs can be inspected and built without a REST token or per-month call limit. Exposes tools for rendering whole screens, patching layers, finding and selecting nodes, managing pages, tokens and variables, capturing screenshots, exporting assets, and running Plugin API code.1MIT