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 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 Installation Method
26
+ ### Choose Your Setup
27
27
 
28
- This MCP server offers **three installation methods** with different tradeoffs:
28
+ **First, decide what you want to do:**
29
29
 
30
- | Method | Setup | Auth | Best For |
31
- |--------|-------|------|----------|
32
- | **[Remote SSE](#for-most-users-remote-mode-zero-setup)** | Paste URL (2 min) | OAuth (automatic) | Most users - design system extraction |
33
- | **[NPX](#npx-alternative-package-distribution)** | npm package (10 min) | PAT (manual) | Local execution without source code |
34
- | **[Local Git](#for-plugin-developers-local-mode)** | git clone (15 min) | PAT (manual) | Developers - modify source code |
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
- **Key Insight:** Only Remote SSE offers true zero-setup via OAuth. Both NPX and Local Git require manual `FIGMA_ACCESS_TOKEN` setup.
36
+ ### ⚠️ Important: Capability Differences
37
37
 
38
- Choose the setup that fits your needs:
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
- ### For Most Users: Remote Mode (Zero Setup)
47
+ > **Bottom line:** Remote SSE is **read-only**. If you want AI to actually design in Figma, use NPX Setup.
41
48
 
42
- Perfect for design system extraction and basic debugging. No installation required!
43
-
44
- #### Claude Desktop (Recommended)
45
-
46
- **Latest Method - No Config Files!**
49
+ ---
47
50
 
48
- 1. Open Claude Desktop → **Settings** → **Connectors**
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
- **What you get:**
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
- *Variables API requires Figma Enterprise plan OR use Local Mode + Desktop Bridge plugin
55
+ **What you get:** All 72+ tools including design creation, variable management, and component instantiation.
64
56
 
65
- ---
57
+ #### Prerequisites
66
58
 
67
- #### Claude Code
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
- One-line install:
63
+ #### Step 1: Get Your Figma Token
70
64
 
71
- ```bash
72
- claude mcp add --transport sse figma-console https://figma-console-mcp.southleft.com/sse
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
- Verify: `/mcp` should show "figma-console: connected"
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", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
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
- Restart Cursor after saving.
88
+ #### Step 3: Start Figma with Debug Mode
95
89
 
96
- ---
90
+ **Quit Figma completely**, then restart with debug flag:
97
91
 
98
- <details>
99
- <summary><b>Other MCP Clients (Windsurf, Zed, etc.)</b></summary>
92
+ **macOS:**
93
+ ```bash
94
+ open -a "Figma" --args --remote-debugging-port=9222
95
+ ```
100
96
 
101
- Consult your client's MCP documentation for the config file location, then add:
97
+ **Windows:**
98
+ ```
99
+ cmd /c "%LOCALAPPDATA%\Figma\Figma.exe" --remote-debugging-port=9222
100
+ ```
102
101
 
103
- ```json
104
- {
105
- "mcpServers": {
106
- "figma-console": {
107
- "command": "npx",
108
- "args": ["-y", "mcp-remote", "https://figma-console-mcp.southleft.com/sse"]
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
- </details>
120
+ **📖 [Complete Setup Guide](docs/setup.md)**
115
121
 
116
122
  ---
117
123
 
118
- ### NPX: Alternative Package Distribution
124
+ ### For Contributors: Local Git Mode
119
125
 
120
- **Use NPX if you:**
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
- **Setup time:** 10 minutes
128
+ **What you get:** Same 72+ tools as NPX, plus full source code access.
127
129
 
128
- **Note:** NPX has **identical authentication requirements** to Local Git mode. For true zero-setup, use [Remote Mode](#for-most-users-remote-mode-zero-setup) instead.
130
+ #### Quick Setup
129
131
 
130
- #### Configuration
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
- Add to your MCP config (e.g., `.claude.json` or `claude_desktop_config.json`):
140
+ #### Configure Claude Desktop
133
141
 
134
142
  ```json
135
143
  {
136
144
  "mcpServers": {
137
145
  "figma-console": {
138
- "type": "stdio",
139
- "command": "npx",
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": "your_figma_access_token_here"
149
+ "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
143
150
  }
144
151
  }
145
152
  }
146
153
  }
147
154
  ```
148
155
 
149
- #### Prerequisites
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 NPX Setup Guide](docs/NPX-INSTALLATION.md)**
158
+ **📖 [Complete Setup Guide](docs/setup.md)**
157
159
 
158
160
  ---
159
161
 
160
- ### For Plugin Developers: Local Mode
162
+ ### 📡 Remote SSE (Read-Only Exploration)
161
163
 
162
- **Use Local Mode if you:**
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
- **⚠️ Important:** The **Desktop Bridge plugin ONLY works in Local Mode**. Remote mode cannot access it because the plugin requires direct connection to Figma Desktop via `localhost:9222`.
166
+ **What you get:** 16 read-only tools view data, take screenshots, read logs. **Cannot create or modify designs.**
169
167
 
170
- **Setup time:** 10-15 minutes
168
+ #### Claude Desktop (UI Method)
171
169
 
172
- #### Prerequisites
173
- - Node.js 18+ installed
174
- - Figma Desktop installed
175
- - Git installed
176
- - Terminal/command line access
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
- #### Step 1: Install the MCP Server
177
+ OAuth authentication happens automatically when you first use design system tools.
179
178
 
180
- ```bash
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
- # Install dependencies
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
- # Build for local mode
189
- npm run build:local
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
- #### Step 2: Get Figma Personal Access Token
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
- Add this configuration:
189
+ #### Other Clients (Cursor, Windsurf, etc.)
206
190
 
207
191
  ```json
208
192
  {
209
193
  "mcpServers": {
210
- "figma-console-local": {
211
- "command": "node",
212
- "args": ["/absolute/path/to/figma-console-mcp/dist/local.js"],
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
- **Important:**
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
- 2. **Test in Claude Desktop:**
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
- **📖 For more details:** See [Complete Setup Guide](docs/SETUP.md)
206
+ **📖 [Complete Setup Guide](docs/setup.md)**
257
207
 
258
208
  ---
259
209
 
260
210
  ## 📊 Installation Method Comparison
261
211
 
262
- | Feature | Remote SSE | NPX | Local Git |
263
- |---------|------------|-----|-----------|
264
- | **Setup** | 2 minutes | 10 minutes | 15 minutes |
265
- | **Prerequisites** | None | PAT + Figma restart | PAT + Figma restart + git |
266
- | **Authentication** | OAuth (automatic) | PAT (manual) | PAT (manual) |
267
- | **Console logs** | ✅ | ✅ (zero latency) | (zero latency) |
268
- | **API access** | ✅ | ✅ | |
269
- | **Desktop Bridge plugin** | | ✅ | |
270
- | **AI-Assisted Design Creation** | | ✅ (via plugin) | (via plugin) |
271
- | **Variables (no Enterprise)** | ❌ | ✅ (via plugin) | ✅ (via plugin) |
272
- | **Reliable descriptions** | ⚠️ (API bugs) | ✅ (via plugin) | ✅ (via plugin) |
273
- | **Source code access** | | | |
274
- | **Distribution** | URL | npm package | git clone |
275
-
276
- **📖 [Complete Feature Comparison](docs/MODE_COMPARISON.md)**
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