Cover image
Try Now
2025-04-05

3 years

Works with Finder

1

Github Watches

0

Github Forks

2

Github Stars

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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

    Reviews

    5 (1)
    Avatar
    user_lcuik7Ua
    2025-04-17

    As a loyal user of MCP applications, I must say the figma-mcp-server by ihiteshsharma is a game changer. It's seamless to integrate and use, making my workflow so much smoother. The GitHub repository is well-documented and easy to follow. This server truly enhances the interaction between MCP apps and Figma designs. Highly recommended!