Sponsored by Deepsite.site

Figma

Created By
figma-mcp-server8 months ago
Content

Figma MCP Server

A tool that lets Claude create and edit designs directly in Figma.

What This Does

This tool connects Claude with Figma, allowing you to:

  • Create new Figma designs by describing them to Claude
  • Edit existing Figma designs with simple instructions
  • Generate complete wireframes and UI elements
  • Export your designs

How It Works

  1. Claude: Understands your design requests
  2. Figma Plugin: Creates the designs in Figma
  3. Server: Connects Claude to Figma (runs automatically)

Quick Start Guide

For Users

  1. Install the Figma Plugin:

    • Open Figma Desktop app
    • Go to Plugins > Development > Import plugin from manifest
    • Select the figma-plugin/manifest.json file from this project
  2. Configure Figma MCP Server in Claude config:

    • Check where MCP Config json is located on your system. This may depend on your operating system.
    • Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
    {
      "mcpServers": {
          "figma": {
          "command": "docker",
             "args": [
                "run",
                "-i",
                "-p",
                "9000:9000",
                "--rm",
                "mcp/hs-figma"
             ],
             "env": {
                "NODE_ENV": "production",
                "WEBSOCKET_MODE": "true",
                "WS_PORT": "9000"
             }
          }
      }
    }
    
    
  3. Use with Claude:

    • Open Claude
    • The Figma tool should appear in Claude's tools menu
    • Ask Claude to create designs in Figma, like:
      • "Create a login screen in Figma"
      • "Design a blue button with rounded corners in Figma"
      • "Make a simple landing page layout in Figma"

For Technical Setup (IT/Developers)

Click to expand technical setup instructions

Prerequisites

  • Node.js (>= 16)
  • npm
  • Docker (installed on the machine running Claude)
  • Figma Desktop app

Installation

  1. Clone and Install:

    git clone <repository-url>
    cd figma-mcp-server
    npm install
    
  2. Build:

    npm run build
    npm run build:figma-plugin
    
  3. Build Docker Image & Figma Plugin:

    docker build -t mcp/hs-figma .
    
    npm run build:figma-plugin
    
  4. Configure Claude: Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

    {
      "mcpServers": {
          "figma": {
          "command": "docker",
             "args": [
                "run",
                "-i",
                "-p",
                "9000:9000",
                "--rm",
                "mcp/hs-figma"
             ],
             "env": {
                "NODE_ENV": "production",
                "WEBSOCKET_MODE": "true",
                "WS_PORT": "9000"
             }
          }
      }
    }
    

    Once this configuration is added, Claude will automatically start the server when needed.

Design Capabilities

You can ask Claude to:

  • Create rectangles, circles, text, and frames
  • Design buttons, cards, and other UI components
  • Arrange layouts for web pages and apps
  • Style elements with colors, shadows, and effects
  • Export designs as images

Troubleshooting

Common Issues

  1. Claude can't connect to Figma

    • Make sure the Figma plugin is running
    • Make sure you've correctly set up the Claude configuration file
    • Restart Claude and try again
  2. Shapes don't appear as expected

    • Try being more specific in your instructions to Claude
    • For colors, use common names like "blue" or hex codes like "#0000FF"
  3. Plugin not working

    • Make sure you've opened a Figma file
    • Reinstall the plugin if needed

For technical troubleshooting, see the "Technical Issues" section below.

Technical Issues
  1. WebSocket Connection Failure

    • Check that port 9000 is not blocked by firewalls
    • Verify WS_PORT setting in both server and plugin configurations
  2. Plugin Loading Issues

    • Ensure TypeScript files are compiled correctly
    • Check console errors in Figma's developer tools
  3. Color Format Issues

    • Color objects should use opacity instead of alpha ('a') property

Examples

Try asking Claude:

  • "Create a simple app homepage in Figma with a header, hero section, and footer"
  • "Design a user profile card with an avatar, name, and bio in Figma"
  • "Make a set of navigation buttons in Figma"

License

MIT

Server Config

{
  "mcpServers": {
    "figma": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-p",
        "9000:9000",
        "--rm",
        "mcp/hs-figma"
      ],
      "env": {
        "NODE_ENV": "production",
        "WEBSOCKET_MODE": "true",
        "WS_PORT": "9000"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.