← Back to dashboard

Figma Integration Guide

What is Figma for developers?

The real model

claude plugin install figma@claude-plugins-official, then paste frame links. Budget calls per seat.

The plugin bundles the remote server and 11 skills. Load figma-use before every use_figma call. use_figma returns at most 20 KB per call, can't import images, and is free only during the beta. Call get_metadata before design context on large frames. Code Connect 2.0.2 accepts only template files: a // url= comment, figma.selectedInstance.getString/getEnum, and export default { example: figma.code`...` }. The figma.connect() parsers need @1. On the REST API, PATs expire within 90 days. Tier 1 file and image calls allow 10–20 a minute on Dev/Full seats but only 20 a month on View/Collab. The Variables API is Enterprise-only. Webhooks V2 aren't signed, so constant-time compare the passcode and return 400 on a mismatch.

Five Figma primitives

One MCP for agents, plus REST, Code Connect, and plugins for everything else.

Text
███████╗██╗ ██████╗ ███╗   ███╗ █████╗
██╔════╝██║██╔════╝ ████╗ ████║██╔══██╗
█████╗  ██║██║  ███╗██╔████╔██║███████║
██╔══╝  ██║██║   ██║██║╚██╔╝██║██╔══██║
██║     ██║╚██████╔╝██║ ╚═╝ ██║██║  ██║
╚═╝     ╚═╝ ╚═════╝ ╚═╝     ╚═╝╚═╝  ╚═╝

Figma Integration Guide

Focus: Design-to-code and code-to-design workflows from Claude Code using the official Figma MCP server, plus the REST API, Webhooks V2, Code Connect, and the Plugin API.

Overview

Figma is codeAmani's design source of truth. Its official Figma MCP server gives Claude Code direct access to design files. Claude can read component specs and variables, generate code from a frame, write native Figma content back to the canvas, and keep Code Connect mappings current. The REST API covers automation that has no agent in the loop: CI token sync, asset export, and webhooks.

The MCP works in both directions, and codeAmani uses both:

Naming: Figma's docs now call it the "Figma MCP server". The older name "Dev Mode MCP server" is gone from the docs, though some blog posts still use it.

Official Documentation


Plans, seats and what they unlock (verified 2026-10-20)

Seat type matters more than plan here. It sets your MCP and REST rate limits, decides whether you can use Dev Mode and Code Connect, and decides whether you can write to the canvas.

Seat prices (USD per seat per month, from figma.com/pricing; Organization and Enterprise bill annually):

PlanFullDevCollabView
StarterFree (limited)——Free
Professional$16$12$3Free
Organization$55$25$5Free
Enterprise$90$35$5Free

Monthly AI credits per seat: Professional Full seats get 3,000, Organization 3,500 and Enterprise 4,250. Dev and Collab seats get 500. Starter gets 150 a day, capped at 500 a month. Figma Make and Figma Sites (beta) come with Full seats.

MCP server tool-call limits (they apply to read tools):

SeatStarterProfessionalOrganizationEnterprise
View, Collabup to 20 / monthup to 20 / monthup to 20 / monthup to 20 / month
Dev, Full—200 / day, 10 / min200 / day, 15 / min600 / day, 20 / min
  • Education plans get the Professional Dev/Full limits.
  • These calls don't count toward the limits: add_code_connect_map, create_new_file, generate_figma_design and whoami. Actions that spend AI credits, such as generate_image and Make prompts, don't count either.

What each feature needs:

CapabilityRequirement
Remote MCP (read)Any plan or seat (rate-limited as above)
Desktop MCP serverDev or Full seat on Professional, Education, Organization, Government or Enterprise, plus the desktop app
use_figma and other canvas writesRemote server, Professional or higher plan, edit access to the file (Full seat to write outside drafts)
Code Connect (CLI or UI)Dev or Full seat on Professional, Organization or Enterprise. Professional allows one active library and one active framework.
Variables REST APIEnterprise only. GET needs any org member with view access. POST needs a Full seat with edit access (guests can't use it).
Plan access tokensOrganization or Enterprise

Recommendation for codeAmani: give engineers who drive Claude Code a Dev seat on Professional ($12). It unlocks 200 MCP reads a day, Code Connect and Dev Mode. Only people who need canvas writes (use_figma) through the agent need a Full seat.


MCP server setup for Claude Code

The remote server lives at https://mcp.figma.com/mcp. It uses OAuth ("Allow access" in the browser), so there's no token header, and it doesn't need the desktop app. It's the only server that can write to the canvas.

Option A: the Figma plugin for Claude Code. This bundles the MCP server config plus Figma's 11 agent skills:

Bash
claude plugin install figma@claude-plugins-official
# restart Claude Code → /plugin → right-arrow to "Installed" → select figma → Enter → Enter
# → browser opens → "Allow access" → /plugin again shows figma connected

If the install command fails, your org may block plugin installs. Use option B and add the skills manually.

Option B: add the server manually. This gives you the MCP tools without the skills:

Bash
claude mcp add --transport http figma https://mcp.figma.com/mcp                # this project only
claude mcp add --scope user --transport http figma https://mcp.figma.com/mcp   # all projects
# new session → /mcp → figma → Authenticate → "Allow access"

.mcp.json equivalent (see examples/mcp-config.json):

JSON
{
  "mcpServers": {
    "figma": { "type": "http", "url": "https://mcp.figma.com/mcp" }
  }
}

Figma skills come with the plugin. Without it, download them from Figma's mcp-server-guide GitHub repo:

SkillUse it for
figma-useLoad before every use_figma call. Writes frames, components, variables and auto layout.
figma-generate-designBuilds full screens from your design-system components
figma-generate-libraryBuilds or updates a design-system library from the codebase, in phases
figma-create-new-fileLoad before create_new_file
figma-code-connectAuthors Code Connect template files and mappings
figma-code-workflowsImports a local project as a code layer, a Make file, or design layers
figma-generate-diagramFigJam flowcharts, sequence, ER, state and Gantt diagrams
figma-use-figjam / figma-use-slidesWrites to FigJam boards and Slides decks
figma-swiftuiSwiftUI to and from Figma
figma-specReads and writes Figma Specs (open beta)

The installed plugin also ships extras such as figma-implement-motion, figma-shaders and figma-generative-plugins. Run /plugin to see what your copy has.

Desktop server (limited)

In the Figma desktop app, open a Design file, switch to Dev Mode, and click Enable desktop MCP server in the right sidebar. It listens on http://127.0.0.1:3845/mcp.

Bash
claude mcp add --transport http figma-desktop http://127.0.0.1:3845/mcp

The desktop server is selection-based and can't write to the canvas or send UI to Figma. Figma "strongly recommends" the remote server. Figma for Government supports only the desktop server.

figma-developer-mcp@0.13.2 is a community stdio server, not Figma's. It reads through the REST API with a personal access token (PAT), so it uses up your REST rate limits (Tier 1: 10–20/min on Dev/Full seats). Use it only where OAuth isn't possible.

Bash
claude mcp add figma-framelink -- npx -y figma-developer-mcp --figma-api-key=${FIGMA_ACCESS_TOKEN} --stdio

MCP tools (current inventory)

The remote server needs a link to a frame or layer. The desktop server reads your current selection. Copy a link to the frame (right-click → Copy link to selection) and paste it into the prompt.

Read (these count toward rate limits):

ToolWhat it doesServer
get_design_contextThe workhorse. Returns code plus design context for a layer (React + Tailwind by default)both
get_screenshotScreenshot of one node per callboth
get_metadataLightweight XML outline (ids, names, sizes). Use it on big frames, then fetch the parts you need.both
get_variable_defsVariables and styles used in the selection (your tokens)both
get_code_connect_mapExisting Code Connect mappings for the instances in a selectionboth
get_figjamFigJam diagram as XML plus screenshotsboth
get_motion_contextAnimation data plus CSS/Motion snippets (call after get_design_context)both
search_design_systemSearches libraries for components, variables and stylesremote
get_librariesLists added and available librariesremote
download_assetsExports nodes or original images, up to 20 per callremote
whoamiYour identity, plans and seats (also returns the planKey)remote
list_shaders, get_shader, list_file_shadersShader effects and fillsboth
list_generative_plugins, get_generative_pluginGenerative pluginsremote

Write:

ToolWhat it does
use_figmaRuns Plugin API JavaScript in the file to create, edit and inspect content across Design, FigJam, Slides and Specs. Beta, free during the beta, "will eventually become a usage-based paid feature."
create_new_fileBlank Design, FigJam or Slides file in your drafts
generate_figma_designSends live web UI (production, staging or localhost) to Figma as layers. Only some MCP clients support it, and it doesn't count toward rate limits.
html_to_figmaConverts a self-contained HTML document (up to 50 MB) into layers
upload_assetsUploads PNG, JPG, GIF, WebP or SVG images (10 MB each, up to 60 per call)
generate_imageText-to-image. Spends AI credits, and the links expire after 7 days.
generate_diagramFigJam diagram from a description or Mermaid
add_code_connect_mapMaps a Figma component to a code component
send_code_to_figmaImports a local project (.zip, .tar.gz or .tgz) as a Make file or code layer. The first upload is free, and later prompts spend credits.
create_shader, update_shader, create_generative_plugin, update_generative_pluginNeed the matching skill plus a planKey from whoami

Weave (weave_*, 9 tools) needs a paid standalone Weave account and spends Weave credits. The old list_shader_effects, list_shader_fills, get_shader_effect and get_shader_fill tools are deprecated in favor of list_shaders and get_shader. The prompt create_design_system_rules writes a rules file that steers code generation toward your codebase.

Figma Make context. Paste a Make file URL into the prompt, and the server exposes the Make project's files as MCP resources the agent can pull into its context. This works on any plan with view access, as long as the client supports MCP resources.


Design → code workflow

  1. Paste a link to the frame, for example https://www.figma.com/design/<FILE_KEY>/Design-System?node-id=1-23.
  2. If the frame is large, call get_metadata first, then get_design_context on the sub-nodes you need. Big frames are slow and can time out.
  3. Call get_variable_defs and map the tokens to Tailwind theme keys. Never hard-code hex values.
  4. Call get_screenshot to check the result visually.
  5. If a component has a Code Connect mapping, get_design_context returns your real component's usage instead of generated markup. That's the main reason to keep Code Connect current.

Every read in this loop counts against your seat's limit. A typical component costs about 3–5 calls, so a Professional Dev seat can do roughly 40–60 components a day.

Slash command: /figma

.claude/commands/figma.md:

Markdown
Implement the Figma design at: $ARGUMENTS

1. If the frame is large, call `get_metadata` first and work node-by-node.
2. Call `get_design_context` and `get_variable_defs` for the node in the link.
3. Reuse existing components (check Code Connect snippets in the response); map
   variables to our Tailwind theme tokens — no hard-coded hex or px.
4. Call `get_screenshot` and compare your output against it.
5. Write a typed React component (named export) under `components/`, plus a story.

Code → design (write to canvas)

Three remote-only tools cover this direction:

ToolDirectionOutput
create_new_filescaffoldA blank Design, FigJam or Slides file
use_figmacode or intent → canvasNative components, variables, frames and auto layout, built through the Plugin API
generate_figma_designrunning app → canvasFlat layers captured from the browser, for review

Workflow:

  1. Load figma-create-new-file, then call create_new_file (skip this if a target file already exists).
  2. Load figma-use. Skipping this skill causes hard-to-debug failures. For full screens, also load figma-generate-design.
  3. Call search_design_system and get_variable_defs so the new work reuses real tokens and components.
  4. Call use_figma in small increments. Each call's output is capped at 20 KB.
  5. Review the result and clean it up by hand. Figma calls the output "beta quality."

use_figma limits:

  • It can't add images itself. Use upload_assets or generate_image instead.
  • It doesn't support components that contain images or video, or GIFs.
  • Fonts must be uploaded to your Figma account. Fonts installed only on your machine aren't available.
  • You have to publish components manually before Code Connect mappings can be completed.

Code Connect (@figma/code-connect@2.0.2)

Code Connect maps a Figma component to your real component. Dev Mode and the MCP's get_design_context then show real usage instead of generated CSS.

v2.0.0 (18 Aug 2026) was a breaking release. Framework parsers (React .figma.tsx with figma.connect(...), plus HTML, SwiftUI and Compose) no longer get updates. In v2 only figma connect migrate and figma connect unpublish accept parser files. Every other command exits and tells you to migrate. Template files (.figma.ts / .figma.js) are the only maintained format. If you must stay on parsers, pin @figma/code-connect@1. The current release is 2.0.2 (14 Oct 2026). figma connect create now always generates a template file, and on Professional the publish command confirms your one library and one framework.

Correction from the last review: the previous version of this guide showed a v2 example built on export default figma.connect(Button, {...}) with JSX. That's not the template format. Template files declare the node in a // url= comment, read props from figma.selectedInstance, and export { example: figma.code`...` }.

Bash
npm install --save-dev @figma/code-connect@2.0.2

figma.config.json:

JSON
{
  "codeConnect": {
    "include": ["**/*.figma.ts"],
    "label": "React",
    "language": "jsx"
  }
}

Add "types": ["@figma/code-connect/figma-types"] to compilerOptions in tsconfig.json to get types for the figma module.

components/Button.figma.ts (a full version is in examples/Button.figma.ts; it's type-checked and parses with the 2.0.2 CLI):

TypeScript
// url=https://www.figma.com/design/<FILE_KEY>/Design-System?node-id=<NODE_ID>
// source=src/components/Button.tsx
// component=Button
import figma from 'figma'

const instance = figma.selectedInstance
const label = instance.getString('Label')
const disabled = instance.getBoolean('Disabled')
const variant = instance.getEnum('Variant', { Primary: 'primary', Secondary: 'secondary' })

export default {
  example: figma.code`<Button variant="${variant}"${disabled ? ' disabled' : ''}>${label}</Button>`,
  imports: ['import { Button } from "@/components/Button"'],
  id: 'button',
  metadata: { nestable: true },
}

Instance API: getString, getBoolean, getEnum, getInstanceSwap, getSlot, findInstance, findText, findConnectedInstances and executeTemplate().example. There are also language tags besides figma.code: figma.tsx, figma.html, figma.swift and figma.kotlin.

Commands:

Bash
npx figma connect parse --file components/Button.figma.ts    # local validation, no network
npx figma connect preview components/Button.figma.ts         # render what Dev Mode will show
npx figma connect publish                                    # uses FIGMA_ACCESS_TOKEN (or --token)
npx figma connect migrate --outDir codeconnect/              # convert legacy .figma.tsx parser files

For icon sets and other large groups of similar components, use batch files (*.figma.batch.json plus one template). Add the glob to include. The Code Connect UI (in Figma, with a GitHub integration) is an alternative to the CLI. Connections published from the CLI show up there, but you can only edit them from the CLI. On a Professional plan, the first publish sets the single active framework. Switching it later (Admin → Settings → Resources → Code Connect) deactivates the old mappings, and the MCP stops returning them.


REST API

The base URL is https://api.figma.com. Files, nodes and images are still under /v1, and webhooks under /v2. Authenticate with the X-Figma-Token: <PAT or plan token> header, or Authorization: Bearer <oauth token> for OAuth apps. For types, install @figma/rest-api-spec@0.45.0 (types only, generated from Figma's OpenAPI spec).

Tokens

TokenWho / planMax lifetimeNotes
Personal access token (PAT)Any user. Created under Settings → Security → Generate new token.90 days (no non-expiring option anymore)Scoped at creation. It acts as you across every plan you belong to, so it isn't least-privilege.
Plan access tokenOrganization or Enterprise admins (GA 23 Jul 2026, MFA required)365 days, refreshable (the old secret keeps working for 24 h)Not tied to a person. Can be allowlisted to specific files, folders or teams. Can't call file_variables:write, file_comments:write, file_code_connect:write, /v1/me or /v1/oembed. A separate "Figma CLI token" type covers Code Connect publishing.
OAuth 2 appThird-party appsrefresh flowApps created before 23 Sep 2025 had to be re-published by 17 Nov 2025. Unpublished apps drop to draft and can't call the API.

Scopes: use the granular ones. files:read is deprecated (it still works). projects:read and project_metadata:read are deprecated in favor of folders:read and folder_metadata:read, which came with the 10 Aug 2026 folders endpoints. Common choices:

  • file_content:read: file JSON, nodes and image renders
  • file_metadata:read
  • file_variables:read and file_variables:write (Enterprise only)
  • library_content:read and team_library_content:read
  • file_comments:read and file_comments:write
  • webhooks:read and webhooks:write
  • file_dev_resources:read and file_dev_resources:write

Rate limits (in effect since 17 Nov 2025; leaky bucket)

Limits are per minute and apply per user, per plan, per app (OAuth), or per token (plan tokens). For a PAT, the limits of the plan that owns the requested file apply.

TierEndpointsView / Collab (all plans)Dev / Full: Pro / Org / Ent
1GET file, GET file nodes, GET imageup to 20 / month10 / 15 / 20
2Comments, dev resources, image fills, folders/projects lists, GET variables, versions, webhooksup to 525 / 50 / 100
3Components & styles, file/folder/project metadata, users, library analytics, POST variables, activity logsup to 1050 / 100 / 150

A 429 response carries:

  • Retry-After (seconds)
  • X-Figma-Plan-Tier (enterprise, org, pro, starter or student)
  • X-Figma-Rate-Limit-Type (low for View/Collab seats, high for Dev/Full)
  • X-Figma-Upgrade-Link

Run CI token syncs as a Dev or Full seat holder. A View seat PAT gets about 20 file reads a month.

Export nodes (typed, with 429 handling)

Full runnable version: examples/export-node-images.mts.

TypeScript
import type { GetImagesResponse } from "@figma/rest-api-spec";

const res = await fetch(
  `https://api.figma.com/v1/images/${fileKey}?ids=1:23&format=png&scale=2`,
  { headers: { "X-Figma-Token": process.env.FIGMA_ACCESS_TOKEN! } },
);
if (res.status === 429) {
  const wait = Number(res.headers.get("Retry-After") ?? "60"); // seconds
  // back off `wait` seconds, then retry
}
const { images, err } = (await res.json()) as GetImagesResponse;
// images["1:23"] is a short-lived signed URL; download it right away

Node ids use - in URLs (node-id=1-23) and : in API calls (1:23).

Variables REST API (Enterprise only)

The endpoints are GET /v1/files/:key/variables/local, GET /v1/files/:key/variables/published and POST /v1/files/:key/variables. Recent additions are VariableComposedColor and the COLOR_OPACITY scope (17 Sep 2026), plus extended collections and overrides. On Professional or Organization, pull tokens with the MCP's get_variable_defs or a plugin instead.

Webhooks V2

Webhooks live at POST/GET https://api.figma.com/v2/webhooks and attach to a context: a team (20 per team), a folder (5 per folder) or a file (3 per file). File-webhook totals per plan are 150 (Professional), 300 (Organization) and 600 (Enterprise).

EventWhen it fires
PINGWhen the webhook is created
FILE_UPDATEWithin 30 minutes of editing inactivity
FILE_DELETEWhen a file is deleted
FILE_VERSION_UPDATEWhen a named version is created
LIBRARY_PUBLISHOn a library publish. One publish can emit several events.
FILE_COMMENTWhen someone comments
DEV_MODE_STATUS_UPDATEWhen a layer's Dev Mode status changes

Verification: there's no HMAC signature. You set a passcode when you create the webhook, and Figma echoes it in every payload. Compare it with a constant-time check and reply 400 on a mismatch, before doing any work. GET calls redact the passcode, so store your copy in the secrets vault. Return 200 fast. Non-200 or slow responses are retried 3 times (after 5 min, 30 min and 3 h), and Figma doesn't disable endpoints that fail often.

TypeScript
// app/api/webhooks/figma/route.ts — full version: examples/webhook-route.ts
import { timingSafeEqual } from "node:crypto";
import type { WebhookFileUpdatePayload, WebhookPingPayload } from "@figma/rest-api-spec";

export async function POST(req: Request): Promise<Response> {
  const body = (await req.json()) as WebhookPingPayload | WebhookFileUpdatePayload;
  const a = Buffer.from(String(body.passcode));
  const b = Buffer.from(process.env.FIGMA_WEBHOOK_PASSCODE ?? "");
  if (b.length === 0 || a.length !== b.length || !timingSafeEqual(a, b)) {
    return new Response("Invalid passcode", { status: 400 });
  }
  // enqueue work keyed on body.event_type, then:
  return Response.json({ ok: true });
}

Other recent REST additions:

  • oEmbed API for files and published Makes (25 Mar 2026)
  • AI Usage API (Enterprise, 12 Jun 2026)
  • Discovery API (Enterprise with Governance+)
  • Activity and Developer Logs (Enterprise)

Plugin API (brief)

Plugins run inside the editor through the global figma object, and use_figma uses the same API. Typings come from @figma/plugin-typings@1.142.0. New plugins must set "documentAccess": "dynamic-page" in manifest.json and use the async APIs, such as figma.getNodeByIdAsync and loadAsync for pages. Declare networkAccess.allowedDomains, using ["none"] if the plugin needs no network. editorType takes any of figma, figjam, dev, slides and buzz, except that you can't combine figjam with dev. Plugins can't read team-library assets that haven't been imported into the file.


Environment Variables

Real secrets only. Store them in the secrets vault and .env.local, and never in client bundles:

Bash
FIGMA_ACCESS_TOKEN=figd_...        # PAT (≤90-day expiry) or plan access token — REST API + `figma connect publish`
FIGMA_WEBHOOK_PASSCODE=...         # passcode you set on POST /v2/webhooks

Non-secret settings:

NameExamplePurpose
FIGMA_FILE_KEYAbCdEfGhIjKlDefault design-system file for scripts
FIGMA_TEAM_ID1234567890Team id for library and webhook context
DO_NOT_TRACK1Opts figma connect publish out of preflight telemetry (added in 2.0.2)

The MCP server itself needs no env var, because it uses OAuth.


GitHub Actions: design-token sync

YAML
# .github/workflows/design-tokens.yml
name: Sync Figma tokens
on:
  schedule: [{ cron: "0 9 * * 1" }]   # Mondays
  workflow_dispatch:
jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@<pinned-sha>   # pin Actions by SHA (codeAmani SLSA policy)
      - uses: actions/setup-node@<pinned-sha>
        with: { node-version: "22" }
      - run: npm ci
      - name: Fetch tokens
        env:
          FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}   # Dev/Full-seat PAT or plan token
          FIGMA_FILE_KEY: ${{ vars.FIGMA_FILE_KEY }}
        run: node scripts/sync-tokens.mjs
      - name: Open PR with updated tokens
        run: |
          git diff --quiet src/tokens/ || echo "tokens changed: open a PR rather than pushing to main"

The Variables REST API is Enterprise-only. On Professional, sync-tokens should read published styles from the file JSON (GET /v1/files/:key), or the team should export variables with a plugin. A PAT expires within 90 days, so put a rotation reminder in the calendar. Use a plan access token (up to 365 days) on Organization or Enterprise.


Common Use Cases

Use caseApproach
Design → React componentget_design_context + get_variable_defs + get_screenshot
Huge frameget_metadata first, then design context per child node
Component library syncsearch_design_system / get_libraries
Design tokensMCP get_variable_defs, or the Variables REST API (Enterprise)
Push a coded component into Figmafigma-use skill → use_figma
Capture a running page for design reviewgenerate_figma_design
Code Connecttemplate files + npx figma connect publish, or add_code_connect_map
FigJam diagramsgenerate_diagram or the figma-generate-diagram skill
CI asset exportREST GET /v1/images (Tier 1, so mind the rate limits)

Troubleshooting

IssueFix
429 from MCP after a handful of callsYou're on a View or Collab seat (20 calls a month). Get a Dev or Full seat.
REST 429 with X-Figma-Rate-Limit-Type: lowThe PAT owner has a View or Collab seat. Use a Dev/Full owner or a plan token, and honour Retry-After.
403 ForbiddenThe token is missing a scope (for example file_content:read) or has no access to the file, or the PAT has expired (90-day max).
get_design_context is slow, times out or returns huge outputCall get_metadata first, then fetch smaller nodes
Remote server ignores "my selection"The remote server needs a link. Selection-based prompts only work on the desktop server.
use_figma fails or produces junkLoad the figma-use skill first, work in smaller increments, and check that you have edit access on a Professional or higher plan
Images missing after use_figmaExpected. Add them with upload_assets or generate_image.
figma connect says to migrateYou're on v2 with .figma.tsx parser files. Run npx figma connect migrate, or pin @figma/code-connect@1.
Code Connect snippets vanished from MCP outputOn Professional, someone changed the active framework or library, and the old mappings are now Deactivated
Variables API returns 403It's Enterprise-only, and POST also needs a Full seat with edit access
Webhook events ignoredCheck the passcode. Return 200 quickly, because slow responses count as failures.
MCP won't connectThe endpoint is https://mcp.figma.com/mcp. Re-run /mcp → figma → Authenticate.

codeAmani notes

  • Secrets stay server-side. FIGMA_ACCESS_TOKEN and FIGMA_WEBHOOK_PASSCODE live in the secrets vault and .env.local. Call the REST API only from route handlers, server actions or CI, never from the browser.
  • The webhook-verification rule applies. Figma has no signature, so the constant-time passcode check is the verification step. Reply 400 on a mismatch before any side effects.
  • Design source of truth. All motionstack UI work starts from a Figma frame link. Pull tokens with get_variable_defs and map them to tailwind.config.ts. Never hard-code hex.
  • AI routing. Claude Code with the Figma MCP is the default design ↔ code agent (Anthropic is the primary provider). generate_image and Make prompts spend Figma AI credits, not our Anthropic budget, so keep an eye on them on Full seats.
  • Seats. Engineers get Dev seats ($12, Professional). Designers who also drive use_figma get Full seats ($16). View seats aren't viable for agent work, at 20 calls a month.
  • Plan for use_figma costs. It's free during the beta but will become usage-based. Don't build an automated pipeline that depends on unlimited canvas writes.
  • Payments. Figma has no payment surface for our apps. Stripe stays the default, and M-Pesa is only for Kenya-targeted projects. Figma's own plugin Payments API is unrelated to how we bill.
  • African-market UI. For Kenya-targeted projects, design at 360 px mobile widths first. Keep exported assets light (prefer SVG, and scale=1 or scale=2 PNGs only when needed), because users are on 2G/3G.