# @redfoxxo/kit [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/RedFoxxo/kit  
**GitHub Stars:** 1  
**npm Downloads (last month):** 924  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/redfoxxo-kit

## Description
Token-lean MCP server for Figma: read designs as compact text, render only on demand

## Tools
Capabilities this server exposes over MCP:

- **read_outline** — 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.
- **read_frame_text** — 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.
- **read_search** — 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.
- **read_comments** — 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.
- **read_structure** — 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.
- **read_styles** — The file's design tokens: local variables per collection with a value per mode (needs the kit bridge plugin in the file), Figma styles (colors, text, effects, grids) with their values, and its components and component sets with keys.
- **read_render** — 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.
- **read_bridge** — 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.
- **write_props** — 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).
- **write_create** — 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).
- **write_comment** — 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.
- **delete_nodes** — Delete nodes (one undo step in Figma). Needs the kit bridge plugin running in that file (read_bridge).
- **exec_run** — 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).
- **auth_login** — Sign in to Figma in the browser: opens Figma's sign-in page and answers once the user is back (or with the link, if they are not). Call it when a tool says the user is not signed in or the sign-in expired.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "kit": {
    "command": "npx",
    "args": ["-y","@redfoxxo/kit@1"],
    "env": {
      "FIGMA_CLIENT_ID": "",
      "FIGMA_CLIENT_SECRET": "",
      "FIGMA_TOKEN": "",
      "KIT_CACHE_DIR": ""
    }
  }
}
```

**Requires environment variables:** `FIGMA_CLIENT_ID`, `FIGMA_CLIENT_SECRET`, `FIGMA_TOKEN`, `KIT_CACHE_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What @redfoxxo/kit does

@redfoxxo/kit exposes Figma file inspection and editing through MCP. Its read tools cover the parts of a design an agent commonly needs first: page, section, and screen outlines; visible text in reading order; text or layer-name search; comment threads; layer properties; variables, styles, components, and component sets; and the files and selections visible to the bridge plugin.

The server favors compact textual representations over automatically loading screenshots or raw JSON. `read_render` is available when visual inspection is necessary and produces an image of a single node, capped at a 1024-pixel longest side by default, along with its token cost.

Write operations can change text, including mixed-style text, paints, images, effects, layout, and component properties. Other tools create nested trees of frames, sections, shapes, text, components, variant sets, and instances; delete nodes; post comments or replies; and run JavaScript with the full Figma Plugin API.

## How it works

The MCP client starts the package as a local stdio process with `npx`. Read operations and REST-based comment actions use Figma authentication directly. Design mutations require the kit bridge plugin to be running in the Figma desktop app because Figma's REST API cannot edit designs.

The bridge communicates with kit over a localhost WebSocket on ports 7380–7389. `read_bridge` reports connected files and selections. When an edit is requested, kit uses the plugin running in the file named by the call rather than choosing between open files automatically. The plugin connection is protected by a local bridge key and rejects connections from websites and other host names.

## Setup and configuration

Node.js 22.12 or newer is required. Configure either `FIGMA_TOKEN`, or both `FIGMA_CLIENT_ID` and `FIGMA_CLIENT_SECRET` for OAuth browser sign-in. OAuth requires a Figma app with the redirect URL `http://127.0.0.1:7390/callback` and the documented file, metadata, comment, and user scopes. OAuth credentials are stored under `~/.kit/auth.json`; the access token is refreshed automatically while the authorization remains valid.

For a personal access token, set `FIGMA_TOKEN` in the environment rather than a configuration file. Tokens need the file content and metadata read scopes, plus the comments write scope when posting comments. `KIT_CACHE_DIR` optionally changes the default cache location from `~/.kit/cache`.

To enable editing, run `npx -y @redfoxxo/kit@1 plugin`, import the generated manifest into Figma Desktop, and launch the kit bridge plugin in the file being edited. Keep its plugin window open while the assistant works. Browser-based Figma cannot run the development plugin required for edits.

## Tools and capabilities

- Inspect outlines, screen text, comments, layer structures, styles, variables, components, and selections.
- Search screens by visible text or layer name without case or accent sensitivity.
- Render one Figma node on demand with a size limit and token-cost report.
- Modify properties, create nested node trees, delete nodes, and convert nodes into components through the plugin.
- Post comments and replies through the REST API without the plugin.
- Execute JavaScript against the Figma Plugin API with `exec_run`.
- Sign in to Figma through OAuth with `auth_login`, including forced account switching.

## Limitations and notes

Edits, node creation, deletion, property changes, and plugin API execution depend on Figma Desktop and the bridge plugin. `exec_run` can run arbitrary JavaScript through the plugin API, so MCP client approval rules should treat it separately from read tools. The server can connect to multiple kit sessions on one machine, while each plugin connection uses the local bridge key generated during plugin setup.

OAuth browser sign-in must complete on the machine running kit because the callback uses localhost port 7390. For headless or remote environments, a personal access token avoids that browser requirement. Files, renders, OAuth data, and bridge credentials are stored beneath the kit directory, with the cache location configurable through `KIT_CACHE_DIR`.

_Full upstream README: https://allmcps.com/mcp/redfoxxo-kit/readme_

