Figma MCP Server

Figma MCP Server

A Model Context Protocol server that connects AI tools and LLMs to Figma designs, enabling them to extract design data, analyze design systems, and generate development documentation.

mohammeduvaiz

Developer Tools
Visit Server

README

Figma MCP Server

A Model Context Protocol (MCP) server that connects to Figma's API, allowing AI tools and LLMs to access and work with your Figma designs.

Features

  • Design Data Extraction: Extract components, styles, and text from your Figma designs
  • Design System Analysis: Analyze design system consistency and patterns
  • UI Content Management: Extract and organize all UI copy from designs
  • Development Handoff: Generate comprehensive documentation for developers
  • Seamless AI Integration: Connect your designs to AI tools like Claude, Cursor, and other MCP-compatible clients

Getting Started

Prerequisites

  • Node.js 16 or higher
  • Figma Personal Access Token (Get it from your Figma account settings)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/figma-mcp-server.git
    cd figma-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the project root:

    FIGMA_API_TOKEN=your_figma_personal_access_token
    API_KEY=your_secure_api_key
    TRANSPORT_TYPE=stdio
    
  4. Build the server:

    npm run build
    
  5. Start the server:

    npm start
    

Connecting to Clients

Claude for Desktop

  1. Open or create the Claude for Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the following configuration:

    {
      "mcpServers": {
        "figma": {
          "command": "node",
          "args": ["/absolute/path/to/figma-mcp-server/build/index.js"],
          "env": {
            "FIGMA_API_TOKEN": "your_figma_personal_access_token",
            "TRANSPORT_TYPE": "stdio"
          }
        }
      }
    }
    
  3. Restart Claude for Desktop

Cursor

Global Configuration

Create or edit Cursor's MCP configuration file:

  • macOS: ~/Library/Application Support/Cursor/mcp.json
  • Windows: %APPDATA%\Cursor\mcp.json
{
  "mcpServers": {
    "figma-mcp": {
      "url": "http://localhost:3000/sse",
      "env": {
        "API_KEY": "your_secure_api_key"
      }
    }
  }
}

Project-Specific Configuration

  1. Create a .cursor directory in your project root:

    mkdir -p .cursor
    
  2. Create an mcp.json file inside that directory:

    {
      "mcpServers": {
        "figma-mcp": {
          "url": "http://localhost:3000/sse",
          "env": {
            "API_KEY": "your_secure_api_key"
          }
        }
      }
    }
    

Available Tools

Tool Description
get-file-info Get basic information about a Figma file
get-nodes Get specific nodes from a Figma file
get-components Get component information from a Figma file
get-styles Get style information from a Figma file
get-comments Get comments from a Figma file
search-file Search for elements in a Figma file by type, name, etc.
extract-text Extract all text elements from a Figma file

Available Prompts

  • analyze-design-system - Analyze design system components and styles for consistency
  • extract-ui-copy - Extract and organize all UI copy from designs
  • generate-dev-handoff - Generate development handoff documentation based on designs

Usage Examples

Using with Claude:

Can you analyze the design system in my Figma file with key abc123? Look for consistency in color usage and typography.

Using with Cursor:

Generate React components for the buttons from my Figma file with key abc123, using tailwind CSS.

Environment Variables

Variable Description Default
FIGMA_API_TOKEN Your Figma Personal Access Token (Required)
API_KEY Security key for API authentication (Required)
TRANSPORT_TYPE Transport method (stdio or sse) stdio
PORT Port for SSE transport 3000

Architecture

This MCP server:

  1. Connects to the Figma API using your personal access token
  2. Exposes a standardized interface following the Model Context Protocol
  3. Provides tools, resources, and prompts that LLMs can use to interact with your Figma designs
  4. Supports both stdio transport (local connections) and SSE transport (remote connections)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python