figma-mcp-server 2.0.0 → 2.0.1
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 +32 -9
- package/bun.lock +13 -11
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Figma MCP Server
|
|
2
|
-
A
|
|
2
|
+
A comprehensive local MCP server for Figma. Connect Figma with the Gemini CLI, Cursor, and Claude Desktop.
|
|
3
|
+
|
|
4
|
+
### Prerequisites
|
|
5
|
+
|
|
6
|
+
- [Node](https://nodejs.org/) (>= 20)
|
|
7
|
+
- [Bun](https://bun.sh/) (>= 1.1.0)
|
|
3
8
|
|
|
4
9
|
## Install
|
|
5
10
|
Install the server
|
|
@@ -23,22 +28,21 @@ FIGMA_API_KEY=
|
|
|
23
28
|
List descriptions and parameters from all available tools
|
|
24
29
|
|
|
25
30
|
```bash
|
|
26
|
-
bun list-tools
|
|
31
|
+
bun run list-tools
|
|
27
32
|
```
|
|
28
33
|
|
|
29
34
|
## Run the MCP Server
|
|
30
35
|
|
|
31
|
-
### Find
|
|
36
|
+
### Find bun and server path
|
|
32
37
|
|
|
33
38
|
```bash
|
|
34
|
-
# Find
|
|
35
|
-
which
|
|
39
|
+
# Find bun path
|
|
40
|
+
which bun
|
|
36
41
|
|
|
37
42
|
# Get the absolute path of the MCP server
|
|
38
43
|
realpath mcpServer.js
|
|
39
44
|
```
|
|
40
45
|
|
|
41
|
-
|
|
42
46
|
### Run with Claude Desktop
|
|
43
47
|
|
|
44
48
|
1. Open Claude Desktop → **Settings** → **Developers** → **Edit Config** and add your server:
|
|
@@ -47,7 +51,7 @@ realpath mcpServer.js
|
|
|
47
51
|
{
|
|
48
52
|
"mcpServers": {
|
|
49
53
|
"figma-mcp-server": {
|
|
50
|
-
"command": "<
|
|
54
|
+
"command": "<absolute_path_to_bun>",
|
|
51
55
|
"args": ["<absolute_path_to_mcpServer.js>"]
|
|
52
56
|
}
|
|
53
57
|
}
|
|
@@ -73,7 +77,7 @@ mkdir -p ~/.gemini
|
|
|
73
77
|
echo '{
|
|
74
78
|
"mcpServers": {
|
|
75
79
|
"figma-mcp-server": {
|
|
76
|
-
"command": "<
|
|
80
|
+
"command": "<absolute_path_to_bun>",
|
|
77
81
|
"args": ["mcpServer.js"],
|
|
78
82
|
"cwd": "<absolute_path_to_working_directory>",
|
|
79
83
|
"env": {
|
|
@@ -97,7 +101,26 @@ npx https://github.com/google-gemini/gemini-cli
|
|
|
97
101
|
- Use `/mcp schema` to show tool parameter schemas
|
|
98
102
|
- Use `/mcp nodesc` to hide descriptions
|
|
99
103
|
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### Troubleshooting
|
|
107
|
+
|
|
108
|
+
- Missing Figma token
|
|
109
|
+
- Error: missing or invalid `FIGMA_API_KEY`.
|
|
110
|
+
- Ensure `.env` exists next to `mcpServer.js` with `FIGMA_API_KEY=...`.
|
|
111
|
+
- Port already in use (SSE mode)
|
|
112
|
+
- Run SSE on a custom port: `PORT=3005 node mcpServer.js --sse`.
|
|
113
|
+
- Bun not found
|
|
114
|
+
- Ensure `which bun` returns a path.
|
|
115
|
+
- Restart your shell after installing Bun.
|
|
116
|
+
- Using npm instead of Bun
|
|
117
|
+
- Replace `bun i` → `npm i`
|
|
118
|
+
- Replace `bun run list-tools` → `node index.js tools`
|
|
119
|
+
- Manual start not required
|
|
120
|
+
- Only start manually for SSE or local web endpoint: `node mcpServer.js --sse`
|
|
121
|
+
- Default port is `3001`, override with `PORT=<port>`
|
|
122
|
+
|
|
100
123
|
|
|
101
124
|
---
|
|
102
125
|
|
|
103
|
-
⋛⋋( ⊙◊⊙)⋌⋚
|
|
126
|
+
[MIT License](https://raw.githubusercontent.com/planetabhi/figma-mcp-server/refs/heads/main/LICENSE) · By [@planetabhi](https://planetabhi.com/) ⋛⋋( ⊙◊⊙)⋌⋚
|
package/bun.lock
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
"": {
|
|
5
5
|
"name": "figma-mcp-server",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
8
|
-
"commander": "^14.0.
|
|
9
|
-
"dotenv": "^
|
|
7
|
+
"@modelcontextprotocol/sdk": "^1.18.1",
|
|
8
|
+
"commander": "^14.0.1",
|
|
9
|
+
"dotenv": "^17.2.2",
|
|
10
10
|
"express": "^5.1.0",
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
"packages": {
|
|
15
|
-
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.
|
|
15
|
+
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.18.1", "", { "dependencies": { "ajv": "^6.12.6", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-d//GE8/Yh7aC3e7p+kZG8JqqEAwwDUmAfvH1quogtbk+ksS6E0RR6toKKESPYYZVre0meqkJb27zb+dhqE9Sgw=="],
|
|
16
16
|
|
|
17
17
|
"accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
"call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="],
|
|
28
28
|
|
|
29
|
-
"commander": ["commander@14.0.
|
|
29
|
+
"commander": ["commander@14.0.1", "", {}, "sha512-2JkV3gUZUVrbNA+1sjBOYLsMZ5cEEl8GTFP2a4AVz5hvasAMCQ1D2l2le/cX+pV4N6ZU17zjUahLpIXRrnWL8A=="],
|
|
30
30
|
|
|
31
31
|
"content-disposition": ["content-disposition@1.0.0", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg=="],
|
|
32
32
|
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
|
|
41
41
|
"cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
|
|
42
42
|
|
|
43
|
-
"debug": ["debug@4.4.
|
|
43
|
+
"debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
|
|
44
44
|
|
|
45
45
|
"depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="],
|
|
46
46
|
|
|
47
|
-
"dotenv": ["dotenv@
|
|
47
|
+
"dotenv": ["dotenv@17.2.2", "", {}, "sha512-Sf2LSQP+bOlhKWWyhFsn0UsfdK/kCWRv1iuA2gXAwt3dyNabr6QSj00I2V10pidqz69soatm9ZwZvpQMTIOd5Q=="],
|
|
48
48
|
|
|
49
49
|
"dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
|
|
50
50
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
"eventsource": ["eventsource@3.0.7", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="],
|
|
66
66
|
|
|
67
|
-
"eventsource-parser": ["eventsource-parser@3.0.
|
|
67
|
+
"eventsource-parser": ["eventsource-parser@3.0.6", "", {}, "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg=="],
|
|
68
68
|
|
|
69
69
|
"express": ["express@5.1.0", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.0", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA=="],
|
|
70
70
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
"http-errors": ["http-errors@2.0.0", "", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="],
|
|
96
96
|
|
|
97
|
-
"iconv-lite": ["iconv-lite@0.
|
|
97
|
+
"iconv-lite": ["iconv-lite@0.7.0", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ=="],
|
|
98
98
|
|
|
99
99
|
"inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],
|
|
100
100
|
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
|
|
133
133
|
"path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
|
|
134
134
|
|
|
135
|
-
"path-to-regexp": ["path-to-regexp@8.
|
|
135
|
+
"path-to-regexp": ["path-to-regexp@8.3.0", "", {}, "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA=="],
|
|
136
136
|
|
|
137
137
|
"pkce-challenge": ["pkce-challenge@5.0.0", "", {}, "sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ=="],
|
|
138
138
|
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
"range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="],
|
|
146
146
|
|
|
147
|
-
"raw-body": ["raw-body@3.0.
|
|
147
|
+
"raw-body": ["raw-body@3.0.1", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.7.0", "unpipe": "1.0.0" } }, "sha512-9G8cA+tuMS75+6G/TzW8OtLzmBDMo8p1JRxN5AZ+LAp8uxGA8V8GZm4GQ4/N5QNQEnLmg6SS7wyuSmbKepiKqA=="],
|
|
148
148
|
|
|
149
149
|
"router": ["router@2.2.0", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
|
|
150
150
|
|
|
@@ -190,6 +190,8 @@
|
|
|
190
190
|
|
|
191
191
|
"zod-to-json-schema": ["zod-to-json-schema@3.24.6", "", { "peerDependencies": { "zod": "^3.24.1" } }, "sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg=="],
|
|
192
192
|
|
|
193
|
+
"body-parser/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
|
|
194
|
+
|
|
193
195
|
"http-errors/statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="],
|
|
194
196
|
}
|
|
195
197
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "figma-mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "A comprehensive local MCP server for Figma. Connect Figma with the Gemini CLI, Cursor, and Claude Desktop.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"list-tools": "
|
|
9
|
-
"start": "
|
|
8
|
+
"list-tools": "bun index.js tools",
|
|
9
|
+
"start": "bun mcpServer.js --sse"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
13
|
-
"commander": "^14.0.
|
|
14
|
-
"dotenv": "^
|
|
12
|
+
"@modelcontextprotocol/sdk": "^1.18.1",
|
|
13
|
+
"commander": "^14.0.1",
|
|
14
|
+
"dotenv": "^17.2.2",
|
|
15
15
|
"express": "^5.1.0"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
18
|
+
"node": ">=20.0.0",
|
|
19
|
+
"bun": ">=1.1.0"
|
|
19
20
|
},
|
|
20
21
|
"keywords": [
|
|
21
22
|
"figma",
|