Talk to Figma MCP
カーソルでFigma MCPと会話
このプロジェクトは、Cursor AI と Figma 間のモデル コンテキスト プロトコル (MCP) 統合を実装し、Cursor が 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 サーバー
Related MCP server: Talk to Figma MCP
始める
まだインストールしていない場合は、Bun をインストールしてください。
curl -fsSL https://bun.sh/install | bashセットアップを実行すると、カーソルのアクティブプロジェクトにMCPもインストールされます。
bun setupWebsocketサーバーを起動する
bun startFigmaプラグインをインストールする
手動セットアップとインストール
MCP サーバー: カーソルとの統合
~/.cursor/mcp.jsonの Cursor MCP 構成にサーバーを追加します。
{
"mcpServers": {
"TalkToFigma": {
"command": "bun",
"args": [
"/path/to/cursor-talk-to-figma-mcp/src/talk_to_figma_mcp/server.ts"
]
}
}
}WebSocketサーバー
WebSocket サーバーを起動します。
bun run src/socket.tsFigmaプラグイン
Figmaで、プラグイン > 開発 > 新しいプラグインに移動します
「既存のプラグインをリンク」を選択
src/cursor_mcp_plugin/manifest.jsonファイルを選択します。プラグインはFigma開発プラグインで利用できるようになります。
使用法
WebSocketサーバーを起動する
カーソルにMCPサーバーをインストールする
Figmaを開いてカーソルMCPプラグインを実行します。
join_channelを使用してチャネルに参加し、プラグインを WebSocket サーバーに接続します。MCPツールを使ってFigmaと通信するにはカーソルを使用します
MCPツール
MCP サーバーは、Figma と対話するための次のツールを提供します。
書類選考
get_document_info- 現在のFigmaドキュメントに関する情報を取得しますget_selection- 現在の選択に関する情報を取得するget_node_info- 特定のノードに関する詳細情報を取得する
要素の作成
create_rectangle- 位置、サイズ、オプションの名前を指定して新しい四角形を作成しますcreate_frame- 位置、サイズ、オプションの名前を指定して新しいフレームを作成しますcreate_text- カスタマイズ可能なフォントプロパティを持つ新しいテキストノードを作成します
スタイリング
set_fill_color- ノードの塗りつぶし色を設定する (RGBA)set_stroke_color- ノードのストロークの色と太さを設定するset_corner_radius- ノードのコーナー半径を設定します。コーナーごとのオプション制御も使用できます。
レイアウトと構成
move_node- ノードを新しい位置に移動するresize_node- 新しい寸法でノードのサイズを変更するdelete_node- ノードを削除する
コンポーネントとスタイル
get_styles- ローカルスタイルに関する情報を取得するget_local_components- ローカルコンポーネントに関する情報を取得するget_team_components- チームコンポーネントに関する情報を取得するcreate_component_instance- コンポーネントのインスタンスを作成する
エクスポートと詳細設定
export_node_as_image- ノードを画像(PNG、JPG、SVG、またはPDF)としてエクスポートしますexecute_figma_code- Figma で任意の JavaScript コードを実行します (注意して使用してください)
接続管理
join_channel- Figmaと通信するために特定のチャンネルに参加する
発達
Figmaプラグインの構築
Figma プラグイン ディレクトリに移動します。
cd src/cursor_mcp_plugincode.jsとui.htmlを編集する
ベストプラクティス
Figma MCP を使用する場合:
コマンドを送信する前に必ずチャンネルに参加してください
まず
get_document_infoを使ってドキュメントの概要を取得します変更前に
get_selectionで現在の選択内容を確認するニーズに応じて適切な作成ツールを使用します。
コンテナ用の
create_frame基本図形の
create_rectangleテキスト要素の
create_text
get_node_infoを使用して変更を確認する一貫性を保つために可能な場合はコンポーネントインスタンスを使用する
すべてのコマンドは例外をスローする可能性があるため、エラーを適切に処理します。
ライセンス
マサチューセッツ工科大学
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables Cursor AI to communicate with Figma for reading designs and modifying them programmatically, allowing users to automate design tasks through natural language.388821
- AlicenseBqualityDmaintenanceAllows Cursor AI to communicate with Figma for reading designs and modifying them programmatically through a Model Context Protocol integration.388821MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Cursor to interact with Figma designs programmatically. Supports reading design information, modifying elements, creating components, managing text content, and automating design workflows through natural language commands.882MIT
- AlicenseNot gradedqualityDmaintenanceEnables coding agents like Cursor to access Figma design data, fetch layout and styling information, and implement designs in any framework.57,771MIT
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Connect AI coding agents to Anima Playground, Figma, and your design system.
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/yhc984/cursor-talk-to-figma-mcp-main'
If you have feedback or need assistance with the MCP directory API, please join our Discord server