Figma MCP Tool logo

Figma MCP Tool

Community
Echoxiawan

figma mcp

PublisherEchoxiawan
Repositoryfigma-mcp-full-server
LanguageTypeScript
Forks
6
Stars
11
Available tools
7
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

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

  • 7 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

    11 stars and 6 forks from the linked repository.

Figma MCP Tool

English | 简体中文

A Model Context Protocol (MCP) server that integrates with the Figma API to export images and extract style data.

Features

  • 🖼️ Image export: Export node images from a Figma URL; supports PNG, JPG, SVG, PDF
  • 🎨 Style extraction: Fetch detailed style data for design elements; supports CSS generation
  • 📦 Batch export: Export multiple nodes in one go
  • 🔄 Smart retry: Built-in retry to handle network hiccups and API limits
  • 🛡️ Robust errors: Clear error handling and troubleshooting guidance
  • 🧩 Design element analysis: Deeply analyze images, vectors, components in designs 🆕
  • 📋 SVG extraction: Get SVG code for vector graphics directly 🆕

Install and Run

Option 1: Run via npx (recommended, no install)

bash
npx figma-mcp-full-server figd_your_figma_token_here

Option 2: Global install

bash
# Install globally
npm install -g figma-mcp-full-server

# Run
figma-mcp-full-server figd_your_figma_token_here

Option 3: Local project install

bash
# Install in your project
npm install figma-mcp-full-server

# Run
npx figma-mcp-full-server figd_your_figma_token_here
# or
node_modules/.bin/figma-mcp-full-server figd_your_figma_token_here

Option 4: Run from source (for development)

bash
git clone <repository>
cd figma-mcp
npm install
npm run build

# Run
npm start figd_your_figma_token_here
# or
node build/index.js figd_your_figma_token_here

Quick Start

1. Get a Figma access token

  1. Log in to Figma
  2. Open Settings
  3. Find the "Personal access tokens" section
  4. Click "Create new token"
  5. Copy the token (starts with figd_)

2. Configure in Claude Desktop

Edit the Claude config file (pick your OS):

macOS/Linux: ~/.config/claude-desktop/config.json
Windows: %APPDATA%\Claude Desktop\config.json

Choose one of the following setups:

Setup A: Run via npx (recommended)

json
{
  "mcpServers": {
    "figma-mcp-full-server": {
      "command": "npx",
      "args": ["figma-mcp-full-server"],
      "env": {
        "FIGMA_TOKEN": "figd_your_figma_token_here"
      }
    }
  }
}

Setup B: Global install

bash
npm install -g figma-mcp-full-server
json
{
  "mcpServers": {
    "figma-mcp-full-server": {
      "command": "figma-mcp-full-server",
      "env": {
        "FIGMA_TOKEN": "figd_your_figma_token_here"
      }
    }
  }
}

Setup C: Use from a project

bash
npm install figma-mcp-full-server
json
{
  "mcpServers": {
    "figma-mcp-full-server": {
      "command": "npx",
      "args": ["figma-mcp-full-server"],
      "cwd": "/path/to/your/project",
      "env": {
        "FIGMA_TOKEN": "figd_your_figma_token_here"
      }
    }
  }
}

Setup D: Run from source

json
{
  "mcpServers": {
    "figma-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/figma-mcp/build/index.js"
      ],
      "cwd": "/absolute/path/to/figma-mcp",
      "env": {
        "FIGMA_TOKEN": "figd_your_figma_token_here"
      }
    }
  }
}

⚠️ Notes:

  • Recommended: Setup A (npx) — no install, always latest
  • Global install: good if you use it often
  • Project install: pin a version per project
  • From source: for development and customization
  • Replace figd_your_figma_token_here with your real Figma token

3. Restart Claude Desktop

Restart Claude Desktop to apply the config.

Usage

Once configured, use it directly in Claude:

Get Figma images

Please fetch images from this Figma URL:
https://www.figma.com/design/EXAMPLE_FILE_ID/Design-Name?node-id=123-456&t=abc123-0

Get style data and generate CSS

Please get style data from this design and generate CSS:
https://www.figma.com/design/EXAMPLE_FILE_ID/Design-Name?node-id=123-456&t=abc123-0

Get file info

Please show the basic info for this Figma file:
https://www.figma.com/design/EXAMPLE_FILE_ID/Design-Name

Get design elements 🆕

Please analyze what design elements this Figma node contains:
https://www.figma.com/design/EXAMPLE_FILE_ID/Design-Name?node-id=123-456&t=abc123-0

Get image assets 🆕

Please extract all image assets under this Figma node:
https://www.figma.com/design/EXAMPLE_FILE_ID/Design-Name?node-id=123-456&t=abc123-0

Get SVG data 🆕

Please get the SVG code for this Figma node:
https://www.figma.com/design/EXAMPLE_FILE_ID/Design-Name?node-id=123-456&t=abc123-0

Available Tools

This MCP server provides 7 tools:

Basics

  1. get_figma_image — Get node image by Figma URL
  2. get_figma_styles — Get node style data; optional CSS output
  3. export_multiple_images — Batch export multiple nodes
  4. get_file_info — Get basic file info

Design element tools 🆕

  1. get_node_images — Get all image assets under a node
  2. get_node_svg — Get SVG data for a node
  3. extract_node_elements — Extract all design elements (images, vectors, components)

Troubleshooting

Common issues

1. "Cannot find module"

  • Cause: Using a .ts entry instead of the built .js
  • Fix: Use /path/to/build/index.js instead of index.ts

2. "Access denied"

  • Cause: Invalid Figma token or insufficient file permission
  • Fix: Verify token, ensure file is public or accessible

3. MCP server won’t start

  • Cause: Wrong paths or Node.js version too low
  • Fix:
    • Use absolute paths
    • Ensure Node.js ≥ 18
    • Rebuild: npm run build

4. "No exportable images found"

  • Cause: URL missing node-id parameter
  • Fix: Ensure URL includes ?node-id=xxxxx-xxxxx

Manual test

bash
cd /path/to/figma-mcp
node build/index.js figd_your_token_here

You should see: Figma MCP server started

Validate config

bash
# macOS/Linux
cat ~/.config/claude-desktop/config.json | python -m json.tool

# Windows
type "%APPDATA%\Claude Desktop\config.json" | python -m json.tool

Technical Details

Smart retry

  • Handles transient network issues automatically
  • Exponential backoff
  • Error classification and recovery

Batch processing

  • Automatically splits large node sets (90 per batch)
  • Avoids URL length limits
  • Concurrency control and resource management

Error handling

  • Detailed messages and remediation tips
  • Friendly feedback
  • Complete logging

Development

Dev mode

bash
npm run dev
# Then set FIGMA_TOKEN in your environment

Project structure

figma-mcp/
├── src/
│   ├── index.ts             # MCP server entry
│   ├── figma-service.ts     # Figma API service
│   ├── image-extractor.ts   # Image export
│   ├── style-extractor.ts   # Style extraction
│   └── element-extractor.ts # Design element extraction 🆕
├── build/                   # Build output
├── package.json
└── README.md

New Features 🆕

Design element analysis

  • Image asset recognition: Find all images, including embedded and external
  • Vector extraction: Extract SVG paths, shapes, icons
  • Component analysis: Identify components and instances
  • Hierarchy traversal: Deeply walk the node tree

SVG data

  • Full SVG export: Complete SVG code with styles and paths
  • Vector fidelity: Preserve vector properties for lossless scaling
  • Inline styles: SVG contains complete styles, ready to use

Smart element detection

  • Auto categorization: Images, vectors, text, components
  • De-duplication: Remove duplicate resource references
  • Detail control: Overview vs detailed output modes

Security Best Practices

  1. Token safety: Use env vars for the Figma token; never hardcode
  2. Access control: Rotate tokens regularly
  3. Least privilege: Grant the minimum required file access

License

MIT License


Support

If you run into issues:

  1. Ensure Node.js ≥ 18
  2. Verify your Figma token
  3. Validate your JSON config
  4. Check Claude Desktop logs
  5. Manually start the MCP server

Once configured, you can use Figma files directly in Claude!

Contact

Installation

TypingMind
{
  "mcpServers": {
    "figma-mcp-full-server": {
      "command": "npx",
      "args": [
        "figma-mcp-server"
      ],
      "env": {
        "FIGMA_TOKEN": "<FIGMA_TOKEN>"
      }
    }
  }
}

Available Tools

  • get_figma_image

    根据Figma URL获取节点的图片

  • get_figma_styles

    根据Figma URL获取节点的样式数据

  • export_multiple_images

    批量导出多个节点的图片

  • get_file_info

    获取Figma文件的基本信息

  • get_node_images

    获取节点中的所有图片资源

  • get_node_svg

    获取节点的SVG数据

  • extract_node_elements

    提取节点中的所有设计元素(图片、矢量、组件)

Use Figma MCP Tool MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Figma MCP Tool 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 Tool 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 Tool 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-full-server": {
      "command": "npx",
      "args": [
        "-y",
        "figma-mcp-full-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Figma MCP Tool 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 Tool 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 Tool to help me with this task?
Figma MCP Tool
Sure. I read it.
Here is what I found using Figma MCP Tool.

Frequently asked questions

What is the Figma MCP Tool MCP server used for?

Figma MCP Tool 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 Tool MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Figma MCP Tool 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 Tool 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 Tool 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 Tool MCP to TypingMind?

Figma MCP Tool 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 Tool MCP provide in TypingMind?

Figma MCP Tool exposes 7 MCP tools 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 Tool 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 Tool 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 👇