MCP Hub
Back to servers

Figma MCP Server

Brings Figma designs directly into MCP-compatible environments to view specifications and export frames as high-resolution images. It features smart section splitting for large frames and integrates with Jira to automatically fetch designs from ticket links.

Updated
Jan 26, 2026

Figma MCP Server

A Model Context Protocol (MCP) server that brings Figma designs directly into Claude Code. View design specifications, export frames as images, and reference visual context without leaving your development environment.

Overview

Implementing designs accurately requires constant reference to Figma. This MCP server eliminates context switching by:

  • Fetching design information - Get file names, frame details, and dimensions
  • Exporting images - Download frames as high-resolution PNGs
  • Smart section splitting - Large frames are automatically split into readable sections
  • Seamless integration - Works standalone or integrated with jira-mcp

Features

FeatureDescription
Design InfoFile name, last modified, frame dimensions
Image ExportExport frames as PNG, SVG, JPG, or PDF
Auto-Scaling2x scale by default for retina clarity
Section DetectionLarge frames split into individual sections
Batch ExportExport multiple frames efficiently
URL ParsingSupports file, design, and prototype URLs

Installation

Prerequisites

  • Node.js 18+
  • Claude Code CLI
  • Figma account with API access

Quick Setup

# Clone to ~/.config (recommended)
cd ~/.config
git clone https://github.com/rui-branco/figma-mcp.git
cd figma-mcp

# Install dependencies
npm install

# Run interactive setup
node setup.js

The setup will prompt for your Personal Access Token:

  1. Go to Figma Settings
  2. Scroll to "Personal access tokens"
  3. Click "Generate new token"
  4. Copy and paste the token

Alternative: Command-Line Setup

node setup.js "YOUR_FIGMA_TOKEN"

Claude Code Configuration

Add to your ~/.claude.json:

{
  "mcpServers": {
    "figma": {
      "type": "stdio",
      "command": "node",
      "args": ["~/.config/figma-mcp/index.js"]
    }
  }
}

Note: If you cloned to a different location, update the path accordingly.

Restart Claude Code to load the MCP server.

Usage

Fetch a Design

> Get this Figma design: https://www.figma.com/design/ABC123/MyProject?node-id=1-234

Example Output

# Figma File: MyProject

**Last Modified:** 2025-01-15T10:30:00Z

## Selected Frame: Login Screen

**Type:** FRAME
**Size:** 1440 x 900

### Sections (4):
- **Header** (FRAME, 1440x80)
- **Login Form** (FRAME, 400x350)
- **Footer** (FRAME, 1440x60)
- **Background** (FRAME, 1440x900)

### Exported Sections:
- Header: ~/.config/figma-mcp/exports/ABC123_1_234.png
- Login Form: ~/.config/figma-mcp/exports/ABC123_1_235.png
- Footer: ~/.config/figma-mcp/exports/ABC123_1_236.png

[Images displayed inline]

Smart Section Export

For large frames (>1500px wide or >2000px tall), the server automatically:

  1. Detects child frames, components, and groups
  2. Exports each section separately at 2x scale
  3. Provides better detail than a single compressed image
  4. Limits to 10 sections by default (configurable)

This is especially useful for:

  • Full-page designs with multiple sections
  • Component libraries
  • Design system documentation

API Reference

Tools

ToolDescriptionParameters
figma_get_designFetch design from URLurl (required), exportImage, exportChildren, maxChildren, scale
figma_export_frameExport specific framefileKey, nodeId (required), format, scale

Parameters

ParameterDefaultDescription
exportImagetrueExport images
exportChildrentrueSplit large frames into sections
maxChildren10Maximum sections to export
scale2Export scale (1-4)
formatpngExport format (png, svg, jpg, pdf)

Configuration

Config stored at ~/.config/figma-mcp/config.json:

{
  "token": "YOUR_FIGMA_TOKEN"
}

Error Handling

The server provides clear error messages:

ErrorMeaningSolution
Rate limit exceededToo many API requestsWait a few minutes
Access deniedInvalid token or no file accessCheck token permissions
File not foundInvalid URL or deleted fileVerify the Figma URL

Integration with Jira MCP

When used alongside jira-mcp:

  1. Figma links in Jira tickets are automatically detected
  2. Designs are fetched without manual intervention
  3. Images appear inline with ticket context

This creates a seamless workflow:

> Get ticket PROJ-123

# Returns ticket details + auto-fetched Figma designs

Security

  • Tokens stored locally in ~/.config/figma-mcp/config.json
  • Config excluded from git via .gitignore
  • Tokens only transmitted to Figma API
  • Exports saved to ~/.config/figma-mcp/exports/

License

MIT

Related

Reviews

No reviews yet

Sign in to write a review