mcpField
F
Figma MCP Server

Figma MCP Server

ローカル
github.com/JayArrowzメディア・デザイン7736 週間前に更新

Figma MCP Server について

Figma MCP Server は、Figma API のメソッドを MCP ツールとして提供する MCP サーバーです。AI から Figma のファイル、コメント、コンポーネント、スタイルを参照したいデザイナーや開発者を対象としています。大規模なファイルでは depth の設定を調整して取得する必要がある場合があると記載されています。

主な機能

  1. 01ユーザー、ファイル、コメント、チーム、プロジェクトの API メソッド
  2. 02コンポーネント、コンポーネントセット、スタイルの取得ツール
  3. 03コメントとリアクションの作成、取得、削除
  4. 04Webhook の作成、取得、更新、削除
  5. 05コンポーネント、スタイル、変数の利用状況の分析データ

活用シーン

  1. 01AI クライアントから Figma ファイルの構造を読み取り、ノード画像を書き出す
  2. 02デザインシステム確認のためチームのコンポーネントやスタイルを検索する
  3. 03Webhook でファイルの更新イベントを監視する

MCP 対応

この project は Figma API のメソッドを MCP ツールとして包む MCP サーバーであり、MCP クライアントから呼び出されます。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"figma": {
"command": "npx",
"args": [
"-y",
"@jayarrowz/mcp-figma"
]
}
}
}
起動コマンドnpx -y @jayarrowz/mcp-figma

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npm@jayarrowz/mcp-figma

ツール

31

掲載時のツール一覧 · 3 週間前に更新

このツールにパラメーターはありません。

詳細

Figma MCP サーバー

Third Strand Studio

smithery badge

Figma API と連携するための MCP サーバーです。このサーバーは、Model Context Protocol を通じて Figma API のすべてのメソッドを提供します。大きな Figma ファイルでは、まず figma_get_file に depth = 1 を指定し、必要に応じて値を増やすよう指示する必要がある場合があります。

image

mcp-figma MCP server

ツール

このサーバーは、すべての Figma API メソッドを MCP ツールとして実装しています。

ユーザーメソッド
  1. figma_get_me - 現在のユーザーを取得します
ファイルメソッド
  1. figma_get_file - キーを指定して Figma ファイルを取得します
  2. figma_get_file_nodes - Figma ファイルから指定したノードを取得します
  3. figma_get_images - Figma ファイルから画像をレンダリングします
  4. figma_get_image_fills - Figma ファイル内の画像塗りつぶしを取得します
  5. figma_get_file_versions - Figma ファイルのバージョン履歴を取得します
コメントメソッド
  1. figma_get_comments - Figma ファイル内のコメントを取得します
  2. figma_post_comment - Figma ファイルにコメントを追加します
  3. figma_delete_comment - Figma ファイルからコメントを削除します
  4. figma_get_comment_reactions - コメントへのリアクションを取得します
  5. figma_post_comment_reaction - コメントにリアクションを追加します
  6. figma_delete_comment_reaction - コメントへのリアクションを削除します
チームとプロジェクトのメソッド
  1. figma_get_team_projects - チーム内のプロジェクトを取得します
  2. figma_get_project_files - プロジェクト内のファイルを取得します
コンポーネントメソッド
  1. figma_get_team_components - チーム内のコンポーネントを取得します
  2. figma_get_file_components - ファイル内のコンポーネントを取得します
  3. figma_get_component - キーを指定してコンポーネントを取得します
  4. figma_get_team_component_sets - チーム内のコンポーネントセットを取得します
  5. figma_get_file_component_sets - ファイル内のコンポーネントセットを取得します
  6. figma_get_component_set - キーを指定してコンポーネントセットを取得します
スタイルメソッド
  1. figma_get_team_styles - チーム内のスタイルを取得します
  2. figma_get_file_styles - ファイル内のスタイルを取得します
  3. figma_get_style - キーを指定してスタイルを取得します
Webhook メソッド(V2 API)
  1. figma_post_webhook - Webhook を作成します
  2. figma_get_webhook - ID を指定して Webhook を取得します
  3. figma_update_webhook - Webhook を更新します
  4. figma_delete_webhook - Webhook を削除します
  5. figma_get_team_webhooks - チームの Webhook を取得します
ライブラリアナリティクスメソッド
  1. figma_get_library_analytics_component_usages - ライブラリアナリティクスのコンポーネント使用状況データを取得します
  2. figma_get_library_analytics_style_usages - ライブラリアナリティクスのスタイル使用状況データを取得します
  3. figma_get_library_analytics_variable_usages - ライブラリアナリティクスの変数使用状況データを取得します

インストール

Smithery 経由でのインストール

Smithery を使って、Claude Desktop に mcp-figma を自動的にインストールするには、次の手順に従います。

npx @smithery/cli@latest install @thirdstrandstudio/mcp-figma --client claude
前提条件
  • Node.js(v16 以降)
  • npm または yarn
パッケージのインストール
# Clone the repository
git clone https://github.com/thirdstrandstudio/mcp-figma.git
cd mcp-figma

# Install dependencies
npm install

# Build the package
npm run build

セットアップ

この MCP サーバーを使用するには、Figma API トークンを設定する必要があります。設定方法は次の 3 つです。

1. 環境変数

プロジェクトのルートに .env ファイルを作成するか、環境変数を直接設定します。

FIGMA_API_KEY=your_figma_api_key
2. コマンドライン引数

サーバーの起動時に、コマンドライン引数として Figma API トークンを渡すことができます。

# Using the long form
node dist/index.js --figma-token YOUR_FIGMA_TOKEN

# Or using the short form
node dist/index.js -ft YOUR_FIGMA_TOKEN
Claude Desktop での使用方法

次の内容を claude_desktop_config.json に追加します。

npx を使用する場合
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["@thirdstrandstudio/mcp-figma", "--figma-token", "your_figma_api_key"]
    }
  }
}
Node.js を直接使用する場合(環境変数を使用)
{
  "mcpServers": {
    "figma": {
      "command": "node",
      "args": ["/path/to/mcp-figma/dist/index.js"],  
      "env": {
        "FIGMA_API_KEY": "your_figma_api_key"
      }
    }
  }
}
Node.js を直接使用する場合(コマンドライン引数を使用)
{
  "mcpServers": {
    "figma": {
      "command": "node",
      "args": ["/path/to/mcp-figma/dist/index.js", "--figma-token", "your_figma_api_key"]
    }
  }
}

/path/to/mcp-figma をリポジトリの実際のパスに置き換えてください。

使用例

Figma ファイルを取得する
// Get a Figma file
const result = await callTool("figma_get_file", { 
  fileKey: "abcXYZ123"
});
ファイルのコメントを取得する
// Get comments from a file
const comments = await callTool("figma_get_comments", { 
  fileKey: "abcXYZ123",
  as_md: true 
});
Webhookを作成する
// Create a webhook
const webhook = await callTool("figma_post_webhook", {
  event_type: "FILE_UPDATE",
  team_id: "12345",
  endpoint: "https://example.com/webhook",
  passcode: "your_passcode_here",
  description: "File update webhook"
});

開発

# Install dependencies
npm install

# Start the server in development mode
npm start

# Build the server
npm run build

# Run with a Figma API token
npm start -- --figma-token YOUR_FIGMA_TOKEN

ライセンス

このMCPサーバーはMITライセンスの下でライセンスされています。MITライセンスの利用規約に従うことを条件に、ソフトウェアを自由に使用、変更、配布できます。詳しくは、プロジェクトリポジトリのLICENSEファイルをご覧ください。

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。