Logo di Figma MCP Free

Figma MCP Free

Community
superdoccimo

Quota-aware, read-only Figma tooling for MCP clients, terminals, and code-generation workflows.

Autoresuperdoccimo
Repositoryfigma-mcp-free
LinguaTypeScript
Fork
9
Stelle
59
Strumenti disponibili
0
Tipo di trasportostdio
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Figma MCP Free mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    59 stelle e 9 fork nel repository collegato.

figma-mcp-free

CI License: MIT PRs Welcome

Quota-aware, read-only Figma tooling for MCP clients, terminals, and code-generation workflows.

figma-mcp-free provides two explicit read paths:

  1. a rate-aware Figma REST backend for files, nodes, components, tokens, and headless automation;
  2. an authenticated, loopback-only Figma development-plugin bridge for a user-approved capture of the current selection without a PAT or REST request.

Both paths feed the same bounded inspection and React, Vue, Svelte, or HTML starter-code generation pipeline. Neither path writes to Figma.

Capability Matrix

CapabilityREST backendLocal Plugin bridge
Headless useYesNo, Figma Desktop and an explicit capture are required
Figma PATRequiredNot required
Uses REST quotaYesNo
Whole-file and component metadataYesNo
Current selected nodesBy file/node IDYes
MCP and CLIYesYes
Read-onlyYesYes
Remote serviceFigma APINo, loopback only
Persistent snapshotBounded process cache onlyOne in-memory snapshot only

This project does not replace Figma Dev Mode or the official Figma MCP server. It provides a transparent open-source read pipeline with explicit limits.

Why This Project Exists

Figma REST API limits depend on endpoint, seat, plan, and resource location. This project treats network requests as a budgeted resource:

  • node IDs are de-duplicated and batched;
  • identical in-flight reads are joined;
  • successful responses use a bounded, short-lived memory cache;
  • a hard per-client request budget is available;
  • short-lived failures retry within configured ceilings;
  • long-lived or plan-related 429 responses fail fast with structured metadata;
  • response size can be bounded by depth or transformed into compact selection context;
  • the local Plugin bridge can capture the current selection without spending REST quota.

See Figma's official REST API rate-limit documentation for current limits. Figma may change them.

Features

  • MCP STDIO server with stable, read-only tools.
  • CLI for REST inspection, batch node reads, component search, token export, and code generation.
  • Local bridge CLI for serving, listing, inspecting, generating from, and clearing the captured selection.
  • Figma development plugin using JSON_REST_V1 after an explicit Capture & Send action.
  • Full /file and /design URL parsing with numeric node-id=1-2 normalization to 1:2.
  • Bounded implementation context through inspect_selection and inspect_current_selection.
  • W3C-style design tokens for colors, sizes, spacing, typography, and shadows.
  • Retry, timeout, cache, rate-limit metadata, request-budget, and cache-control APIs.
  • Protected local PAT storage with atomic replacement and owner-only POSIX permissions.
  • Automated, read-only fork-network auditing and contribution provenance.
  • CI across Node.js 18, 20, and 22 with build, typecheck, tests, smoke tests, secret checks, fork checks, Plugin boundary checks, and package-content checks.

Try It Without Figma or a Token

bash
git clone https://github.com/superdoccimo/figma-mcp-free.git
cd figma-mcp-free
pnpm install --frozen-lockfile
pnpm -r build
pnpm --filter figma-mcp-free dev -- \
  generate-from-json ./examples/sample-node.json \
  --framework react \
  --use-tokens ./examples/sample-tokens.json

The offline command does not contact Figma.

REST Quickstart

  1. Select a frame or component in Figma and copy a link to the selection.
  2. Use a /design or /file URL. /slides is not supported by this REST workflow.
  3. Store a PAT locally or provide FIGMA_TOKEN in the environment.
bash
pnpm --filter figma-mcp-free dev -- init
  1. Diagnose the environment and selected node.
bash
FIGMA_URL="https://www.figma.com/design/<FILE_ID>/Example?node-id=1-2"
pnpm --filter figma-mcp-free dev -- doctor "$FIGMA_URL"
  1. Inspect, batch-read, or generate.
bash
pnpm --filter figma-mcp-free dev -- inspect-selection "$FIGMA_URL" --depth 2 --max-children 20

pnpm --filter figma-mcp-free dev -- nodes "$FIGMA_URL" 1:2 3:4 5:6 --depth 2

pnpm --filter figma-mcp-free dev -- generate "$FIGMA_URL" --framework react > Card.tsx

pnpm --filter figma-mcp-free dev -- generate-many "$FIGMA_URL" 1:2 3:4 5:6 \
  --framework react \
  --out-dir ./generated

Local Plugin Bridge Quickstart

The bridge is a development workflow, not a published Figma Community plugin.

1. Start the local server

bash
pnpm --filter figma-mcp-free bridge -- serve

It prints a loopback URL, random session ID, and sensitive pairing token.

2. Generate a development manifest

Create a development plugin once in Figma Desktop, copy its numeric ID, then run:

bash
node plugins/local-bridge/create-manifest.mjs <FIGMA_GENERATED_PLUGIN_ID> [BRIDGE_PORT]

Import plugins/local-bridge/manifest.json as a development plugin.

3. Capture deliberately

  1. Paste the loopback URL and pairing token into the plugin UI.
  2. Select one or more nodes.
  3. Press Capture & Send.

Nothing is sent when the selection merely changes. The plugin contains no Figma document-write APIs.

4. Use the snapshot

bash
export FIGMA_PLUGIN_BRIDGE_URL=http://127.0.0.1:3845
export FIGMA_PLUGIN_BRIDGE_TOKEN='<PAIRING_TOKEN>'

pnpm --filter figma-mcp-free bridge -- status
pnpm --filter figma-mcp-free bridge -- current
pnpm --filter figma-mcp-free bridge -- inspect --index 0 --depth 2 --max-children 20
pnpm --filter figma-mcp-free bridge -- generate --index 0 --framework react
pnpm --filter figma-mcp-free bridge -- clear

See Local Figma Plugin Bridge for setup, limits, threat model, and MCP configuration.

CLI Commands

REST and offline CLI

CommandPurpose
initSave a PAT without printing it.
doctorCheck Node, pnpm, token state, file permissions, URL parsing, and optional API access.
fileFetch a Figma file with optional depth.
nodesBatch-fetch multiple node IDs.
framesList frames from a file.
inspect-selectionProduce bounded implementation context for one node.
componentsSearch component metadata.
export-tokensExport W3C-style token JSON.
generateGenerate starter code for one node.
generate-manyBatch-fetch and generate multiple nodes.
generate-from-jsonGenerate offline from a local fixture.
config get tokenShow only whether a token exists.
config securityCheck local config file permissions.

Network-reading commands accept --refresh to bypass the process-local cache.

Local bridge CLI

CommandPurpose
serveStart the authenticated, bounded loopback server.
statusShow session and snapshot health.
currentPrint the complete current snapshot.
inspectProduce bounded context for one captured selection.
generateGenerate starter code from one captured selection.
clearRemove the in-memory snapshot.

Prefer FIGMA_PLUGIN_BRIDGE_TOKEN over --token so the token does not enter shell history.

MCP Server

Build and start the STDIO server:

bash
pnpm -r build
node packages/mcp-server/dist/index.js

Example client configurations are in:

REST MCP tools

ToolPurpose
get_fileRaw file read with optional depth and refresh.
get_nodesQuota-efficient batch node read.
inspect_selectionCompact selected-layer context.
get_componentsComponent metadata search.
list_framesFrame discovery.
export_tokensToken extraction.
generate_codeStarter UI code generation.
get_cache_statsCache, request, retry, and de-duplication counters.
clear_cacheRemove process-local cached REST responses.

Local Plugin MCP tools

ToolPurpose
get_plugin_bridge_statusConfirm session and snapshot state.
list_current_selectionsReturn lightweight selection summaries before requesting full documents.
get_current_selectionRead one full captured node.
inspect_current_selectionProduce bounded implementation context without REST quota.
generate_current_selectionGenerate starter code without REST quota.

The bridge URL and token are process environment variables. They never appear in model-visible MCP tool schemas.

Environment tuning

VariableDefaultMeaning
FIGMA_MCP_CACHE_TTL_MS300000REST response lifetime in memory. Use 0 to disable.
FIGMA_MCP_MAX_CACHE_ENTRIES128Maximum cached REST request URLs.
FIGMA_MCP_REQUEST_TIMEOUT_MS20000Timeout per REST network attempt.
FIGMA_MCP_MAX_RETRIES2Retry count for transient REST failures.
FIGMA_MCP_NODE_BATCH_SIZE100Maximum node IDs per REST batch request.
FIGMA_PLUGIN_BRIDGE_URLhttp://127.0.0.1:3845Exact loopback bridge origin.
FIGMA_PLUGIN_BRIDGE_TOKENnoneSensitive pairing token printed by serve.
FIGMA_PLUGIN_BRIDGE_TIMEOUT_MS10000MCP-to-bridge request timeout.

Architecture

text
REST path
Figma REST API -> rate-aware FigmaClient -> MCP / CLI -> inspect / tokens / generate

Local path
Figma selection -> explicit development-plugin capture -> authenticated loopback bridge
                -> MCP / bridge CLI -> inspect / generate

The paths share output consumers, not credentials. There is no silent fallback from REST to the Plugin bridge.

Forks Are First-Class

The repository includes a read-only fork intelligence workflow. It detects its canonical upstream from GitHub metadata, compares forks, and highlights unique downstream commits without pushing, merging, opening issues, or modifying forks.

bash
GITHUB_TOKEN=... node tools/audit-forks.mjs --repo owner/repository

See Forks, downstreams, and contribution flow. Operational code is checked for owner-specific paths so a renamed fork can build and run normally.

Security

REST controls:

  • Prefer FIGMA_TOKEN for ephemeral sessions and CI secrets.
  • Local config writes are atomic.
  • On POSIX systems, the config directory is restricted to 0700 and the token file to 0600 where supported.
  • Token values are never printed by init, doctor, or config get token.
  • The REST cache is bounded, memory-only, and disappears when the process exits.

Local bridge controls:

  • loopback-only bind and remote-address validation;
  • loopback Host-header validation against DNS rebinding;
  • high-entropy bearer token with timing-safe comparison;
  • no non-loopback override;
  • redirect refusal;
  • one bounded, memory-only snapshot;
  • request body, selection, node, depth, header, and timeout limits;
  • no token persistence in the plugin;
  • static checks for Figma write APIs.

Figma's plugin Fetch API requires wildcard CORS for reachable APIs, so the token and local transport controls are the authorization boundary. Never commit tokens, private file IDs, raw private API responses, captured snapshots, or generated manifests.

Sensitive reports should follow SECURITY.md.

Current Boundaries

  • Neither backend can create, edit, move, delete, or publish Figma objects.
  • The local bridge is a development plugin and still requires a real Figma Desktop smoke test before release.
  • REST and Plugin APIs have different capabilities and limits.
  • Code generation is a starter implementation, not a pixel-perfect compiler guarantee.
  • /slides links are not supported by the REST pipeline.
  • Images API URLs are temporary and should not be committed as durable assets.
  • Packages are prepared and checked for distribution but are not published from this repository yet. Use a source checkout.

Project Structure

PathPurpose
packages/figma-clientURL handling, REST batching, cache, retries, diagnostics, and local bridge protocol.
packages/design-tokensW3C-style token extraction and lookup indexes.
packages/code-generatorReact, Vue, Svelte, and HTML starter generation.
packages/configProtected local configuration.
packages/mcp-serverMCP STDIO server for both read paths.
packages/cliREST/offline CLI and local bridge CLI.
plugins/local-bridgeRead-only Figma development plugin.
toolsCI, fork, package, secret, and Plugin integrity checks.

Further reading:

Contributing

bash
pnpm install --frozen-lockfile
pnpm run check

See CONTRIBUTING.md. Fork-originated fixes should include source commit and author provenance so useful downstream work does not disappear into branches.

Usa MCP Figma MCP Free con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Figma MCP Free, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Figma MCP Free come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Figma MCP Free.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "figma-mcp-free": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Figma MCP Free, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Figma MCP Free.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Figma MCP Free per aiutarmi con questa attività?
Figma MCP Free
Certo. Ho letto.
Ecco cosa ho trovato con Figma MCP Free.

Domande frequenti

A cosa serve il server MCP Figma MCP Free?

Figma MCP Free è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Figma MCP Free MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Figma MCP Free con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Figma MCP Free con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Figma MCP Free, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Figma MCP Free MCP a TypingMind?

Figma MCP Free funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Figma MCP Free MCP in TypingMind?

Figma MCP Free mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Figma MCP Free MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Figma MCP Free richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇