figma-console-mcp 1.6.0 → 1.6.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 +121 -168
- package/dist/apps/design-system-dashboard/mcp-app.html +12 -12
- package/dist/apps/design-system-dashboard/server.d.ts +2 -1
- package/dist/apps/design-system-dashboard/server.d.ts.map +1 -1
- package/dist/apps/design-system-dashboard/server.js +5 -2
- package/dist/apps/design-system-dashboard/server.js.map +1 -1
- package/dist/apps/token-browser/mcp-app.html +31 -22
- package/dist/browser/local.d.ts.map +1 -1
- package/dist/browser/local.js +7 -4
- package/dist/browser/local.js.map +1 -1
- package/dist/cloudflare/apps/design-system-dashboard/server.js +5 -2
- package/dist/cloudflare/core/figma-tools.js +6 -2
- package/dist/cloudflare/index.js +396 -33
- package/dist/core/figma-tools.d.ts +9 -1
- package/dist/core/figma-tools.d.ts.map +1 -1
- package/dist/core/figma-tools.js +6 -2
- package/dist/core/figma-tools.js.map +1 -1
- package/dist/local.d.ts.map +1 -1
- package/dist/local.js +53 -6
- package/dist/local.js.map +1 -1
- package/figma-desktop-bridge/code.js +8 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,257 +23,210 @@ Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
|
|
|
23
23
|
|
|
24
24
|
## ⚡ Quick Start
|
|
25
25
|
|
|
26
|
-
### Choose Your
|
|
26
|
+
### Choose Your Setup
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
**First, decide what you want to do:**
|
|
29
29
|
|
|
30
|
-
|
|
|
31
|
-
|
|
32
|
-
| **
|
|
33
|
-
| **[
|
|
34
|
-
| **
|
|
30
|
+
| I want to... | Setup Method | Time |
|
|
31
|
+
|--------------|--------------|------|
|
|
32
|
+
| **Create and modify designs with AI** | [NPX Setup](#-npx-setup-recommended) (Recommended) | ~10 min |
|
|
33
|
+
| **Contribute to the project** | [Local Git Setup](#for-contributors-local-git-mode) | ~15 min |
|
|
34
|
+
| **Just explore my design data** (read-only) | [Remote SSE](#-remote-sse-read-only-exploration) | ~2 min |
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
### ⚠️ Important: Capability Differences
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
| Capability | NPX / Local Git | Remote SSE |
|
|
39
|
+
|------------|-----------------|------------|
|
|
40
|
+
| Read design data | ✅ | ✅ |
|
|
41
|
+
| **Create components & frames** | ✅ | ❌ |
|
|
42
|
+
| **Edit existing designs** | ✅ | ❌ |
|
|
43
|
+
| **Manage design tokens/variables** | ✅ | ❌ |
|
|
44
|
+
| Desktop Bridge plugin | ✅ | ❌ |
|
|
45
|
+
| **Total tools available** | **72+** | **16** |
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
> **Bottom line:** Remote SSE is **read-only**. If you want AI to actually design in Figma, use NPX Setup.
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
#### Claude Desktop (Recommended)
|
|
45
|
-
|
|
46
|
-
**Latest Method - No Config Files!**
|
|
49
|
+
---
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
2. Click **"Add Custom Connector"**
|
|
50
|
-
3. Enter:
|
|
51
|
-
- **Name:** `Figma Console`
|
|
52
|
-
- **URL:** `https://figma-console-mcp.southleft.com/sse`
|
|
53
|
-
4. Click **"Add"**
|
|
54
|
-
5. Done! ✅
|
|
51
|
+
### 🚀 NPX Setup (Recommended)
|
|
55
52
|
|
|
56
|
-
**
|
|
57
|
-
- ✅ Figma tools available immediately
|
|
58
|
-
- ✅ OAuth authentication (automatic when you first use API tools)
|
|
59
|
-
- ✅ Design system extraction (variables*, components, styles)
|
|
60
|
-
- ✅ Console debugging and screenshots
|
|
61
|
-
- ❌ Desktop Bridge plugin NOT available (use Local Mode for that)
|
|
53
|
+
**Best for:** Designers who want full AI-assisted design capabilities.
|
|
62
54
|
|
|
63
|
-
|
|
55
|
+
**What you get:** All 72+ tools including design creation, variable management, and component instantiation.
|
|
64
56
|
|
|
65
|
-
|
|
57
|
+
#### Prerequisites
|
|
66
58
|
|
|
67
|
-
|
|
59
|
+
- [ ] **Node.js 18+** — Check with `node --version` ([Download](https://nodejs.org))
|
|
60
|
+
- [ ] **Figma Desktop** installed (not just the web app)
|
|
61
|
+
- [ ] **Claude Desktop** or another MCP client
|
|
68
62
|
|
|
69
|
-
|
|
63
|
+
#### Step 1: Get Your Figma Token
|
|
70
64
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
1. Go to [figma.com/developers/api#access-tokens](https://www.figma.com/developers/api#access-tokens)
|
|
66
|
+
2. Click **"Get personal access token"**
|
|
67
|
+
3. Enter description: `Figma Console MCP`
|
|
68
|
+
4. **Copy the token** — you won't see it again! (starts with `figd_`)
|
|
74
69
|
|
|
75
|
-
|
|
70
|
+
#### Step 2: Configure Claude Desktop
|
|
76
71
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
#### Cursor
|
|
80
|
-
|
|
81
|
-
Add to `.cursor/mcp.json`:
|
|
72
|
+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
82
73
|
|
|
83
74
|
```json
|
|
84
75
|
{
|
|
85
76
|
"mcpServers": {
|
|
86
77
|
"figma-console": {
|
|
87
78
|
"command": "npx",
|
|
88
|
-
"args": ["-y", "
|
|
79
|
+
"args": ["-y", "figma-console-mcp@latest"],
|
|
80
|
+
"env": {
|
|
81
|
+
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
|
|
82
|
+
}
|
|
89
83
|
}
|
|
90
84
|
}
|
|
91
85
|
}
|
|
92
86
|
```
|
|
93
87
|
|
|
94
|
-
|
|
88
|
+
#### Step 3: Start Figma with Debug Mode
|
|
95
89
|
|
|
96
|
-
|
|
90
|
+
**Quit Figma completely**, then restart with debug flag:
|
|
97
91
|
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
**macOS:**
|
|
93
|
+
```bash
|
|
94
|
+
open -a "Figma" --args --remote-debugging-port=9222
|
|
95
|
+
```
|
|
100
96
|
|
|
101
|
-
|
|
97
|
+
**Windows:**
|
|
98
|
+
```
|
|
99
|
+
cmd /c "%LOCALAPPDATA%\Figma\Figma.exe" --remote-debugging-port=9222
|
|
100
|
+
```
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
Verify at [http://localhost:9222](http://localhost:9222) — you should see inspectable Figma pages.
|
|
103
|
+
|
|
104
|
+
#### Step 4: Restart Claude Desktop
|
|
105
|
+
|
|
106
|
+
Quit and reopen Claude Desktop. Look for 🔌 icon showing "figma-console: connected".
|
|
107
|
+
|
|
108
|
+
#### Step 5: Test It!
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Check Figma status
|
|
112
|
+
```
|
|
113
|
+
→ Should show "✅ Figma Desktop connected"
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
Create a simple frame with a blue background
|
|
112
117
|
```
|
|
118
|
+
→ Should create a frame in Figma (confirms write access!)
|
|
113
119
|
|
|
114
|
-
|
|
120
|
+
**📖 [Complete Setup Guide](docs/setup.md)**
|
|
115
121
|
|
|
116
122
|
---
|
|
117
123
|
|
|
118
|
-
###
|
|
124
|
+
### For Contributors: Local Git Mode
|
|
119
125
|
|
|
120
|
-
**
|
|
121
|
-
- ✅ Want local execution without cloning source code
|
|
122
|
-
- ✅ Need Desktop Bridge plugin features
|
|
123
|
-
- ✅ Prefer npm package distribution over git
|
|
124
|
-
- ⚠️ Are comfortable with manual `FIGMA_ACCESS_TOKEN` setup
|
|
126
|
+
**Best for:** Developers who want to modify source code or contribute to the project.
|
|
125
127
|
|
|
126
|
-
**
|
|
128
|
+
**What you get:** Same 72+ tools as NPX, plus full source code access.
|
|
127
129
|
|
|
128
|
-
|
|
130
|
+
#### Quick Setup
|
|
129
131
|
|
|
130
|
-
|
|
132
|
+
```bash
|
|
133
|
+
# Clone and build
|
|
134
|
+
git clone https://github.com/southleft/figma-console-mcp.git
|
|
135
|
+
cd figma-console-mcp
|
|
136
|
+
npm install
|
|
137
|
+
npm run build:local
|
|
138
|
+
```
|
|
131
139
|
|
|
132
|
-
|
|
140
|
+
#### Configure Claude Desktop
|
|
133
141
|
|
|
134
142
|
```json
|
|
135
143
|
{
|
|
136
144
|
"mcpServers": {
|
|
137
145
|
"figma-console": {
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"args": ["-y", "figma-console-mcp@latest"],
|
|
146
|
+
"command": "node",
|
|
147
|
+
"args": ["/absolute/path/to/figma-console-mcp/dist/local.js"],
|
|
141
148
|
"env": {
|
|
142
|
-
"FIGMA_ACCESS_TOKEN": "
|
|
149
|
+
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
|
|
143
150
|
}
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
153
|
}
|
|
147
154
|
```
|
|
148
155
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
- Get **Figma Personal Access Token**: https://www.figma.com/developers/api#access-tokens
|
|
152
|
-
- Restart Figma Desktop with `--remote-debugging-port=9222`
|
|
153
|
-
- **macOS:** `open -a "Figma" --args --remote-debugging-port=9222`
|
|
154
|
-
- **Windows:** `cmd /c "%LOCALAPPDATA%\Figma\Figma.exe" --remote-debugging-port=9222`
|
|
156
|
+
Then follow [NPX Steps 3-5](#step-3-start-figma-with-debug-mode) above.
|
|
155
157
|
|
|
156
|
-
**📖 [Complete
|
|
158
|
+
**📖 [Complete Setup Guide](docs/setup.md)**
|
|
157
159
|
|
|
158
160
|
---
|
|
159
161
|
|
|
160
|
-
###
|
|
162
|
+
### 📡 Remote SSE (Read-Only Exploration)
|
|
161
163
|
|
|
162
|
-
**
|
|
163
|
-
- ✅ Are developing Figma plugins (need zero-latency console debugging)
|
|
164
|
-
- ✅ Need variables WITHOUT Enterprise plan (via Desktop Bridge plugin)
|
|
165
|
-
- ✅ Need reliable component descriptions (Figma API has bugs, plugin bypasses them)
|
|
166
|
-
- ✅ Want direct access to Figma Desktop state
|
|
164
|
+
**Best for:** Quickly evaluating the tool or read-only design data extraction.
|
|
167
165
|
|
|
168
|
-
|
|
166
|
+
**What you get:** 16 read-only tools — view data, take screenshots, read logs. **Cannot create or modify designs.**
|
|
169
167
|
|
|
170
|
-
|
|
168
|
+
#### Claude Desktop (UI Method)
|
|
171
169
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
170
|
+
1. Open Claude Desktop → **Settings** → **Connectors**
|
|
171
|
+
2. Click **"Add Custom Connector"**
|
|
172
|
+
3. Enter:
|
|
173
|
+
- **Name:** `Figma Console (Read-Only)`
|
|
174
|
+
- **URL:** `https://figma-console-mcp.southleft.com/sse`
|
|
175
|
+
4. Click **"Add"** — Done! ✅
|
|
177
176
|
|
|
178
|
-
|
|
177
|
+
OAuth authentication happens automatically when you first use design system tools.
|
|
179
178
|
|
|
180
|
-
|
|
181
|
-
# Clone the repository
|
|
182
|
-
git clone https://github.com/southleft/figma-console-mcp.git
|
|
183
|
-
cd figma-console-mcp
|
|
179
|
+
#### Claude Code
|
|
184
180
|
|
|
185
|
-
|
|
186
|
-
npm install
|
|
181
|
+
> **⚠️ Known Issue:** Claude Code's native `--transport sse` has a [bug](https://github.com/anthropics/claude-code/issues/2466). Use `mcp-remote` instead:
|
|
187
182
|
|
|
188
|
-
|
|
189
|
-
|
|
183
|
+
```bash
|
|
184
|
+
claude mcp add figma-console -s user -- npx -y mcp-remote@latest https://figma-console-mcp.southleft.com/sse
|
|
190
185
|
```
|
|
191
186
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
1. Visit https://www.figma.com/developers/api#access-tokens
|
|
195
|
-
2. Click "Get personal access token"
|
|
196
|
-
3. Enter description: "Figma Console MCP Local"
|
|
197
|
-
4. Click "Generate token"
|
|
198
|
-
5. **Copy the token** (you won't see it again!)
|
|
199
|
-
|
|
200
|
-
#### Step 3: Configure Claude Desktop
|
|
201
|
-
|
|
202
|
-
**macOS:** Edit `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
203
|
-
**Windows:** Edit `%APPDATA%\Claude\claude_desktop_config.json`
|
|
187
|
+
**💡 Tip:** For full capabilities, use [NPX Setup](#-npx-setup-recommended) instead of Remote SSE.
|
|
204
188
|
|
|
205
|
-
|
|
189
|
+
#### Other Clients (Cursor, Windsurf, etc.)
|
|
206
190
|
|
|
207
191
|
```json
|
|
208
192
|
{
|
|
209
193
|
"mcpServers": {
|
|
210
|
-
"figma-console
|
|
211
|
-
"command": "
|
|
212
|
-
"args": ["
|
|
213
|
-
"env": {
|
|
214
|
-
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
|
|
215
|
-
}
|
|
194
|
+
"figma-console": {
|
|
195
|
+
"command": "npx",
|
|
196
|
+
"args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
|
|
216
197
|
}
|
|
217
198
|
}
|
|
218
199
|
}
|
|
219
200
|
```
|
|
220
201
|
|
|
221
|
-
|
|
222
|
-
- Replace `/absolute/path/to/figma-console-mcp` with the actual absolute path where you cloned the repo
|
|
223
|
-
- Replace `figd_YOUR_TOKEN_HERE` with your actual Figma token from Step 2
|
|
224
|
-
- Use forward slashes `/` even on Windows
|
|
225
|
-
|
|
226
|
-
#### Step 4: Launch Figma Desktop with Remote Debugging
|
|
227
|
-
|
|
228
|
-
**⚠️ CRITICAL:** Quit Figma completely first, then restart it with the debug flag:
|
|
229
|
-
|
|
230
|
-
**macOS:**
|
|
231
|
-
```bash
|
|
232
|
-
open -a "Figma" --args --remote-debugging-port=9222
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
**Windows (CMD or PowerShell):**
|
|
236
|
-
```
|
|
237
|
-
cmd /c "%LOCALAPPDATA%\Figma\Figma.exe" --remote-debugging-port=9222
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
#### Step 5: Restart Claude Desktop
|
|
241
|
-
|
|
242
|
-
Quit Claude Desktop completely and relaunch it. The MCP server will connect automatically.
|
|
243
|
-
|
|
244
|
-
#### Step 6: Verify Setup
|
|
245
|
-
|
|
246
|
-
1. **Check debug port is working:**
|
|
247
|
-
- Open Chrome browser
|
|
248
|
-
- Visit: http://localhost:9222
|
|
249
|
-
- You should see inspectable Figma pages
|
|
202
|
+
#### Upgrading to Full Capabilities
|
|
250
203
|
|
|
251
|
-
|
|
252
|
-
- Look for 🔌 icon showing "figma-console-local: connected"
|
|
253
|
-
- Ask Claude: "Check Figma status"
|
|
254
|
-
- Should show: "✅ Figma Desktop connected"
|
|
204
|
+
Ready for design creation? Follow the [NPX Setup](#-npx-setup-recommended) guide above.
|
|
255
205
|
|
|
256
|
-
**📖
|
|
206
|
+
**📖 [Complete Setup Guide](docs/setup.md)**
|
|
257
207
|
|
|
258
208
|
---
|
|
259
209
|
|
|
260
210
|
## 📊 Installation Method Comparison
|
|
261
211
|
|
|
262
|
-
| Feature |
|
|
263
|
-
|
|
264
|
-
| **Setup** |
|
|
265
|
-
| **
|
|
266
|
-
| **
|
|
267
|
-
| **
|
|
268
|
-
| **
|
|
269
|
-
| **Desktop Bridge plugin** |
|
|
270
|
-
| **
|
|
271
|
-
| **
|
|
272
|
-
| **
|
|
273
|
-
| **
|
|
274
|
-
| **
|
|
275
|
-
|
|
276
|
-
|
|
212
|
+
| Feature | NPX (Recommended) | Local Git | Remote SSE |
|
|
213
|
+
|---------|-------------------|-----------|------------|
|
|
214
|
+
| **Setup time** | ~10 minutes | ~15 minutes | ~2 minutes |
|
|
215
|
+
| **Total tools** | **72+** | **72+** | **16** (read-only) |
|
|
216
|
+
| **Design creation** | ✅ | ✅ | ❌ |
|
|
217
|
+
| **Variable management** | ✅ | ✅ | ❌ |
|
|
218
|
+
| **Component instantiation** | ✅ | ✅ | ❌ |
|
|
219
|
+
| **Desktop Bridge plugin** | ✅ | ✅ | ❌ |
|
|
220
|
+
| **Variables (no Enterprise)** | ✅ | ✅ | ❌ |
|
|
221
|
+
| **Console logs** | ✅ (zero latency) | ✅ (zero latency) | ✅ |
|
|
222
|
+
| **Read design data** | ✅ | ✅ | ✅ |
|
|
223
|
+
| **Authentication** | PAT (manual) | PAT (manual) | OAuth (automatic) |
|
|
224
|
+
| **Automatic updates** | ✅ (`@latest`) | Manual (`git pull`) | ✅ |
|
|
225
|
+
| **Source code access** | ❌ | ✅ | ❌ |
|
|
226
|
+
|
|
227
|
+
> **Key insight:** Remote SSE is read-only with ~22% of the tools. Use NPX for full capabilities.
|
|
228
|
+
|
|
229
|
+
**📖 [Complete Feature Comparison](docs/mode-comparison.md)**
|
|
277
230
|
|
|
278
231
|
---
|
|
279
232
|
|