MS

magic-spells/figma-mcp-bridge

Developer toolsОфициальный

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

85 stars 13 forks Качество 82 Тренд 8MIT

magic-spells/figma-mcp-bridge - это MCP-серверный кандидат, импортированный из T0

Обзор

magic-spells/figma-mcp-bridge - это MCP-серверный кандидат, импортированный из T0

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который позволяет Клоду читать и манипулировать файлами дизайна Figma и файлами FigJam в режиме реального времени через мост WebSocket к плагину Figma.

Особенности

98 операций - 73 инструмента проектирования Figma + 21 инструмент FigJam (липкие заметки, формы блок-схем, разъемы, таблицы, блоки кода, предварительные просмотры ссылок) + 4 инструмента прототипа (реакции, начальные точки потока) ** Работает в обоих редакторах, а также только для чтения Dev Mode** - Автообнаруживает, находитесь ли вы в файле дизайна Figma или FigJam, и соответствующим образом вводит команды, специфичные для редактора (инструменты для липких / соединительных / настольных инструментов только для FigJam; инструменты для прототипов только для Figma-Design). В режиме Dev плагин работает только для чтения - см. Поддержка режима Dev ** Двунаправленная связь в реальном времени** - Изменения появляются мгновенно в Figma/FigJam ** Токен-оптимизированные запросы** - Эффективный поиск переменных и обход узлов для взаимодействия ИИ ** Полный доступ к API Figma** - Стили, переменные, автоустановка, компоненты и командные библиотеки, а также диаграммы и документация FigJam

  • Основные навыки - Отправляет собственное руководство по эксплуатации в качестве ресурсов MCP ('skill://figma-bridge/SKILL).

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Figma MCP Bridge

A Model Context Protocol (MCP) server that enables Claude to read and manipulate Figma design files and FigJam files in real-time through a WebSocket bridge to a Figma plugin.

Features

  • 98 operations - 73 Figma design tools + 21 FigJam tools (sticky notes, flowchart shapes, connectors, tables, code blocks, link previews) + 4 Prototype tools (reactions, flow starting points)
  • Works in both editors, plus read-only Dev Mode - Auto-detects whether you’re in a Figma design file or FigJam, and gates editor-specific commands accordingly (FigJam-only sticky/connector/table tools; Figma-Design-only prototype tools). In Dev Mode the plugin runs read-only — see Dev Mode support
  • Real-time bidirectional communication - Changes appear instantly in Figma/FigJam
  • Token-optimized queries - Efficient variable search and node traversal for AI interactions
  • Full Figma API access - Styles, variables, auto-layout, components and team libraries, plus FigJam diagrams and documentation
  • Built-in skills - Ships its own operating guide as MCP resources (skill://figma-bridge/SKILL.md); connected agents are directed to read it before write-heavy work, so no separate skill install is needed

Architecture

Claude Code ←──stdio──→ MCP Server ←──WebSocket──→ Figma Plugin ←──→ Figma API
                        (Node.js)    localhost:3055    (runs in Figma)

Dev Mode Support

The plugin also runs in Figma Dev Mode (e.g. on a Developer seat, or a view-only file opened in Dev Mode). It appears in the inspect panel’s plugin area with a read-only badge next to the port field.

Dev Mode plugins get a read-only document — this is a Figma platform restriction, not a bridge limitation — so only the read tools work there:

  • figma_get_context, figma_list_pages, figma_get_nodes, figma_get_children
  • figma_search_nodes, figma_search_components, figma_search_styles, figma_search_variables
  • figma_get_local_styles, figma_get_local_variables
  • figma_export_node
  • figma_set_selection, figma_set_current_page (selection/navigation, not document edits)

Every mutation tool returns a READ_ONLY_EDITOR error naming the tool. To edit the file, open it in the Figma Design editor with an editor seat.

If you only need read access to designs and tokens, also consider Figma’s official MCP server, which specializes in design-to-code extraction. This bridge’s Dev Mode support exists so bridge users keep one consistent tool surface — its real differentiator (writing to the document) requires the Design editor.

Quick Start

Prerequisites

  • Node.js 18+
  • Figma desktop app
  • Claude Code CLI or Claude Desktop

Installation

For Claude Code CLI:

claude mcp add figma-mcp-bridge -- npx @magic-spells/figma-mcp-bridge

For Claude Desktop:

Открыть полный README на GitHub

Установка

npx -y @magic-spells/figma-mcp-bridge
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "figma-mcp-bridge": { "command": "npx", "args": ["-y", "@magic-spells/figma-mcp-bridge"] } } }