A Model Context Protocol (MCP) server that provides access to Figma files and design assets through a standardized interface.
cargo install figma-mcp
git clone https://github.com/paulvandermeijs/figma-mcp.git
cd figma-mcp
cargo build --release
Get your Figma token from Developer Settings
Set environment variable:
export FIGMA_TOKEN="your_token_here"
Run the server:
# If installed via cargo install
figma-mcp
# If built from source
cargo run --release
parse_figma_url
to extract file key from any Figma URLparse_figma_url
- Extract file key from Figma URLsget_file
- Get file structure (with depth control)get_file_nodes
- Get specific nodes (with depth control)export_images
- Export images from nodesget_me
- Test authenticationhelp
- Usage instructionsExported images are automatically available as MCP resources:
figma://file/{file_key}/node/{node_id}.{format}
https://www.figma.com/file/FILE_ID/filename
https://www.figma.com/design/FILE_ID/filename
?node-id=1%3A2
cargo test # Run tests
RUST_LOG=info cargo run # Run with logging
MIT License - see LICENSE file for details.