
grab/cursor-talk-to-figma-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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サーバー
使い方
-
まだインストールしていなければBunをインストールしてください:
-
セットアップを実行すると、カーソルのアクティブなプロジェクトにMCPもインストールされます
-
Websocketサーバーを起動する
-
新たに 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 integrationsrc/cursor_mcp_plugin/- Figma plugin for communicating with Cursorsrc/socket.ts- WebSocket server that facilitates communication between the MCP server and Figma plugin
How to use
- Install Bun if you haven’t already:
curl -fsSL https://bun.sh/install | bash
- Run setup, this will also install MCP in your Cursor’s active project
bun setup
- Start the Websocket server
bun socket
- NEW Install Figma plugin from Figma community page or install locally
Quick Video Tutorial
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
- In Figma, go to Plugins > Development > New Plugin
- Choose “Link existing plugin”
- Select the
src/cursor_mcp_plugin/manifest.jsonfile - The plugin should now be available in your Figma development plugins
Windows + WSL Guide
- Install bun via powershell
powershell -c "irm bun.sh/install.ps1|iex"
- Uncomment the hostname
0.0.0.0insrc/socket.ts
// uncomment this to allow connections in windows wsl
hostname: "0.0.0.0",
- Start the websocket
bun socket
Usage
- Start the WebSocket server
- Install the MCP server in Cursor
- Open Figma and run the Cursor MCP Plugin
- Connect the plugin to the WebSocket server by joining a channel using
join_channel
インストール
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"]
}
}
}