EF

echoxiawan/figma-mcp-full-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 6 forks 品質 65 トレンド 8MIT

figma mcp

概要

A Model Context Protocol (MCP) server that integrates with the Figma API to export images and extract style data. - 🖼️ : Export node images from a Figma URL; supports PNG, JPG, SVG, PDF - 🎨 : Fetch detailed style data for design elements; supports CSS generation - 📦 : Export multiple nodes in one go - 🔄 : Built-in retry to handle network hiccups and API limits - 🛡️ : Clear error handling and troubleshooting guidance - 🧩 : Deeply analyze images, vectors, components in designs 🆕 - 📋 : Get SVG code for vector graphics directly 🆕 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_) Edit the Claude config file (pick your OS): macOS/Linux: ~/.config/claude-desktop/config.json Windows: %APPDATA%\Claude Desktop\config.

README

以下は原文 README の抜粋です。原文を見る。

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

npx figma-mcp-full-server figd_your_figma_token_here

Option 2: Global install

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

# Run
figma-mcp-full-server figd_your_figma_token_here

Option 3: Local project install

# 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)

git clone 
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:

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

Setup B: Global install

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

Setup C: Use from a project

npm install figma-mcp-full-server
{
  "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

{
  "mcpServers": {
    "figma-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/figma-mcp/build/index.js"
      ],
GitHub で README 全文を見る

インストール

npx figma-mcp-full-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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