# Figma Dev Mode MCP Token & Frame Inspector

> Configure the official Figma MCP Server inside Claude Code or Cursor so agents can read selected Figma frame trees, extract exact CSS custom properties and spacing tokens, and emit pixel-accurate Tailwind v4 or Astro components directly from verified design nodes.

- **Canonical URL:** https://framesfield.com/skills/figma-mcp-design-sync
- **Asset Type:** MCP Server
- **Compatible Hosts:** Claude Code, Cursor, MCP
- **Target Creative Tool:** Figma
- **License:** MIT
- **Last Verified:** 2026-11-26
- **Source Reference:** https://help.figma.com/hc/en-us/articles/32132100833559-Guide-to-the-Dev-Mode-MCP-Server

## Setup & Install

```bash
claude mcp add --transport http figma-desktop http://127.0.0.1:3845/mcp

```

## Copyable Asset (mcp.json)

```json
{
  "mcpServers": {
    "figma-desktop": {
      "type": "http",
      "url": "http://127.0.0.1:3845/mcp"
    },
    "figma-remote": {
      "type": "http",
      "url": "https://mcp.figma.com/mcp"
    }
  }
}
```

## Example Input

```text
"Inspect the currently selected Figma frame via figma-desktop MCP. Extract exact design variables (surface, ink, hairline border, monospace size) and generate a semantic Astro component using Tailwind v4 utility tokens—do not invent box shadows or gradients not present in the node tree."
```

## Expected Output

```text
- Calls `get_variable_defs` and `get_code` / `get_metadata` against the selected node ID.
- Maps Figma variables directly to CSS custom properties (`--bg-surface`, `--border-hairline`).
- Emits a clean `.astro` component matching exact auto-layout padding, 1px strokes, and tabular-nums rules.
```

## Requirements

- Figma Desktop App (latest version) with Dev Mode MCP Server enabled in Preferences -> Dev Mode, OR Figma Remote MCP OAuth access
- Paid Figma Dev or Full seat for full variable and code inspection endpoints
- MCP-compatible client (Claude Code CLI, Cursor 0.48+, or Windsurf)

## Known Limits

- Desktop server binds locally to 127.0.0.1:3845 and only inspects frames in the currently open Figma desktop window
- Deeply ungrouped frames without Auto Layout produce absolute coordinates that require manual grid refactoring

## Implementation Notes

## Pairing Figma MCP with a strict Token Contract

Connecting Figma via MCP eliminates screenshot-to-code guesswork—your agent reads real spacing, stroke widths, hex tokens, and font weights straight from the document graph. For best results, organize Figma styles using semantic variable names (`bg/canvas`, `ink/primary`, `border/hairline`) before invoking your coding agent so generated CSS variables map 1:1 to your codebase.
