Local Figma Server
БесплатноНе проверенBridges MCP clients to Figma, enabling live canvas manipulation via a plugin WebSocket and file metadata access through the Figma REST API.
Описание
Bridges MCP clients to Figma, enabling live canvas manipulation via a plugin WebSocket and file metadata access through the Figma REST API.
README
This project is a local bridge between an MCP client and Figma.
Mental Model
There are three local pieces:
- Your MCP client starts
node src/server.js. src/server.jsspeaks MCP over stdin/stdout.- The Figma plugin connects back to the server over
ws://localhost:3055.
There is also one optional cloud piece:
- Figma REST API calls go from
src/server.jstohttps://api.figma.comusingFIGMA_ACCESS_TOKEN.
The MCP server cannot directly inspect a live Figma canvas. For live canvas actions, it sends commands to the plugin, and the plugin uses the Figma Plugin API. For file metadata, comments, projects, versions, components, styles, dev resources, and webhooks, the server uses the Figma REST API.
Why Node
Node is used because the two local edges are JavaScript-native:
- The MCP TypeScript/JavaScript SDK supports local stdio servers cleanly.
- Figma plugins are written in JavaScript.
FastAPI can work for an HTTP service, but this project is primarily a local MCP stdio server plus a WebSocket bridge to a Figma plugin. Using FastAPI would add a Python HTTP layer without removing the need for JavaScript in the plugin.
Run The Server
npm start
If you want to use Figma REST API tools, set your token before starting the server:
$env:FIGMA_ACCESS_TOKEN="your-token-here"
npm start
By default the server sends the token as X-Figma-Token, which is the usual mode for Figma personal access tokens. For OAuth bearer tokens, also set:
$env:FIGMA_AUTH_MODE="bearer"
For an MCP client config, use this command:
{
"mcpServers": {
"figma-local": {
"command": "node",
"args": ["C:\\Users\\Nived\\Local-Figma-MCP-server\\src\\server.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your-token-here"
}
}
}
}
Do not commit a real token into this repo. Use your MCP client's private config or your shell environment.
Load The Figma Plugin
- Open Figma Desktop.
- Go to
Plugins > Development > Import plugin from manifest.... - Select
plugin/manifest.json. - Run
Local Figma MCP Bridge. - Click
Connect.
Current Tools
Dev-focused MVP tools:
get_file: loads summarized Figma file metadata and structure.find_frame: finds a screen/frame by exact name and returns its node ID.get_node: reads details for one node.export_image: renders a frame or node as an image URL.get_styles: reads published styles for the file.get_components: reads reusable components and component sets for the file.analyze_screen: finds a frame and returns an AI-friendly dev summary with components, nested frames, text layers, colors, and counts. Plugin-backed tools:figma_status: checks whether the plugin is connected.figma_get_selection: returns selected node summaries.figma_create_rectangle: creates a rectangle.figma_create_text: creates a text layer.
REST API-backed tools:
figma_api_status: checks token configuration without exposing the token.figma_me: reads the current Figma user.figma_get_file: reads file JSON.figma_get_file_metadata: reads file metadata.figma_get_file_nodes: reads specific nodes.figma_render_images: renders image URLs for nodes.figma_get_comments: reads file comments.figma_add_comment: creates a file comment.figma_delete_comment: deletes one of your comments.figma_get_file_versions: reads file version history.figma_get_team_projects: lists team projects.figma_get_project_files: lists project files.figma_get_file_components: reads published file components.figma_get_file_component_sets: reads published file component sets.figma_get_file_styles: reads published file styles.figma_get_dev_resources: reads Dev Mode resources.figma_list_webhooks: lists accessible webhooks.figma_get_team_webhooks: lists team webhooks.
How To Add A Plugin Tool
- Register an MCP tool in
src/server.js. - Make that tool call
bridge.sendCommand("your-command", params). - Add a matching branch in
plugin/code.jsinsiderunCommand. - Use the Figma Plugin API in that branch.
That pattern is the whole plugin bridge: MCP tool -> WebSocket command -> Figma Plugin API -> WebSocket result -> MCP response.
How To Add A REST Tool
- Register an MCP tool in
src/server.js. - Validate inputs with Zod.
- Call a method in
src/figma-api.js. src/figma-api.jssends an authenticated request tohttps://api.figma.com.- The JSON response is returned to the MCP client.
Установка Local Figma Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/NiveditaAryaK/Local-Figma-MCP-serverFAQ
Local Figma Server MCP бесплатный?
Да, Local Figma Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Local Figma Server?
Нет, Local Figma Server работает без API-ключей и переменных окружения.
Local Figma Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Local Figma Server в Claude Desktop, Claude Code или Cursor?
Открой Local Figma Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
LibreOffice Tools
Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a
автор: passerbyflutterdannote/figma-use
Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.
автор: dannoteLogo.dev
Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
автор: NOVA-3951PIX4Dmatic
Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem
автор: jangjo123Compare Local Figma Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории design
