Skip to main content
Glama

Figma MCP Server

Figma MCP サーバー

Figma の API に接続し、AI ツールと LLM が Figma デザインにアクセスして操作できるようにするモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • デザインデータの抽出:Figmaのデザインからコンポーネント、スタイル、テキストを抽出します

  • デザインシステム分析: デザインシステムの一貫性とパターンを分析する

  • UIコンテンツ管理:デザインからすべてのUIコピーを抽出して整理します

  • 開発ハンドオフ: 開発者向けの包括的なドキュメントを生成する

  • シームレスなAI統合:Claude、Cursor、その他のMCP互換クライアントなどのAIツールにデザインを接続

はじめる

前提条件

  • Node.js 16以上

  • Figma 個人アクセストークン(Figma アカウント設定から取得)

インストール

  1. リポジトリをクローンします。

    git clone https://github.com/yourusername/figma-mcp-server.git cd figma-mcp-server
  2. 依存関係をインストールします:

    npm install
  3. プロジェクト ルートに.envファイルを作成します。

    FIGMA_API_TOKEN=your_figma_personal_access_token API_KEY=your_secure_api_key TRANSPORT_TYPE=stdio
  4. サーバーを構築します。

    npm run build
  5. サーバーを起動します。

    npm start

クライアントへの接続

デスクトップ版クロード

  1. Claude for Desktop 構成ファイルを開くか作成します。

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. 次の構成を追加します。

    { "mcpServers": { "figma": { "command": "node", "args": ["/absolute/path/to/figma-mcp-server/build/index.js"], "env": { "FIGMA_API_TOKEN": "your_figma_personal_access_token", "TRANSPORT_TYPE": "stdio" } } } }
  3. デスクトップ版のClaudeを再起動する

カーソル

グローバル構成

カーソルの MCP 構成ファイルを作成または編集します。

  • macOS: ~/Library/Application Support/Cursor/mcp.json

  • Windows: %APPDATA%\Cursor\mcp.json

{ "mcpServers": { "figma-mcp": { "url": "http://localhost:3000/sse", "env": { "API_KEY": "your_secure_api_key" } } } }

プロジェクト固有の構成

  1. プロジェクト ルートに.cursorディレクトリを作成します。

    mkdir -p .cursor
  2. そのディレクトリ内にmcp.jsonファイルを作成します。

    { "mcpServers": { "figma-mcp": { "url": "http://localhost:3000/sse", "env": { "API_KEY": "your_secure_api_key" } } } }

利用可能なツール

道具

説明

get-file-info

Figmaファイルの基本情報を取得する

get-nodes

Figmaファイルから特定のノードを取得する

get-components

Figmaファイルからコンポーネント情報を取得する

get-styles

Figmaファイルからスタイル情報を取得する

get-comments

Figmaファイルからコメントを取得する

search-file

タイプ、名前などによって Figma ファイル内の要素を検索します。

extract-text

Figmaファイルからすべてのテキスト要素を抽出する

利用可能なプロンプト

  • analyze-design-system - デザインシステムのコンポーネントとスタイルの一貫性を分析する

  • extract-ui-copy - デザインからすべてのUIコピーを抽出して整理します

  • generate-dev-handoff - 設計に基づいて開発ハンドオフドキュメントを生成する

使用例

Claude で使用する場合:

Can you analyze the design system in my Figma file with key abc123? Look for consistency in color usage and typography.

カーソルと併用する場合:

Generate React components for the buttons from my Figma file with key abc123, using tailwind CSS.

環境変数

変数

説明

デフォルト

FIGMA_API_TOKEN

Figma個人アクセストークン

(必須)

API_KEY

API認証用のセキュリティキー

(必須)

TRANSPORT_TYPE

トランスポート方法(

stdio

または

sse

stdio

PORT

SSEトランスポート用のポート

3000

建築

この MCP サーバー:

  1. 個人アクセストークンを使用してFigma APIに接続します

  2. モデルコンテキストプロトコルに準拠した標準化されたインターフェースを公開します

  3. LLM が Figma デザインを操作するために使用できるツール、リソース、プロンプトを提供します。

  4. stdio トランスポート (ローカル接続) と SSE トランスポート (リモート接続) の両方をサポートします。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

AI ツールと LLM を Figma デザインに接続し、デザイン データを抽出し、デザイン システムを分析し、開発ドキュメントを生成できるようにするモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. はじめる
      1. 前提条件
      2. インストール
    2. クライアントへの接続
      1. デスクトップ版クロード
      2. カーソル
    3. 利用可能なツール
      1. 利用可能なプロンプト
        1. 使用例
          1. 環境変数
            1. 建築
              1. 貢献

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  Enables seamless interaction with Figma via the Model Context Protocol, allowing LLM applications to access, manipulate, and track Figma files, components, and variables.
                  Last updated -
                  107
                  139
                  • Apple
                • A
                  security
                  F
                  license
                  A
                  quality
                  A Model Context Protocol server that provides access to Figma API functionality, allowing AI assistants like Claude to interact with Figma files, comments, components, and team resources.
                  Last updated -
                  18
                  179
                  3
                • A
                  security
                  F
                  license
                  A
                  quality
                  A Model Context Protocol server that integrates with Figma's API, allowing interaction with Figma files, comments, components, projects, and webhook management.
                  Last updated -
                  5
                  725
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that integrates Figma design files with AI coding tools like Cursor, Windsurf, and Cline, allowing AI tools to access and understand Figma design data for generating more accurate code.
                  Last updated -
                  2
                  15
                  MIT License
                  • Linux
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/mohammeduvaiz/figma-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server