Skip to main content

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

Project description

Figma MCP Python

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.0.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.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: figma_mcp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3d80209fe6ed048767dfe7bdb023f4cf6b3e6cbc39bae1dd60f596713159dc75
MD5 3924eb12b559096938d2307d38bd49fa
BLAKE2b-256 4b2af43e2a274c948facffc237236e6593da4916198e5fc6263534e213e6bdab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: figma_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da882416a2cadc4c5b4b549cae2342fc0d4014bdb4897f91415c8e9216bd48fe
MD5 d79c05dc550ae996e79e09d59e9cab4b
BLAKE2b-256 b1074eae4cca05dbb5da0b48cf79d0b0fed1a3a8986170bf61ad293565aedfea

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