GC

grab/cursor-talk-to-figma-mcp

Developer tools

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

7075 stars 783 forks 品質 72 トレンド 34MIT

TalkToFigma:AIエージェント(カーソル、Claudeコード、Codex)とFigma間のMCP統合により、Agentic AIがFigmaと通信し、設計を読み取ったりプログラム的に修正したりできます。

概要

本プロジェクトは、AIエージェント(カーソル、Claudeコード)とFigma間のモデルコンテキストプロトコル(MCP)統合を実装し、AIエージェントがFigmaと通信して設計図を読み込み、プログラム的に修正できるようにします。 https://github.com/user-attachments/assets/129a14d2-ed73-470f-9a4c-2240b2a4885c - src/talk_to_figma_mcp/ - Figma統合用のTypeScript MCPサーバー - src/cursor_mcp_plugin/ - カーソルとの通信用のFigmaプラグイン- src/socket.ts - MCPサーバーとFigmaプラグイン間の通信を促進するWebSocketサーバー 2. セットアップを実行すると、カーソルのアクティブなプロジェクトにMCPもインストールされます 4. FigmaコミュニティページからFigmaプラグインをインストールするか、ローカルにインストールする @dusskaparkの一括テキスト置換機能にご協力いただき、ありがとうございます。こちらがデモ動画です。 Propagateコンポーネントインスタンス@dusskaparkもう一つの貢献は、単一のコマンドでソースインスタンスから複数のターゲットインスタンスへのオーバーライドです。

概要(AI 翻訳)

本プロジェクトは、AIエージェント(カーソル、Claudeコード)とFigma間のモデルコンテキストプロトコル(MCP)統合を実装し、AIエージェントがFigmaと通信して設計図を読み込み、プログラム的に修正できるようにします。

https://github.com/user-attachments/assets/129a14d2-ed73-470f-9a4c-2240b2a4885c

プロジェクト構成

  • src/talk_to_figma_mcp/ - Figma統合用のTypeScript MCPサーバー
  • src/cursor_mcp_plugin/ - カーソルと通信するためのFigmaプラグイン
  • src/socket.ts - MCPサーバーとFigmaプラグイン間の通信を促進するWebSocketサーバー

使い方

  1. まだインストールしていなければBunをインストールしてください:

  2. セットアップを実行すると、カーソルのアクティブなプロジェクトにMCPもインストールされます

  3. Websocketサーバーを起動する

  4. 新たに FigmaコミュニティページからFigmaプラグインをインストールするか、ローカルでインストールしてください

クイックビデオチュートリアル

ビデオリンク

デザイン自動化の例

大量テキストの内容置換

@dusskaparkの一括テキスト置換機能にご協力いただき、ありがとうございます。こちらがデモ動画です。

インスタンスオーバーライド伝播 @dusskaparkからの別の貢献 Propagateコンポーネントインスタンスは、単一のコマンドでソースインスタンスから複数のターゲットインスタンスにオーバーライドします。

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

README

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

Talk to Figma MCP

This project implements a Model Context Protocol (MCP) integration between AI agent (Cursor, Claude Code) and Figma, allowing AI agent to communicate with Figma for reading designs and modifying them programmatically.

https://github.com/user-attachments/assets/129a14d2-ed73-470f-9a4c-2240b2a4885c

Project Structure

  • src/talk_to_figma_mcp/ - TypeScript MCP server for Figma integration
  • src/cursor_mcp_plugin/ - Figma plugin for communicating with Cursor
  • src/socket.ts - WebSocket server that facilitates communication between the MCP server and Figma plugin

How to use

  1. Install Bun if you haven’t already:
curl -fsSL https://bun.sh/install | bash
  1. Run setup, this will also install MCP in your Cursor’s active project
bun setup
  1. Start the Websocket server
bun socket
  1. NEW Install Figma plugin from Figma community page or install locally

Quick Video Tutorial

Video Link

Design Automation Example

Bulk text content replacement

Thanks to @dusskapark for contributing the bulk text replacement feature. Here is the demo video.

Instance Override Propagation Another contribution from @dusskapark Propagate component instance overrides from a source instance to multiple target instances with a single command. This feature dramatically reduces repetitive design work when working with component instances that need similar customizations. Check out our demo video.

Manual Setup and Installation

MCP Server: Integration with Cursor

Add the server to your Cursor MCP configuration in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "TalkToFigma": {
      "command": "bunx",
      "args": ["cursor-talk-to-figma-mcp@latest"]
    }
  }
}

WebSocket Server

Start the WebSocket server:

bun socket

Figma Plugin

  1. In Figma, go to Plugins > Development > New Plugin
  2. Choose “Link existing plugin”
  3. Select the src/cursor_mcp_plugin/manifest.json file
  4. The plugin should now be available in your Figma development plugins

Windows + WSL Guide

  1. Install bun via powershell
powershell -c "irm bun.sh/install.ps1|iex"
  1. Uncomment the hostname 0.0.0.0 in src/socket.ts
// uncomment this to allow connections in windows wsl
hostname: "0.0.0.0",
  1. Start the websocket
bun socket

Usage

  1. Start the WebSocket server
  2. Install the MCP server in Cursor
  3. Open Figma and run the Cursor MCP Plugin
  4. Connect the plugin to the WebSocket server by joining a channel using join_channel
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "TalkToFigma": { "command": "bunx", "args": ["cursor-talk-to-figma-mcp@latest"] } } }