Figma Design System MCP server

Bridges Figma's design ecosystem by extracting design system components, styles, and UI copy, enabling advanced design workflow analysis and documentation generation.
Back to servers
Provider
Mohammed Uvaiz
Release date
Mar 17, 2025
Language
TypeScript
Package
Stats
509 downloads
1 star

This MCP server provides a bridge between Figma designs and AI applications, allowing tools like Claude and Cursor to access and analyze your Figma designs through the Model Context Protocol (MCP).

Installation

Prerequisites

  • Node.js 16 or higher
  • Figma Personal Access Token (available in your Figma account settings)

Setup Steps

  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
    

Client Configuration

Claude Desktop Configuration

  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 Configuration

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"
          }
        }
      }
    }
    

Using the Server

Available Tools

The server provides several tools for interacting with Figma files:

  • 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

You can use these prompt templates with AI clients:

  • 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

Example Usage

With Claude:

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

With Cursor:

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

Environment Configuration

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

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

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

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later