zapcode-figma-mcp 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -54
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,112 +1,210 @@
|
|
|
1
|
-
Generated markdown
|
|
2
|
-
|
|
3
1
|
# Zapcode Figma MCP Server
|
|
4
2
|
|
|
5
3
|
[](https://www.npmjs.com/package/zapcode-figma-mcp)
|
|
6
|
-
<!-- [](https://opensource.org/licenses/MIT) -->
|
|
7
4
|
|
|
8
|
-
This package provides a Model Context Protocol (MCP) server that acts as a bridge between your **Figma designs** and any **MCP-compatible AI client** (like Claude for Desktop, Open WebUI, etc.).
|
|
9
5
|
|
|
10
|
-
|
|
6
|
+
Connect your Figma designs directly to AI tools like Claude Desktop, Cursor, and Cline. Get real-time HTML, CSS, images, and assets from selected Figma frames through the Model Context Protocol.
|
|
11
7
|
|
|
12
|
-
##
|
|
8
|
+
## Features
|
|
13
9
|
|
|
14
|
-
- **Real-time Context
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
10
|
+
- **Real-time Design Context** - Fetches live data from your currently selected Figma frame
|
|
11
|
+
- **Complete Asset Export** - Supports SVG, PNG, JPG, PDF, and all Figma asset types
|
|
12
|
+
- **Configurable Storage** - Save assets to custom paths or default workspace location
|
|
13
|
+
- **Auto-organized Assets** - Assets grouped by type (svg/, png/, jpg/, etc.)
|
|
14
|
+
- **Zero Configuration** - Works out of the box with npx
|
|
15
|
+
- **Rich Context** - Provides HTML structure, CSS styles, images, and design specifications
|
|
18
16
|
|
|
19
|
-
##
|
|
17
|
+
## Prerequisites
|
|
20
18
|
|
|
21
|
-
1.
|
|
22
|
-
2.
|
|
19
|
+
1. **Node.js 16+** - [Download here](https://nodejs.org/)
|
|
20
|
+
2. **Figma Desktop App** - Required for plugin integration
|
|
21
|
+
3. **[Zapcode Figma Plugin](https://www.figma.com/community/plugin/1454956820198178710/zapcode)** - Install from Figma Community
|
|
23
22
|
|
|
24
|
-
##
|
|
23
|
+
## Installation
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
### Claude Desktop
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
Add to your `claude_desktop_config.json`:
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
30
|
+
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"mcpServers": {
|
|
35
|
+
"zapcode-figma": {
|
|
36
|
+
"command": "npx",
|
|
37
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Restart Claude Desktop after making changes.
|
|
33
44
|
|
|
34
|
-
|
|
45
|
+
### Cursor
|
|
46
|
+
|
|
47
|
+
Add to your MCP settings configuration:
|
|
35
48
|
|
|
36
49
|
```json
|
|
37
50
|
{
|
|
38
51
|
"mcpServers": {
|
|
39
|
-
"zapcode-figma
|
|
52
|
+
"zapcode-figma": {
|
|
40
53
|
"command": "npx",
|
|
41
|
-
"args": ["zapcode-figma-mcp"]
|
|
54
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
42
55
|
}
|
|
43
56
|
}
|
|
44
57
|
}
|
|
45
58
|
```
|
|
46
59
|
|
|
47
|
-
###
|
|
60
|
+
### Cline (VS Code Extension)
|
|
61
|
+
|
|
62
|
+
Add to Cline's MCP settings:
|
|
48
63
|
|
|
49
64
|
```json
|
|
50
65
|
{
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"type": "stdio",
|
|
66
|
+
"mcpServers": {
|
|
67
|
+
"zapcode-figma": {
|
|
54
68
|
"command": "npx",
|
|
55
|
-
"args": ["zapcode-figma-mcp"]
|
|
69
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
56
70
|
}
|
|
57
|
-
}
|
|
58
|
-
"inputs": []
|
|
71
|
+
}
|
|
59
72
|
}
|
|
60
73
|
```
|
|
61
74
|
|
|
62
|
-
###
|
|
75
|
+
### Windsurf
|
|
63
76
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
|
|
67
|
-
Windows: %APPDATA%\Claude\claude_desktop_config.json
|
|
77
|
+
Add to your Windsurf MCP configuration:
|
|
68
78
|
|
|
69
79
|
```json
|
|
70
80
|
{
|
|
71
81
|
"mcpServers": {
|
|
72
|
-
"zapcode-figma
|
|
82
|
+
"zapcode-figma": {
|
|
73
83
|
"command": "npx",
|
|
74
|
-
"args": ["zapcode-figma-mcp"]
|
|
84
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
75
85
|
}
|
|
76
86
|
}
|
|
77
87
|
}
|
|
78
88
|
```
|
|
79
89
|
|
|
80
|
-
|
|
90
|
+
### Zed Editor
|
|
81
91
|
|
|
82
|
-
|
|
92
|
+
Add to your Zed settings (MCP support currently in preview):
|
|
83
93
|
|
|
84
|
-
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"context_servers": {
|
|
97
|
+
"zapcode-figma": {
|
|
98
|
+
"command": "npx",
|
|
99
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
85
104
|
|
|
86
|
-
|
|
105
|
+
### Continue (VS Code/JetBrains)
|
|
87
106
|
|
|
88
|
-
|
|
107
|
+
Add to Continue's configuration:
|
|
108
|
+
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"mcpServers": {
|
|
112
|
+
"zapcode-figma": {
|
|
113
|
+
"command": "npx",
|
|
114
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
```
|
|
89
119
|
|
|
90
|
-
|
|
91
|
-
- **Input Schema**: {} (No input arguments are required).
|
|
92
|
-
- **Output**: A combination of prompts and Figma context
|
|
120
|
+
### GitHub Copilot
|
|
93
121
|
|
|
94
|
-
|
|
122
|
+
Add to your GitHub Copilot MCP configuration:
|
|
95
123
|
|
|
96
|
-
```
|
|
97
|
-
|
|
124
|
+
```json
|
|
125
|
+
{
|
|
126
|
+
"servers": {
|
|
127
|
+
"zapcode-figma": {
|
|
128
|
+
"type": "stdio",
|
|
129
|
+
"command": "npx",
|
|
130
|
+
"args": ["-y", "zapcode-figma-mcp"]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
98
134
|
```
|
|
99
135
|
|
|
100
|
-
|
|
101
|
-
|
|
136
|
+
## How It Works
|
|
137
|
+
|
|
138
|
+
1. **Install Plugin** - Add Zapcode plugin to Figma Desktop
|
|
139
|
+
2. **Run Plugin** - Launch Zapcode plugin from Figma
|
|
140
|
+
3. **Select Frame** - Choose any frame in your Figma design
|
|
141
|
+
4. **Ask AI** - Ask AI to bring you the figma context
|
|
142
|
+
5. **Get Context** - Receive complete design data and assets
|
|
143
|
+
|
|
102
144
|
|
|
103
|
-
|
|
104
|
-
|
|
145
|
+
## Troubleshooting
|
|
146
|
+
|
|
147
|
+
### "Figma plugin is not connected"
|
|
148
|
+
|
|
149
|
+
**Cause**: MCP server cannot reach the Zapcode Figma plugin.
|
|
150
|
+
|
|
151
|
+
**Solution**:
|
|
152
|
+
1. Open Figma Desktop App
|
|
153
|
+
2. Open your design file
|
|
154
|
+
3. Run Zapcode plugin (Plugins → Zapcode)
|
|
155
|
+
4. Ensure plugin window stays open
|
|
156
|
+
5. Retry connecting using toggle
|
|
157
|
+
5. Try the MCP tool again
|
|
158
|
+
|
|
159
|
+
### Assets Not Saving
|
|
160
|
+
|
|
161
|
+
**Cause**: Permission issues or invalid path.
|
|
162
|
+
|
|
163
|
+
**Solution**:
|
|
164
|
+
1. Ensure the assets path exists or parent directory is writable
|
|
165
|
+
2. Use absolute paths for clarity
|
|
166
|
+
3. Check file permissions on the target directory
|
|
167
|
+
|
|
168
|
+
## Asset Organization
|
|
169
|
+
|
|
170
|
+
Assets are automatically organized by type:
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
assets/
|
|
174
|
+
├── svg/
|
|
175
|
+
│ ├── icon_component.svg
|
|
176
|
+
│ └── logo.svg
|
|
177
|
+
├── png/
|
|
178
|
+
│ ├── screenshot_1.png
|
|
179
|
+
│ └── image_export.png
|
|
180
|
+
└── jpg/
|
|
181
|
+
└── photo.jpg
|
|
105
182
|
```
|
|
106
183
|
|
|
107
|
-
|
|
108
|
-
|
|
184
|
+
## Supported Clients
|
|
185
|
+
|
|
186
|
+
This server works with any MCP-compatible client, including:
|
|
187
|
+
|
|
188
|
+
- [Claude Desktop](https://modelcontextprotocol.io/clients#claude-desktop) - Anthropic's desktop application
|
|
189
|
+
- [Cursor](https://www.cursor.com/) - AI-first code editor
|
|
190
|
+
- [Cline](https://github.com/cline/cline) - Autonomous coding agent for VS Code
|
|
191
|
+
- [Windsurf](https://codeium.com/windsurf) - AI-powered IDE with MCP Plugin Store
|
|
192
|
+
- [Zed](https://zed.dev/) - High-performance code editor (MCP in preview)
|
|
193
|
+
- [Continue](https://continue.dev/) - Open-source IDE extension
|
|
194
|
+
- [GitHub Copilot](https://github.com/features/copilot) - With MCP support in VS Code
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## Links
|
|
198
|
+
|
|
199
|
+
- [NPM Package](https://www.npmjs.com/package/zapcode-figma-mcp)
|
|
200
|
+
- [Zapcode Figma Plugin](https://www.figma.com/community/plugin/1454956820198178710/zapcode)
|
|
201
|
+
- [Model Context Protocol](https://modelcontextprotocol.io/)
|
|
202
|
+
- [MCP Servers Collection](https://github.com/modelcontextprotocol/servers)
|
|
109
203
|
|
|
110
|
-
|
|
204
|
+
---
|
|
111
205
|
|
|
112
|
-
|
|
206
|
+
**Sources:**
|
|
207
|
+
- [Model Context Protocol Official Servers](https://github.com/modelcontextprotocol/servers)
|
|
208
|
+
- [GitHub MCP Server](https://github.com/github/github-mcp-server)
|
|
209
|
+
- [MCP Clients Directory](https://github.com/punkpeye/awesome-mcp-clients)
|
|
210
|
+
- [Official MCP Client Examples](https://modelcontextprotocol.io/clients)
|