figma-edit-mcp
figma-edit-mcpは、Figmaのデザインを効率的に編集するためのTypeScriptライブラリです。ユーザーは、直感的なインターフェースを通じてデザイン要素を操作し、カスタマイズすることができます。特に、デザインの自動化やワークフローの改善に役立つ機能が豊富に搭載されています。
GitHubスター
2
ユーザー評価
未評価
お気に入り
0
閲覧数
7
フォーク
0
イシュー
0
README
Figma Edit MCP
A tool for editing Figma files via MCP.
Add text, shapes, frames, and more through MCP.
Requirements
- Node.js v20.0.0 or higher
Installation
Setup Instructions
- Clone the Repository
git clone https://github.com/asamuzak09/figma-edit-mcp.git
cd figma-edit-mcp
- Install Dependencies
npm run install-all
This command installs dependencies and runs the build in both the figma-mcp-server and figma-plugin directories.
- Install the Figma Plugin
To install the Figma plugin locally in development mode:
- Open the Figma desktop app
- From the menu in the top right, select "Plugins" → "Development" → "Import plugin from manifest..."
- Select the figma-plugin/manifest.json file
- The plugin will be installed in development mode
MCP Configuration
For Cline
To use this plugin with Cline, you need to add the MCP server configuration:
- Add the following configuration to the
mcpServers
object:
"figma-mcp-server": {
"command": "node",
"args": ["/path/to/figma-edit-mcp/figma-mcp-server/build/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_figma_personal_access_token"
}
}
For Cursor
To use this plugin with Cursor, you need to add the MCP server configuration:
- Click "Add MCP Server"
- Select "command" for "Type"
- Enter the following for "Command":
env FIGMA_ACCESS_TOKEN=your_figma_personal_access_token node /path/to/figma-edit-mcp/figma-mcp-server/build/index.js
Replace /path/to/figma-edit-mcp
with the actual path to the repository.
Replace your_figma_personal_access_token
with your Figma Personal Access Token.
How to Get a Figma Personal Access Token
- Log in to Figma
- Click on your profile icon in the top right
- Select "Settings"
- Go to the "Personal access tokens" section in the "Account" tab
- Click "Create a new personal access token"
- Enter a name for the token and click "Create token"
- Copy the displayed token (note that this token will only be shown once)
Usage
Using the Figma Plugin
- Open Figma
- From the menu in the top right, select "Plugins" → "Development" → "Figma MCP Plugin"
- The plugin will launch and connect to the MCP server
Main Features
Tools
- update_file: Tool to add and update elements in a Figma file
- get_file: Tool to retrieve the contents of a Figma file
- get_mcp_tool_usage: Tool to get usage information for MCP tools
Element Types That Can Be Added with update_file
- createFrame: Create frames used as backgrounds or containers
- createText: Create text elements (titles, descriptions, etc.)
- createRectangle: Create rectangles (buttons, cards, etc.)
- createEllipse: Create ellipses (icons, decorations, etc.)
- createLine: Create lines (dividers, arrows, etc.)
- createImage: Insert images (logos, characters, etc.)
- createComponent: Create reusable components