شعار Figma MCP Free

Figma MCP Free

المجتمع
superdoccimo

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

الناشرsuperdoccimo
المستودعfigma-mcp-free
اللغةTypeScript
التفريعات
9
النجوم
59
الأدوات المتاحة
0
نوع نقل البياناتstdio
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Figma MCP Free إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 59، والنسخ المتفرعة: 9 في المستودع المرتبط.

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.

استخدم MCP الخاص بـ Figma MCP Free مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Figma MCP Free، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Figma MCP Free كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Figma MCP Free.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "figma-mcp-free": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Figma MCP Free، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Figma MCP Free.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Figma MCP Free لمساعدتي في هذه المهمة؟
Figma MCP Free
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Figma MCP Free.

الأسئلة الشائعة

ما استخدامات خادم MCP Figma MCP Free؟

Figma MCP Free هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Figma MCP Free مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Figma MCP Free مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Figma MCP Free مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Figma MCP Free، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Figma MCP Free بـ TypingMind؟

يعمل Figma MCP Free عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Figma MCP Free في TypingMind؟

يتيح Figma MCP Free إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Figma MCP Free؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Figma MCP Free يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇