Logo vun Figma MCP Free

Figma MCP Free

Communautéit
superdoccimo

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

Editeursuperdoccimo
Repositoryfigma-mcp-free
SproochTypeScript
Forks
9
Stären
59
Disponibel Tools
0
Transporttypstdio
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Figma MCP Free stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    59 Stären an 9 Forks aus dem verlinkte Repository.

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.

Figma MCP Free MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Figma MCP Free verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Figma MCP Free als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Figma MCP Free an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "figma-mcp-free": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Figma MCP Free. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Figma MCP Free.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Figma MCP Free?
Figma MCP Free
Jo. Ech hunn et gelies.
Dat hunn ech mat Figma MCP Free fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Figma MCP Free benotzt?

Figma MCP Free ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Figma MCP Free MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Figma MCP Free mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Figma MCP Free MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Figma MCP Free verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Figma MCP Free MCP mat TypingMind?

Figma MCP Free leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Figma MCP Free MCP an TypingMind zur Verfügung?

Figma MCP Free stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Figma MCP Free MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Figma MCP Free eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇