TalkToFigma

TalkToFigma

Enables local AI agents to generate and edit Figma designs via the Plugin API through a WebSocket relay, with no rate limits and all communication remaining local.

Category
Visit Server

README

Figma Local Bridge

ローカルで動くAIエージェント(Claude Code、Cursor、その他)が、Figma Plugin APIを通じてFigmaデザインを生成・編集できるようにします。Figma REST APIも公式のFigma MCPサーバーも使わず、コール数の制限もありません。すべてlocalhostで完結します。

Why

公式のFigma MCPサーバーは有料シートが必要で、コール数にも制限があります。Figma Local Bridgeは代わりにPlugin API(追加コストなし、Figmaエディタ内で動作)をローカルのWebSocketリレー経由で操作することで、AIエージェントに同等のプログラム的なキャンバス操作権限を与えます。通信はすべてローカルマシン内で完結し、外部通信は一切発生しません。

Architecture

MCP server (bun)  <-->  WebSocket relay :3055  <-->  Figma plugin  <-->  Plugin API
  • MCP server — Model Context Protocol経由でAIエージェントにデザインツールを公開します。
  • WebSocket relay — MCPサーバーとFigmaプラグインを名前付きチャンネルで接続する、localhost限定のブリッジ(ポート3055)です。
  • Figma plugin — Figmaエディタ内で動作し、Plugin APIに対してコマンドを実行します。

Quick start

  1. Bunをインストールし、依存関係をインストールします。

    bun install
    
  2. WebSocketリレーを起動します。

    bun run src/socket.ts
    
  3. Figmaデスクトップアプリでプラグインをインポートします。 Plugins → Development → Import plugin from manifest… → src/cursor_mcp_plugin/manifest.json を選択。

  4. AIエージェント(例: Claude Code)にMCPサーバーを登録します。同梱の.mcp.jsonはサーバーを直接起動します。

    {
      "mcpServers": {
        "TalkToFigma": {
          "command": "bun",
          "args": ["src/talk_to_figma_mcp/server.ts"]
        }
      }
    }
    
  5. Figmaでプラグインを実行し、Connectをクリックします。デフォルトのチャンネルはfigma-local-bridgeです(プラグインのConnectionタブで編集可能、リロード後も保持されます)。その後、エージェントに同じチャンネル名でjoin_channelを呼び出させます。

Tools

MCPサーバーは、Figmaデザインの読み取り・編集のためのツールを公開しています。ドキュメント/選択状態の検査、フレーム・矩形・テキストの作成、オートレイアウトと間隔設定、塗り/線/角丸、移動・リサイズ・複製・削除、コンポーネントとインスタンスのオーバーライド、アノテーション、プロトタイプのリアクション、FigJamコネクタ、画像エクスポートなどです。

このforkで追加した9個のツール

  • set_parent — ノードを別のノードの子として再配置します(インデックス/位置維持を指定してappend childを実行)。
  • reorder_children — 親ノード内の子要素の並び順を変更します。
  • set_text_style — テキストノードの行間・字間・配置・フォントファミリー/スタイルを設定します。
  • get_variables — ローカル変数を一覧表示します(コレクションでのフィルタも可能)。
  • create_variable_collection — モード名を指定して変数コレクションを作成します。
  • create_variable — スラッシュ階層の名前を持つCOLOR/FLOAT/STRING/BOOLEAN変数を作成します。
  • bind_variable — 変数をノードのプロパティ(fills、strokes、サイズ、角丸、パディング、間隔など)にバインドします。
  • create_component_from_node — 既存のノードをコンポーネントに変換します。
  • create_component — オートレイアウトのパラメータと任意の名前を指定して空のコンポーネントを作成します。

同梱のClaude Codeスキル

Claude Codeスキルが.claude/skills/talk-to-figma-design/に含まれています。Plugin APIの制約、呼び出し順序、トークン節約のルール、エージェント駆動のFigma操作を信頼性高く動かすためのデザイン品質のデフォルト設定をまとめています。

Credits

cursor-talk-to-figma-mcp(Sonny Lazuardi作、MIT)をベースに変更を加えています。LICENSEを参照してください。

Disclaimer

非公式です。Figma社とは一切関係なく、承認や推奨も受けていません。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured