Figma

v0.1.4Developer Toolsstable

Enables extraction of design context from Figma files as CSS-like properties and provides tools to render Figma nodes as images. It integrates with AI agents via the Model Context Protocol to facilitate design-to-code workflows by providing layout, s

figmamcpai-integration
Share:
154
Stars
0
Downloads
0
Weekly
0/5

What is Figma?

Figma is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables extraction of design context from figma files as css-like properties and provides tools to render figma nodes as images. it integrates with ai agents via the model context protocol to facilita...

Enables extraction of design context from Figma files as CSS-like properties and provides tools to render Figma nodes as images. It integrates with AI agents via the Model Context Protocol to facilitate design-to-code workflows by providing layout, s

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • add_figma_file
  • view_node
  • read_comments
  • post_comment
  • reply_to_comment

Use Cases

Add a Figma file to your context
Get a thumbnail for a specific node in a Figma file
Get all comments on a Figma file
Post a comment on a node in a Figma file
Reply to an existing comment in a Figma file
nvanexan

Maintainer

LicenseApache-2.0
Languagetypescript
Versionv0.1.4
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y figma-mcp

Manual Installation

npx -y figma-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Figma

The @nvanexan/figma-mcp server connects AI coding assistants to Figma files via the Figma REST API, enabling extraction of design context as CSS-like properties and rendering of specific nodes as images. It exposes two focused tools — one for extracting the complete design tree (layout, colors, typography, effects) and one for exporting rendered node images in PNG, JPG, SVG, or PDF format. Frontend developers use it to bridge the design-to-code gap, letting AI assistants read Figma designs directly and generate accurate component implementations without manual copy-paste.

Prerequisites

  • Node.js 16+ installed (for npx execution)
  • A Figma account with access to the files you want to use
  • A Figma Personal Access Token from Figma Settings > Personal Access Tokens
  • The Figma file URL or file key for the designs you want to extract
  • An MCP-compatible client such as Claude Desktop, Claude Code, or GitHub Copilot
1

Get a Figma Personal Access Token

Log in to Figma, go to Settings (top-left menu) > Security > Personal Access Tokens, and generate a new token. Copy it immediately — it is only shown once.

2

Install the package (optional)

You can install globally or run directly with npx. Global install avoids re-downloading on each use.

npm install -g @nvanexan/figma-mcp
3

Add the server to your MCP client configuration

Edit your claude_desktop_config.json or equivalent MCP config file to add the figma-mcp server, passing your Personal Access Token as the FIGMA_API_KEY environment variable.

4

Restart your MCP client

Restart Claude Desktop or your chosen MCP client so it picks up the new server configuration and establishes the connection.

5

Test with a Figma file URL

Copy a Figma file URL from your browser and ask Claude to extract the design context from it to confirm everything is working.

Figma Examples

Client configuration

Add this to your claude_desktop_config.json. Replace 'your-figma-pat' with the Personal Access Token you generated in Figma Settings.

{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "@nvanexan/figma-mcp"],
      "env": {
        "FIGMA_API_KEY": "your-figma-pat"
      }
    }
  }
}

Prompts to try

Once connected, use these prompts to extract design context and generate code from your Figma files.

- "Extract the design context from this Figma URL: https://www.figma.com/file/XXXX/My-Design and generate a React component"
- "Get the colors, typography, and spacing from the hero section node in my Figma file"
- "Render the button component node at https://www.figma.com/file/XXXX as a PNG image"
- "Extract the design tokens (colors, font sizes, spacing) from this Figma frame and create a CSS variables file"
- "Look at the card component in my Figma file and implement it as a Tailwind CSS component"

Troubleshooting Figma

401 Unauthorized error when extracting Figma context

Your FIGMA_API_KEY is invalid or has expired. Go to Figma Settings > Security > Personal Access Tokens, revoke the old token, generate a new one, and update the env value in your MCP config.

Node not found or file not accessible

Ensure the Figma file is accessible to the account that owns the Personal Access Token. For team files, the token owner must be a member of the team or project. Verify the file URL is copied from the Figma web app, not the desktop app (URLs must be in the https://www.figma.com/file/... format).

Design context output is very large and truncated

Use the depth parameter to limit the node tree depth (1-10, default 3). Ask Claude to extract context from a specific frame or component node rather than the entire file by specifying the node ID in the URL (append '?node-id=XXX').

Frequently Asked Questions about Figma

What is Figma?

Figma is a Model Context Protocol (MCP) server that enables extraction of design context from figma files as css-like properties and provides tools to render figma nodes as images. it integrates with ai agents via the model context protocol to facilitate design-to-code workflows by providing layout, s It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Figma?

Install via npm with the command: npx -y figma-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Figma?

Figma works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Figma free to use?

Yes, Figma is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "figma": { "command": "npx", "args": ["-y", "figma-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Figma?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides