Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Figma Context AIR

FreeNot checked

An MCP server that gives AI coding agents access to Figma design data, enabling pixel-perfect implementation of designs through structured data extraction, imag

GitHubEmbed

About

An MCP server that gives AI coding agents access to Figma design data, enabling pixel-perfect implementation of designs through structured data extraction, image downloads, and design token retrieval.

README

Give your AI coding agent access to Figma design data.
Implement designs in any framework with pixel-perfect accuracy — in one shot.

npm version npm downloads MIT License


What is this?

figma-context-mcp-air is a Model Context Protocol (MCP) server that gives AI coding tools (Cursor, Claude, Windsurf, etc.) direct access to your Figma design data.

It exposes 9 tools covering the full design-to-code workflow:

Tool Description
get_figma_data Full design data — layout, text, visuals, components (YAML/JSON)
get_design_context Alias for get_figma_data matching the official Figma MCP tool naming
download_figma_images Download PNG/SVG assets from Figma nodes to your local filesystem
get_screenshot Capture a Figma node as a base64 PNG for visual inspection by the AI
get_metadata Sparse XML layer hierarchy for quick node discovery before full extraction
get_variable_defs All design tokens — colors, typography, spacing, effects, and styles
whoami Verify your Figma authentication and check your plan tier
create_design_system_rules Generate framework-specific design system documentation for your project
get_figjam Extract FigJam board content (sticky notes, connectors, shapes) as XML

Before returning data to the AI, the server simplifies and filters the raw Figma API response — keeping only the layout and styling information that matters for code generation. This reduces noise and dramatically improves AI accuracy.


Getting Started

You need a Figma Personal Access Token to use this server.
How to create a Figma API access token →

MacOS / Linux

Add this to your MCP client configuration file (e.g. ~/.cursor/mcp.json, claude_desktop_config.json):

{
  "mcpServers": {
    "Figma MCP AIR": {
      "command": "npx",
      "args": ["-y", "figma-context-mcp-air", "--figma-api-key=YOUR-KEY", "--stdio"]
    }
  }
}

Windows

{
  "mcpServers": {
    "Figma MCP AIR": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "figma-context-mcp-air", "--figma-api-key=YOUR-KEY", "--stdio"]
    }
  }
}

Using Environment Variables

You can also set FIGMA_API_KEY in the env field instead of passing it as a flag:

{
  "mcpServers": {
    "Figma MCP AIR": {
      "command": "npx",
      "args": ["-y", "figma-context-mcp-air", "--stdio"],
      "env": {
        "FIGMA_API_KEY": "YOUR-KEY"
      }
    }
  }
}

How it works

  1. Open your AI coding tool's chat (e.g. agent mode in Cursor).
  2. Paste a link to a Figma file, frame, or component.
  3. Ask the AI to implement the design.
  4. The AI calls get_design_context (or get_figma_data) to fetch structured design data, then writes your code.

For more advanced workflows, the AI can:

  • Call get_screenshot to visually inspect a node before implementing it
  • Call get_variable_defs to extract your design tokens and map them to CSS variables
  • Call get_metadata for a quick layer overview before fetching full data
  • Call create_design_system_rules to generate project-specific coding guidelines

Configuration Options

CLI Flag Environment Variable Default Description
--figma-api-key FIGMA_API_KEY (required) Your Figma Personal Access Token
--figma-oauth-token FIGMA_OAUTH_TOKEN OAuth Bearer token (alternative to PAT)
--port PORT 3333 HTTP server port (HTTP mode only)
--json OUTPUT_FORMAT=json YAML Return JSON instead of YAML
--skip-image-downloads SKIP_IMAGE_DOWNLOADS false Disable the download_figma_images tool
--image-dir Custom directory for downloaded images
--stdio NODE_ENV=cli Run in stdio mode (required for MCP clients)

Tool Reference

get_figma_data / get_design_context

Fetches and simplifies Figma design data for a file or specific node. Returns layout (flexbox/grid), typography, colors, borders, effects, and component metadata in YAML or JSON.

Parameters:

  • fileKey (required) — The key from your Figma URL: figma.com/design/<fileKey>/...
  • nodeId (optional) — The node ID from the URL: ?node-id=<nodeId>. Use format 1234:5678.
  • depth (optional) — How many levels deep to traverse. Only use if explicitly needed.

download_figma_images

Downloads PNG or SVG renders of Figma nodes to your local filesystem.

Parameters:

  • fileKey (required)
  • nodes (required) — Array of { nodeId, fileName } objects
  • localPath (required) — Directory to save images
  • pngScale (optional) — Scale factor for PNG exports (default: 1)
  • svgOptions (optional) — SVG export options (outline text, include IDs, simplify strokes)

get_screenshot

Captures a Figma node as a 2x PNG and saves it to disk. Useful for visual validation.

Parameters:

  • fileKey (required)
  • nodeId (required)
  • localPath (optional) — Save directory (default: ./screenshots)
  • fileName (optional) — Output filename without extension

get_metadata

Returns a sparse XML representation of the node hierarchy (depth=2). Use this for quick layer discovery before fetching full design context.

Parameters:

  • fileKey (required)
  • nodeId (required)

get_variable_defs

Fetches all design tokens from a Figma file — variable collections (colors, spacing, typography) and published styles (effects, text styles, fill styles). Returns data with CSS custom property syntax.

Parameters:

  • fileKey (required)

whoami

Returns the authenticated user's Figma account information (name, email, plan tier). Useful for verifying your API key is working.

Parameters: None


create_design_system_rules

Generates a comprehensive markdown template for project-specific design system rules. Tailored to your language and framework combination. Save the output to CLAUDE.md or your project's AI instructions file.

Parameters:

  • clientLanguages (required) — e.g. "typescript,javascript"
  • clientFrameworks (required)"react", "vue", "svelte", "angular", or "unknown"

get_figjam

Extracts content from a FigJam board — sticky notes, connectors, shapes, sections — as XML with screenshot URLs.

Parameters:

  • fileKey (required)
  • nodeId (optional) — Specific section or frame within the FigJam board

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Development mode (HTTP, with watch)
pnpm dev

# Development mode (stdio)
pnpm dev:cli

# Run tests
pnpm test

# Type check
pnpm type-check

# Lint
pnpm lint

Contributing

Contributions are welcome! Please read CONTRIBUTING.md before submitting a pull request.

For major features, open an issue first to discuss the approach.


License

MIT — see LICENSE


Acknowledgements

This project is a fork of GLips/Figma-Context-MCP (the Framelink MCP server), extended with additional tools to match the full official Figma MCP tool surface.

from github.com/compassalessandrolorenz/Figma-Context-MCP-AIR

Installing Figma Context AIR

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/compassalessandrolorenz/Figma-Context-MCP-AIR

FAQ

Is Figma Context AIR MCP free?

Yes, Figma Context AIR MCP is free — one-click install via Unyly at no cost.

Does Figma Context AIR need an API key?

No, Figma Context AIR runs without API keys or environment variables.

Is Figma Context AIR hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Figma Context AIR in Claude Desktop, Claude Code or Cursor?

Open Figma Context AIR on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

LibreOffice Tools

Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a

passerbyflutterby passerbyflutter

dannote/figma-use

Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.

dannoteby dannote

Logo.dev

Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content

NOVA-3951by NOVA-3951

Design Inspiration Server

Searches top design platforms like Dribbble and Behance to provide UI inspiration, color palettes, and layout patterns via the Serper API. It allows users to re

YonasValentinby YonasValentin

PIX4Dmatic

Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem

jangjo123by jangjo123

Figma

Extract design specs and assets

Figmaby Figma

mcp-dockmaster

An Open-Sourced UI to install and manage MCP servers for Windows, Linux and macOS.

by Community

ariekogan/ateam-mcp

Build, validate, and deploy multi-agent AI solutions on the ADAS platform. Design skills with tools, manage solution lifecycle, and connect from any AI environm

ariekoganby ariekogan

thinkchainai/mcpbundles

MCP Bundles: Create custom bundles of tools and connect providers with OAuth or API keys. Use one MCP server across thousands of integrations, with programmatic

thinkchainaiby thinkchainai

arikusi/nakkas

MCP server that turns AI into an SVG artist. One rendering engine with JSON config, AI controls all design parameters. CSS @keyframes + SMIL animations, 16+ ele

arikusiby arikusi

Compare Figma Context AIR with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All design MCPs