Figma MCP Free logo

Figma MCP Free

Community
superdoccimo

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

Publishersuperdoccimo
Repositoryfigma-mcp-free
LanguageTypeScript
Forks
9
Stars
59
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Figma MCP Free exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    59 stars and 9 forks from the linked 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.

Use Figma MCP Free MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Figma MCP Free is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Figma MCP Free as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Figma MCP Free MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "figma-mcp-free": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Figma MCP Free MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Figma MCP Free MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Figma MCP Free to help me with this task?
Figma MCP Free
Sure. I read it.
Here is what I found using Figma MCP Free.

Frequently asked questions

What is the Figma MCP Free MCP server used for?

Figma MCP Free is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Figma MCP Free MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Figma MCP Free with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Figma MCP Free MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Figma MCP Free connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Figma MCP Free MCP to TypingMind?

Figma MCP Free runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Figma MCP Free MCP provide in TypingMind?

Figma MCP Free exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Figma MCP Free MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Figma MCP Free requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇