
antonytm/figma-mcp-server 是从 https://github.com/antonytm/figma-mcp-server. 导入的 MCP 服务器候选
概览
antonytm/figma-mcp-server 是从 https://github.com/antonytm/figma-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
问题
官方 Figma MCP 服务器仅支持只读工具。** 你无法使用官方 Figma MCP 服务器更改 Figma 文档中的任何内容。** 你可以在Figma Make中使用AI代理。但在Figma Make里聊天然后把结果移到Figma继续,并不方便。
目标是让AI代理能够处理你的Figma文档。
你可以让AI代理在Figma中实现你想要的设计,配合这个MCP服务器!
用途
先决条件
- 如果你没有安装
Node.js - 克隆该仓库
启动Figma插件
- 切换到插件目录:
cd plugin - 安装依赖:
npm i - 构建Figma插件
npm run build - 打开Figma,打开你想处理的文档
- 添加 Figma 插件 插件 > 开发 > Imprort 插件 从manifest,选择
/plugin/manifest.json - 启动Figma MCP Server插件
- 预期结果:应显示消息*未连接到MCP服务器**
- 不要关闭插件窗口。启动时会显示已连接到MCP服务器的提示。
下次你可以从以下插件开始:插件 > 开发 > Figma MCP 服务器。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Figma Model Context protocol server
Problem
The official Figma MCP server has only read-only tools. You can not change anything in the Figma document using the official Figma MCP server. You can use AI Agent in Figma Make. But, it is not convenient to chat in Figma Make and then move result to Figma to continue.
The goal is to enable AI Agents to work with your Figma documents.
You are able to ask you AI agent to implement the design in Figma that you want with this MCP server!
Usage
Prerequisites
- Install
Node.jsif you don’t have it - Clone this repository
Start Figma Plugin
- Switch to plugin directory:
cd plugin - Install dependencies:
npm i - Build Figma Plugin
npm run build - Open Figma, open document you want to work with
- Add Figma Plugin Plugins > Development > Imprort Plugin from manifest, select
/plugin/manifest.json - Start the Figma MCP Server plugin
- Expected result: Message Not connected to MCP server should be shown
- Do not close Plugin window. It will show message Connected to MCP server when it is started.
Next time you can start plugin from: Plugins > Development > Figma MCP Server. And do 1-3 steps only when you want to get latest changes.
Start MCP server
- Switch to MCP directory:
cd mcp - Install dependencies:
npm i - Start the server:
npm run start - Expected result: Messages
Server listening on http://localhost:38450anda user connected: .............in the console
Configure MCP server in your client
- Use Streaming HTTP transport and
http://localhost:38450/mcpURL - Turn off tools that you don’t need
Now you should be able to ask your AI Agent to do something in Figma. For example:
We are working on publishing it as Figma plugin. Figma reviewers haven’t accepted it so far. Once Figma accept it as plugin, the configuration and start will be simplified a lot!
Tools
TBD
Development
Contributions to the project are welcome!
MCP server
cd mcpnpm inpm run dev
Plugin
cd pluginnpm inpm run dev- Open Figma
- Plugins > Development > Import plugin from manifest …
- Select
manifest.jsonfromplugin\manifest.json - Start plugin
- You should see Connected to MCP server message
Add Plugin to Figma
- Open Figma
- Add Figma Plugin Plugins > Development > Imprort Plugin from manifest, select
/plugin/manifest.json
Inspector
cd mcpnpm run inspector
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →