Provides tools for accessing Figma files through the REST API, including navigation of pages and frames, extraction of design tokens and assets (SVGs, images), screenshot generation, and component search with intelligent context management and compact tree output format.
@alucardeht/figma-mcp
MCP server for Figma API with intelligent context management and token optimization.
v3.0.0 — Compact tree output format with 95% token savings.
Installation
Claude Code
Get your Figma Token
Open Figma Settings
Navigate to Personal access tokens
Click Create a new token
Copy the token immediately (it won't be shown again)
Requirements
Figma Plan
The Figma REST API works with any plan, but rate limits differ significantly:
Plan | File Access | Rate Limit |
Starter (Free) | 6 requests/month | Impractical for real use |
Professional | Unlimited | 120 req/min |
Organization | Unlimited | 480 req/min |
Important: Free accounts are limited to 6 API calls per month for file content. This makes the MCP server impractical without a paid plan.
Dev Mode is not required — this MCP uses the REST API, not Dev Mode features.
Features
Compact Tree Output (NEW in v3.0)
95% token reduction: 205k chars → 10k chars for typical landing pages
ASCII tree format: Clear hierarchical structure with
├─,└─,│Essential info preserved: Positions, dimensions, colors, layouts, overflow indicators
Example output:
Smart Navigation
Name-based access: Use human-readable names, no IDs required
Partial matching: "Landing" matches "Landing page"
Session state: Maintains context across requests
Asset Management
Organized extraction: Assets saved to
icons/andimages/foldersDesign tokens: Extract colors, typography, effects
Configurable screenshots: Scale 1-4x with dimension limits
Available Tools
Navigation
Tool | Description |
| List all pages in a file |
| List frames on a page |
| Get frame structure in compact format |
| Find components by name |
Extraction
Tool | Description |
| Export frame as PNG |
| Extract design tokens |
| Export SVGs and images |
| List published styles |
Session
Tool | Description |
| Replay previous response from cache |
| View current session state |
| Clear all cached data |
Compact Format Reference
The get_frame_info tool returns a compact tree format optimized for LLM context:
Attributes shown:
bg:#hex— Background colorrow/col— Layout directiongap:N— Spacing between childrenradius:N— Border radiusshadow— Has drop shadowINSTANCE/VECTOR/TEXT— Node type↓overflow:Npx— Content overflows bounds
Example Workflow
Rate Limits
Plan | Requests/min |
Free | 120 |
Professional | 240 |
Organization | 480 |
Use pagination with continue=true to stay within limits.
License
MIT
Issues? Open an issue