Figma MCP Toolのロゴ

Figma MCP Tool

コミュニティ
Echoxiawan

figma mcp

公開者Echoxiawan
リポジトリfigma-mcp-full-server
言語TypeScript
フォーク
6
スター
11
利用可能なツール
7
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Figma MCP Toolは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 7個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには11件のスターと6件のフォークがあります。

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

インストール

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

利用可能なツール

  • 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

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

Figma MCP ToolのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Figma MCP Toolに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Figma MCP Toolをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Figma MCP ToolのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "figma-mcp-full-server": {
      "command": "npx",
      "args": [
        "-y",
        "figma-mcp-full-server"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてFigma MCP ToolのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Figma MCP ToolのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Figma MCP Toolを使ってこのタスクを手伝ってもらえますか?
Figma MCP Tool
はい、読みました。
Figma MCP Toolで調べた結果をお伝えします。

よくある質問

Figma MCP Tool MCPサーバーは何に使いますか?

Figma MCP Toolは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでFigma MCP Tool MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでFigma MCP Toolを利用できます。

TypingMindでFigma MCP Tool MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Figma MCP Toolを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Figma MCP Tool MCPをTypingMindに接続するにはどうすればよいですか?

Figma MCP ToolはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでFigma MCP Tool MCPのどのようなツールを利用できますか?

Figma MCP Toolは7個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Figma MCP Tool MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Figma MCP Toolで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇