Skip to main content

A FastMCP server connecting an IDE directly to the Figma Desktop App.

Project description

Figma Dash MCP Server

An open-source Model Context Protocol (MCP) server that connects your IDE (like Cursor, Claude Desktop, or Antigravity) directly to the Figma Desktop App. This allows AI assistants to proactively generate and manipulate layouts, shapes, and designs directly inside your Figma canvas!

How it Works

The architecture operates securely and completely offline on your local machine:

  1. Figma Plugin (figma-plugin): Runs inside your Figma drawing canvas. It hosts a hidden HTTP polling client to receive instructions.
  2. FastMCP Python Server (figma_dash_mcp_server): Runs as a background service spawned by your IDE. It exposes AI tools (e.g. create_rectangle, create_frame) and sends those commands to Figma via an internal loopback server (port 49901).

🚀 Quick Start Guide

Step 1: Install the Prerequisites

Because the server is built with Python, you need an extremely fast package manager called uv to automatically download and run it in an isolated environment.

Install uv (it takes 2 seconds):

macOS / Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell)

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

(If you are setting this up on a fresh machine, you might also need to install Python locally if uv doesn't install it for you).


Step 2: Configure Your IDE

You do not need to manually download or install any Python files. Your IDE will use the uvx command to grab the latest official package directly from PyPI on-the-fly!

Add the following block to your IDE's MCP configuration settings (e.g., Cursor Settings > Features > MCP, or claude_desktop_config.json):

{
  "mcpServers": {
    "figma-generator": {
      "command": "uvx",
      "args": ["--refresh", "figma-dash-mcp-server@latest"]
    }
  }
}

(When your IDE restarts, it will execute this command in the background, keeping the server listening for your AI agent!)


Step 3: Connect your Figma Desktop App

For the IDE server to physically draw on your canvas, it needs a linked Figma plugin active.

  1. Download or clone this repository.
  2. Open your Figma Desktop App.
  3. Right-click anywhere in your design canvas > Plugins > Development > Import plugin from manifest.
  4. Select the manifest.json file inside the figma-plugin/ folder.
  5. Run the Dash MCP Link plugin from the plugins menu. Keep the small UI window open on the side of your screen!

Step 4: Talk to your AI!

With the Figma plugin open and your IDE restarted, the connection is instantly established. In your IDE chat, simply say:

"Hey, can you use your Figma tools to create a premium glassmorphic dashboard layout in Figma?"

The entire UI layout will build itself directly inside your Figma application in real-time!

Development

To add new AI capabilities:

  1. Open up figma_dash_mcp_server/server.py and write a new @mcp.tool() function.
  2. Have the python tool send a new JSON method (like create_circle) over the send_to_figma background thread.
  3. Open figma-plugin/code.js and add an else if (toolName === 'create_circle') block to physically execute the drawing via the Figma Plugin API.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

figma_dash_mcp_server-0.1.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

figma_dash_mcp_server-0.1.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file figma_dash_mcp_server-0.1.2.tar.gz.

File metadata

  • Download URL: figma_dash_mcp_server-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for figma_dash_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9666d1aaa22a1280fcbd634a61f0fe51fa7eee94ba350b3758cfaf001be04c2b
MD5 be6c172eca8e4a3fe2243a2595f85cc8
BLAKE2b-256 39e10c8f65bda0a785f0a76f55a95023c8e6ce23d4e48e496c7f22cb05008d97

See more details on using hashes here.

File details

Details for the file figma_dash_mcp_server-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: figma_dash_mcp_server-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for figma_dash_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ff7bca84f82f34605acaa218b910b39d3fb06b29ea5c06c83c58b1720cff713
MD5 c655ce63d4246936f33b941fbac83c8e
BLAKE2b-256 f0baa13585a35e390bbe3b2e9c4f68160e47482efdd278bc2ff26684cb29fab8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page