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:
- In settings, add an MCP server using the command:
figma-mcp --figma-api-key=your_figma_key
- Add a
.cursor/mcp.jsonfile 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d80209fe6ed048767dfe7bdb023f4cf6b3e6cbc39bae1dd60f596713159dc75
|
|
| MD5 |
3924eb12b559096938d2307d38bd49fa
|
|
| BLAKE2b-256 |
4b2af43e2a274c948facffc237236e6593da4916198e5fc6263534e213e6bdab
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da882416a2cadc4c5b4b549cae2342fc0d4014bdb4897f91415c8e9216bd48fe
|
|
| MD5 |
d79c05dc550ae996e79e09d59e9cab4b
|
|
| BLAKE2b-256 |
b1074eae4cca05dbb5da0b48cf79d0b0fed1a3a8986170bf61ad293565aedfea
|