Figma MCP server

Integrates with Figma's API to enable direct interaction with design files, components, comments, and team resources within conversations through authenticated access token communication.
Back to servers
Setup instructions
Provider
Deep Suthar
Release date
Mar 21, 2025
Language
TypeScript

The Figma MCP Server provides integration with Figma's API, enabling you to interact with Figma files, comments, components, and other resources programmatically through a Model Context Protocol (MCP) interface.

Installation Options

Via Smithery

For the simplest installation with Claude Desktop, use Smithery:

npx -y @smithery/cli install @deepsuthar496/figma-mcp-server --client claude

Manual Installation

To install the server manually:

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Build the server:
    npm run build
    

Configuration

Configure the server in your MCP settings file by adding your Figma access token:

{
  "mcpServers": {
    "figma": {
      "command": "node",
      "args": ["path/to/figma-server/build/index.js"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "your-access-token-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Available Tools

File Operations

get_file

Retrieves information about a Figma file

{
  "file_key": "string"
}

get_file_versions

Retrieves version history of a file

{
  "file_key": "string"
}

get_file_components

Retrieves components in a file

{
  "file_key": "string"
}

Comment Management

get_file_comments

Retrieves comments from a file

{
  "file_key": "string"
}

post_comment

Posts a comment to a file

{
  "file_key": "string",
  "message": "string"
}

delete_comment

Deletes a comment from a file

{
  "file_key": "string",
  "comment_id": "string"
}

Project & Team Operations

get_team_projects

Retrieves projects for a team

{
  "team_id": "string"
}

get_project_files

Retrieves files in a project

{
  "project_id": "string"
}

get_component_styles

Retrieves published styles

{
  "team_id": "string"
}

Webhook Management

create_webhook

Creates a webhook

{
  "team_id": "string",
  "event_type": "string",
  "callback_url": "string"
}

get_webhooks

Lists webhooks

{
  "team_id": "string"
}

delete_webhook

Deletes a webhook

{
  "webhook_id": "string"
}

Usage Example

To use the MCP tools in your AI assistant interactions, use the following format:

<use_mcp_tool>
<server_name>figma</server_name>
<tool_name>get_file</tool_name>
<arguments>
{
  "file_key": "your-file-key"
}
</arguments>
</use_mcp_tool>

Replace your-file-key with your actual Figma file key and select the appropriate tool name based on your needs.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "figma" '{"command":"node","args":["path/to/figma-server/build/index.js"],"env":{"FIGMA_ACCESS_TOKEN":"your-access-token-here"},"disabled":false,"alwaysAllow":[]}'

See the official Claude Code MCP documentation for more details.

For 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 > Tools & Integrations and click "New MCP Server".

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

{
    "mcpServers": {
        "figma": {
            "command": "node",
            "args": [
                "path/to/figma-server/build/index.js"
            ],
            "env": {
                "FIGMA_ACCESS_TOKEN": "your-access-token-here"
            },
            "disabled": false,
            "alwaysAllow": []
        }
    }
}

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "figma": {
            "command": "node",
            "args": [
                "path/to/figma-server/build/index.js"
            ],
            "env": {
                "FIGMA_ACCESS_TOKEN": "your-access-token-here"
            },
            "disabled": false,
            "alwaysAllow": []
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

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