kit
Use kit as a token-lean Figma MCP server to inspect, search, render, edit, comment on, and delete design content.
Read file outlines: pages, sections, and screens with IDs, names, and sizes (
read_outline).Extract visible screen or node text in reading order, optimized for low token use (
read_frame_text).Search screens by text or layer name (
read_search).Read comment threads and filter them by node (
read_comments).Inspect layer trees with sizes, auto layout, fills, strokes, text styles, and components (
read_structure).List design tokens, styles, variables, components, and component sets (
read_styles).Render an image of a selected node with token-cost awareness (
read_render).Check the kit bridge plugin status, open files, current page, selected nodes, and round-trip time (
read_bridge).Edit existing node properties such as text, fills, images, effects, layout, styles, and component properties (
write_props).Create frames, sections, shapes, text, components, variant sets, instances, and nested trees (
write_create).Post comments or replies without the plugin (
write_comment).Delete nodes in one undo step (
delete_nodes).Run arbitrary JavaScript with the full Figma Plugin API for advanced plugin-based operations (
exec_run).
Enables AI assistants to read Figma files as token-efficient text and edit them through the kit bridge plugin, covering outlines, text, comments, layers, styles, on-demand renders, and writes to text, styles, images, layout, frames, components, variants, and node deletion.
kit π¦
A token-lean MCP server for Figma. Your AI assistant reads designs as compact text instead of screenshots and raw JSON, and edits them through a small Figma plugin. Pictures are available, but only on demand and size-capped.
Releases are listed in CHANGELOG.md.
β¨ Why kit
π€ Small in the context. On a real 33-screen file, the outline, the text of every screen, all comments, one layer tree, the styles and one small render come to about 40K characters (~12K tokens) in total. The tool list adds about 11.5K characters (~2,900 tokens) to every request.
π Text first. Screens as their text in reading order, layers as one line each, long answers paged instead of cut.
read_renderis the only tool that returns a picture, and it says what it costs.βοΈ Edits too. Change texts, styles, images and layout, create frames, components and variant sets, delete nodes: each call is one undo step in Figma.
πͺΆ One small program. No Node.js or other runtime; about 5 MB of memory when idle. Files are downloaded once per version and kept on disk.
π Simple permissions. Every tool name starts with its tier (
read_,write_,delete_,exec_,auth_), so one rule per tier covers them all.
Related MCP server: Figma MCP
π Quick start
π Get access to Figma: create a personal access token (Figma β Settings β Security β Personal access tokens, scopes
file_content:read,file_metadata:read,file_comments:read) and export it in your shell profile:export FIGMA_TOKEN=.... For a team, a browser sign-in is nicer.π¦ Install kit: Linux and macOS
curl -fsSL https://raw.githubusercontent.com/RedFoxxo/kit/main/install.sh | sh, Windows (PowerShell)irm https://raw.githubusercontent.com/RedFoxxo/kit/main/install.ps1 | iex.π Connect your client: for Claude Code, run the command under Claude Code. Other clients are listed under Connect your client.
Then ask your assistant "what screens are in this Figma file?" with a file link. To let it edit, set up the kit bridge plugin.
π¦ Install
Way | For |
Linux, macOS, Windows: the usual way | |
Claude Desktop, nothing else to install | |
Downloading the file yourself | |
Rust users, or a Docker image |
Install script
# Linux and macOS
curl -fsSL https://raw.githubusercontent.com/RedFoxxo/kit/main/install.sh | sh# Windows, in PowerShell
irm https://raw.githubusercontent.com/RedFoxxo/kit/main/install.ps1 | iexThe script downloads the file for your system from the
latest release, checks it
against the release's SHA256SUMS, and installs kit in ~/.local/bin
(Windows: %LOCALAPPDATA%\Programs\kit). If that folder isn't on your PATH,
it adds it: log out and back in (Windows: open a new terminal), then check
with kit --version.
π Update: run the same line again, then kit plugin if you edit with
the plugin.
βοΈ Options, set for the script:
Variable | Effect |
| Install a given release, e.g. |
| Install into another folder |
| Leave your |
For example curl -fsSL β¦/install.sh | KIT_VERSION=2.0.0 sh, or in
PowerShell $env:KIT_VERSION = '2.0.0' before irm β¦ | iex.
Claude Desktop
Download kit.mcpb from the
latest release and open it,
or drag it into Settings β Extensions. Claude Desktop asks for your token
or OAuth app (kept in the system's secure storage) and runs kit from the
bundle.
By hand
Download the file for your system from the
latest release into a folder
on your PATH and rename it to kit (kit.exe on Windows):
System | File |
π§ Linux x64 |
|
π§ Linux arm64 |
|
π macOS, Apple silicon |
|
π macOS, Intel |
|
πͺ Windows x64, also Windows on ARM |
|
On Linux and macOS, make it executable: chmod +x kit. On macOS, a file
downloaded with a browser also needs xattr -d com.apple.quarantine kit once.
From source or Docker
π¦ With Rust:
cargo install kit-mcp --locked(the crate iskit-mcp; the program iskit), orcargo install --git https://github.com/RedFoxxo/kit --tag v2.0.0 --locked.π³ Docker:
docker build -t kit .in a clone, thendocker run -i --rm -e FIGMA_TOKEN kit. Reading works; the bridge for edits needs kit on the machine running Figma.
βοΈ Settings
kit reads its settings from environment variables, which your MCP client passes to it:
Variable | Required | Purpose |
| one of the two ways | Your Figma OAuth app: browser sign-in with |
| one of the two ways | Personal access token. Never logged or returned |
| Cache folder, default |
π Keep secrets out of config files: export them in your shell profile and let the client pass them through, as the examples below do.
Personal access token
Create a Figma personal access token (Figma β Settings β Security β Personal access tokens) with the scopes
file_content:read,file_metadata:read,file_comments:readand, forwrite_comment,file_comments:write.Store it as
FIGMA_TOKENin your environment, never in a config file. Figma tokens expire; create a new one when kit reports a403on every file.
Browser sign-in (OAuth app)
Users sign in once per machine in the browser; kit renews the sign-in by itself, so nobody copies tokens or replaces expired ones.
At figma.com/developers/apps, create an app owned by your team or organization. A private app needs no review by Figma, and only members of that team or organization can sign in.
Add the redirect URL
http://127.0.0.1:7390/callbackand the scopescurrent_user:read,file_content:read,file_metadata:read,file_comments:readandfile_comments:write, then publish it. Figma stops on its own page, without returning to kit, when these don't match:Invalid scopes for appmeans a scope is missing,Invalid redirect urithat the redirect URL differs (it must match exactly, including127.0.0.1, the port and/callback). Fix the app and publish again.Give kit the app's client ID and secret as
FIGMA_CLIENT_IDandFIGMA_CLIENT_SECRET. Figma asks for the secret on every token exchange and refresh and has no secret-less mode for desktop apps, so it has to be on the user's machine: share it only with the people the app is for. Someone else holding it can start sign-ins in your app's name, but Figma sends the user back only to the redirect URL above, on the user's own machine, and kit protects that step with PKCE and a randomstate.The first time, ask the assistant to sign in to Figma.
auth_loginopens Figma's sign-in page and answers once the user is back, or after 30 seconds with the link to open by hand (the sign-in keeps waiting for 10 minutes); any tool answers "Not signed in" until then.
The sign-in is kept in ~/.kit/auth.json, readable by you only, and shared by
every kit session. kit refreshes the access token a day before it expires
(Figma's last 90 days), or halfway through the life of a shorter one. When
Figma no longer accepts it (you revoked the app, for example), tools say so
and ask for auth_login again.
π€ Switch account: ask for
auth_loginwithforce.πͺ Sign out: delete
~/.kit/auth.json, then restart your AI tool (a running kit keeps the token it already loaded). To also cut kit's access on Figma's side, remove the app from the connected apps in your Figma account settings.π₯οΈ No browser on the machine (SSH, containers): Figma sends the browser back to
127.0.0.1:7390on the machine running kit, so the browser must run there too. After 30 secondsauth_loginanswers with the link; open it in a browser on that machine, or useFIGMA_TOKENinstead.β³
Port 7390 is busy: another kit session is already waiting for a sign-in. Finish that one, or wait up to 10 minutes for it to expire.
π Connect your client
Claude Code
Register kit once for all your projects. ${FIGMA_TOKEN} is read from your
environment when the server starts, so the token isn't stored in the config
(for the browser sign-in, put FIGMA_CLIENT_ID and FIGMA_CLIENT_SECRET in
env instead):
claude mcp add-json kit --scope user '{
"type": "stdio",
"command": "kit",
"env": { "FIGMA_TOKEN": "${FIGMA_TOKEN}" }
}'Then add the permission rules to ~/.claude/settings.json:
{
"permissions": {
"allow": ["mcp__kit__read_*", "mcp__kit__auth_*"],
"ask": ["mcp__kit__write_*", "mcp__kit__delete_*"],
"deny": ["mcp__kit__exec_*"]
}
}Claude Code names MCP tools mcp__<server>__<tool>, so the server name must be
kit for these rules to match. Move exec_ to ask if you want the
assistant to run plugin code at all. Check the connection with
claude mcp get kit, or /mcp inside a session.
opencode
Add the server and the permission rules to opencode.json (global:
~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"kit": {
"type": "local",
"command": ["kit"],
"environment": { "FIGMA_TOKEN": "{env:FIGMA_TOKEN}" }
}
}
},
"permissions": [
{ "action": "kit_read_*", "resource": "*", "effect": "allow" },
{ "action": "kit_auth_*", "resource": "*", "effect": "allow" },
{ "action": "kit_write_*", "resource": "*", "effect": "ask" },
{ "action": "kit_delete_*", "resource": "*", "effect": "ask" },
{ "action": "kit_exec_*", "resource": "*", "effect": "deny" }
]
}opencode names MCP tools <server>_<tool>, so the server name must be kit
for these rules to match (read_outline becomes kit_read_outline). Restart
opencode after changing the file; opencode mcp list shows whether it
connected.
Other MCP clients
Any client that starts local (stdio) servers works. Most accept an
mcpServers block like this one (Cursor, ...):
{
"mcpServers": {
"kit": {
"command": "kit",
"env": { "FIGMA_TOKEN": "${FIGMA_TOKEN}" }
}
}
}Whether ${FIGMA_TOKEN} is read from your environment depends on the client;
where it is not, the token ends up in that file, so keep the file private.
π¨ Editing: the kit bridge plugin
Figma's REST API cannot change designs, so edits go through a plugin running
in Figma desktop (the browser version cannot run development plugins). It
talks to kit over a WebSocket on localhost (ports 7380β7389) and connects to
every kit session running on the machine.
Run
kit plugin. It writes the plugin to~/.kit/pluginwith the bridge key in it, and prints the manifest path.In Figma desktop: Plugins β Development β Import plugin from manifestβ¦, and pick that path. Once per machine.
Open the file to edit and run Plugins β Development β kit bridge. Keep its window open while the assistant works.
read_bridge shows what is connected. Edits go only to the plugin running in
the file named in the call; kit never guesses between open files.
The plugin proves itself with a key from ~/.kit/bridge.key (readable by you
only) that kit plugin writes into its copy, and kit refuses connections
without it, from websites, and for other host names. After updating kit, run
kit plugin again, then close and relaunch the plugin in Figma; read_bridge
also says so when it refused a connection or the plugin is outdated.
π©Ί Checking the setup
kit doctor checks what editing needs and says how to fix each problem;
kit fix <id> repairs one of them.
Problem | Meaning | Fix |
| The plugin files are missing from |
|
| The plugin files lack kit's key, so kit refuses them |
|
| No browser sign-in yet (not checked when only | Ask the assistant to sign you in to Figma |
| figma-linux is installed, and its plugin list lacks the kit bridge or holds an older bridge | Quit Figma, then |
kit fix figma-linux registers the plugin in figma-linux's settings.json
(~/.config/figma-linux and ~/.config/figma-linux-next), so there is nothing
to import by hand. It refuses while Figma runs, changes only the plugin list,
and first copies each file to ~/.kit/backups/<time>/figma/.
kit doctor exits with 1 when it found a problem. kit doctor --json prints
the problems as one JSON object for other programs, and exits with 0:
{ "problems": [
{ "id": "bridge-key",
"problem": "the kit bridge plugin files lack kit's key, so kit refuses them",
"optional": false, "pending": false,
"fix": { "run": ["kit", "fix", "bridge-key"], "say": "rewrites the files with the key; then close and relaunch kit bridge in Figma (Plugins β Development β kit bridge) so it loads the new files" } },
{ "id": "sign-in", "problem": "not signed in to Figma yet",
"optional": false, "pending": false,
"fix": { "manual": "ask the AI \"Sign me in to Figma\" once" } }
] }π§° Tools
π Permission tiers
Tool names start with their tier, so client approval rules can allow reads,
ask before changes and block exec_run:
Tier | What it does | Suggested rule |
| Reads only | allow |
| kit's own sign-in; changes no design | allow |
| Changes the file | ask |
| Deletes nodes | ask |
| Runs any code the assistant writes in the plugin, with full access to the open file | deny, or ask |
π Tool list
Your client sends every listed tool to the model with each request:
Setup | Tools | Cost per request |
| 13 | about 2,800 tokens |
OAuth app | 14 (with | about 2,900 tokens |
Tool | What it does |
| Pages, sections and screens with ids and sizes. Start here |
| Visible text of screens in reading order; header/footer text shared by 3+ screens printed once |
| Screens containing a text or layer name (case and accent insensitive) |
| Comment threads with the screen each is pinned to, filterable by node |
| One line per layer: size, auto layout, fills, strokes, radius, text style, component |
| Variables per collection and mode (plugin), styles with values, components and component sets with keys |
| A picture of one node, longest side 1024px by default, with its token cost; live from Figma when the plugin runs in the file |
| Files open in Figma with the plugin running, and the nodes selected in each |
Tool | What it does |
| Change texts (mixed styles too), paints, images, effects, layout and component properties; turn a node into a component (plugin) |
| Create frames, sections, shapes, texts, components, variant sets and instances, nested trees in one call (plugin) |
| Post a comment or a reply (REST, no plugin needed) |
Tool | What it does |
| Delete nodes (plugin) |
Tool | What it does |
| Run JavaScript with the full Figma Plugin API (plugin) |
Tool | What it does |
| Sign in to Figma in the browser; |
π Rules kit follows
π Answers are paged, not cut. Read answers are plain text under ~20K characters; longer ones end with
[more: β¦; call again with offset=N].β©οΈ One call, one undo step. Edits answer with the changed nodes only.
π― Only the named file. Edits go only to the plugin running in that file; an outdated plugin is refused with instructions to update it.
πΌοΈ kit reads images for the plugin, which has no file or network access: PNG, JPEG or GIF, up to 20 MB, from a file path or an http(s) URL.
β Unknown argument names are refused instead of ignored.
π Files kit keeps
Path | What |
| The browser sign-in (OAuth tokens), readable by you only |
| The key the kit bridge plugin sends, readable by you only |
| The plugin copy Figma imports |
| File snapshots and renders per file version ( |
β οΈ Limitations
Editing needs Figma desktop with the kit bridge plugin running in the file; reading and comments work without it.
Figma's API shows plugin edits a few seconds late; reads made in that window say so.
Variables are read through the plugin: Figma's REST variables API needs an Enterprise plan.
Figma rate-limits file downloads. kit asks for the file's version (a cheap call, at most once a minute per file) and downloads the file only when it changed; snapshots and renders are kept on disk per version, so a new session reuses them.
Plugin code runs on Figma's main thread: a call that creates hundreds of nodes can freeze the file for a minute. kit stops waiting after 120 seconds, but the work may still finish.
β¬οΈ Upgrading from 1.x
kit 1.x ran through npx from the npm package @redfoxxo/kit, which gets no
new versions.
Install kit as above.
In your client's config, change
"command": "npx", "args": ["-y", "@redfoxxo/kit@1"]to"command": "kit"(opencode:"command": ["kit"]).Tool names, settings, permission rules, the plugin and the files in
~/.kitstay the same: no need to sign in again or reimport the plugin. One behaviour change: unknown argument names are refused instead of ignored.
π οΈ Development
Building from source, running the tests and releasing are described in DEVELOPMENT.md.
π License
Available Tools
13 toolsdelete_nodesADestructive
Delete nodes (one undo step in Figma). Needs the kit bridge plugin running in that file (read_bridge).
Inputs: ids (required), file (required).
exec_runADestructive
Run JavaScript in the plugin with the full Figma Plugin API (figma), for what the other tools cannot do. The body of an async function: return a small JSON-serializable value, not nodes. Keep each call small (a few hundred nodes); build big designs in several calls. Needs the kit bridge plugin running in that file (read_bridge).
Inputs: code (required), file (required).
read_bridgeARead-only
Status of the kit bridge plugin, which editing needs: the files open in Figma with the plugin running, their current page, the selected nodes (ids to read or edit "what I selected"), and the round trip time.
Inputs: no named parameters.
read_commentsARead-only
Comment threads of a file, newest first, each with the screen it is pinned to. Filter by node ids to get only comments on those nodes or inside them.
Inputs: file (required), ids, offset, resolved.
read_frame_textARead-only
Visible text of screens or any nodes, in reading order, joined by " Β· ". The cheapest way to know what a screen shows: prefer it to renders. Header/footer text repeated across 3+ screens is printed once.
Inputs: ids (required), file (required), offset.
read_outlineARead-only
Start here. Pages, sections and screens (top-level frames) of a file with ids, names and sizes; screen contents are not expanded. Cheap: text only.
Inputs: file (required), page, offset.
read_renderARead-only
Picture of one node. Costly: an image stays in context for the rest of the conversation (~1.4K tokens at 1024px). Use only for layout questions text cannot answer; render the smallest child that shows it, not whole screens. Live (edits show at once) when the kit bridge plugin runs in the file.
Inputs: id (required), file (required), format, maxEdge.
read_searchARead-only
Find screens by text or layer name (case and accent insensitive). Returns matches grouped by screen with ids, to read next with read_frame_text.
Inputs: file (required), query (required), limit, offset.
read_structureARead-only
Layer tree of a node for implementing it: one line per layer with size, auto layout, fills, strokes, radius, text style and component. Hidden layers skipped. Bounded by depth and node count.
Inputs: id (required), file (required), depth, offset, +1 more.
read_stylesARead-only
List a file's design tokens: local variables per collection with a value per mode, Figma styles (colors, text, effects, grids) with their values, and components and component sets with keys. Use it before implementing or editing, to reuse tokens and to get a componentKey for write_create; for the styles of one node, use read_structure. Variables need the kit bridge plugin in the file: without it the answer says so and lists the rest.
Inputs: file (required), offset.
write_commentADestructive
Post a comment on a file, pinned to a node, or reply to a thread. Works without the plugin. Needs the file_comments:write token scope.
Inputs: file (required), message (required), node, replyTo.
write_createADestructive
Create nodes under a parent (default: the current page): FRAME, SECTION, RECTANGLE, ELLIPSE, TEXT, COMPONENT, COMPONENT_SET (its children are COMPONENT variants named "Prop=Value, Other=Value"), or INSTANCE of a component (componentKey from read_styles, or componentId). Nest children to build a whole tree in one call. Needs the kit bridge plugin running in that file (read_bridge).
Inputs: file (required), nodes (required), parent.
write_propsADestructive
Change texts and properties of existing nodes, several in one call (one undo step). Answers with the changed nodes only. Needs the kit bridge plugin running in that file (read_bridge).
Inputs: file (required), edits (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 13 tools
The read_* family is clearly differentiated by target: outline (page map), search (find by text), structure (layer tree), frame_text (cheap visible text), render (image), styles (tokens), comments, and bridge status. The only soft overlaps are read_frame_text vs read_render vs read_search (all answer 'what does this screen show'), which the descriptions explicitly rank in cost/use, and exec_run, which by design can do anything but is framed as the last resort.
Consistent snake_case with a readable read_/write_ prefix convention that maps to side-effect-free vs mutating calls. Minor deviations: delete_nodes uses no prefix despite being a mutation, and exec_run doesn't fit the read_/write_ scheme, weakening the prefix's meaning slightly.
13 tools sits comfortably in the well-scoped range. Each tool earns its place: cheap text-first readers, a bounded render, targeted writers, and one escape hatch, with no redundant near-duplicates.
Read coverage is thorough (pages, screens, text, structure, tokens, comments, renders) and mutation covers create, edit props, delete, comment, plus exec_run for anything else. Gaps remain: no dedicated move/reorder, no creation or editing of design tokens/styles/variables (only reading them), and no comment resolution/delete, though exec_run largely backstops these.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Design canvas for agents: create, edit, render and export Figma-shaped designs over MCP.
Free, no-key MCP server: token estimates, JSON Schema conversion, MCP configs, tool search.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceRead-only Figma MCP server that enables design-to-code workflows by talking to the Figma REST API with a personal access token, for use with Claude Code and GitHub Copilot.12MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for the Figma API. Lets AI agents fetch designs, nodes, and rendered images from Figma.2,146 npm-
- AlicenseNot gradedqualityDmaintenanceToken-efficient Figma MCP server with image export, query DSL, and design token support.6 npmMIT
- AlicenseAqualityDmaintenanceLocal-first Figma MCP server providing unlimited read access via Personal Access Token, HTML replica generation with parity verification, and write-to-canvas through a companion plugin bridge.152MIT