Skip to main content

Allow your AI coding agents to access figma files & prototypes directly

Project description

Figma MCP Python

PyPI version

Allow your AI coding agents to access Figma files & prototypes directly.

Quick Installation

Option 1: Install with pipx (Recommended)

pipx install figma-mcp

Then run:

figma-mcp --figma-api-key=your_figma_api_token

Option 2: Run without installing

pipx run figma-mcp --figma-api-key=your_figma_api_token

Environment Variables Configuration

You can also set your Figma API token as an environment variable:

export FIGMA_API_TOKEN=your_figma_api_token
figma-mcp

Or create a .env file in your working directory:

FIGMA_API_TOKEN=your_figma_api_token

You can generate an API token in your Figma account settings.

MCP Configuration

Configuration File Example

If you're using Cursor, there are two ways to configure:

  1. In settings, add an MCP server using the command:
figma-mcp --figma-api-key=your_figma_key
  1. Add a .cursor/mcp.json file in your project:
{
	"mcpServers": {
		"figma-python": {
			"command": "figma-mcp",
			"env": {
				"FIGMA_API_TOKEN": "your_figma_api_key"
			}
		}
	}
}

For other IDEs like Windsurf, use an MCP configuration file (e.g., mcp_config.json):

{
  "mcpServers": {
    "figma-python": {
      "command": "figma-mcp",
      "args": [
        "--figma-api-key=your_figma_key"
      ]
    } 
  }
}

Development Setup

If you want to develop or modify this package:

# Clone the repository
git clone https://github.com/yourusername/figma-mcp-python.git
cd figma-mcp-python

# Install uv and set up the environment
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv sync

# Run locally
python -m figma_mcp.main

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_mcp-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

figma_mcp-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file figma_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: figma_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for figma_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e503a27cd3b50f8f41ee995768c9065988b5becb2e72d25fcdc4fee8f1de5ab4
MD5 23e7c7fbc9aeaba89116f550fe0cb016
BLAKE2b-256 29b8df0156dc3b52460f4afa9a504060eaf301b5fe9c37b8d47ed2e05f366044

See more details on using hashes here.

File details

Details for the file figma_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: figma_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for figma_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62aebf5e4fb564f34fde015680872c5c73eb1ba6255a770ac950892b2b1c475b
MD5 2b21b277b19d8eea3572829aa68d1ff9
BLAKE2b-256 7158758aaa534c26fbc09584cdb5d3600e50c118811802a3290010ba994de78b

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