Figma MCP

v1.0.1
io.scalably/figma-mcp Checked 1 day ago Published 2 months ago

Figma MCP: list frames in a file and fetch one frame's JSON and image safely.

Values you need

VariableWhat it is
FIGMA_TOKENrequired secret Figma personal access token with file_content:read
FIGMA_API_BASE_URLoptional Figma REST API base URL, default https://api.figma.com/v1
FIGMA_REQUEST_TIMEOUT_MSoptional Per-request timeout in milliseconds, default 60000
FIGMA_MAX_JSON_BYTESoptional Upper bound on a Figma JSON response in bytes, default 104857600
FIGMA_MAX_FRAME_BYTESoptional Upper bound on a downloaded frame PNG in bytes, default 104857600
FIGMA_OUTPUT_ROOToptional Directory that all fetch_frame output directories must stay below, default ./figma-output
FIGMA_ALLOW_HTTP_FOR_TESTSoptional Test suite only: set to 1 to allow a plain-HTTP loopback API base. Never set it in normal use

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add figma-mcp -e 'FIGMA_TOKEN=<FIGMA_TOKEN>' -- npx -y --package=@scalably-io/figma-mcp@1.0.1 scalably-figma-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "figma-mcp": {
      "args": [
        "-y",
        "--package=@scalably-io/figma-mcp@1.0.1",
        "scalably-figma-mcp"
      ],
      "command": "npx",
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "figma-mcp": {
      "args": [
        "-y",
        "--package=@scalably-io/figma-mcp@1.0.1",
        "scalably-figma-mcp"
      ],
      "command": "npx",
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "FIGMA_TOKEN",
      "id": "figma-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "figma-mcp": {
      "args": [
        "-y",
        "--package=@scalably-io/figma-mcp@1.0.1",
        "scalably-figma-mcp"
      ],
      "command": "npx",
      "env": {
        "FIGMA_TOKEN": "${input:figma-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.figma-mcp]
command = "npx"
args = ["-y", "--package=@scalably-io/figma-mcp@1.0.1", "scalably-figma-mcp"]
env = { "FIGMA_TOKEN" = "<FIGMA_TOKEN>" }

For AI agents

  1. Ask the user for: FIGMA_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_frames, fetch_frame.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json