| Crates.io | figma-mcp |
| lib.rs | figma-mcp |
| version | 0.4.1 |
| created_at | 2025-07-05 20:12:16.054246+00 |
| updated_at | 2025-07-05 21:57:06.500558+00 |
| description | Model Context Protocol (MCP) server for accessing Figma files and exporting images as resources |
| homepage | |
| repository | https://github.com/paulvandermeijs/figma-mcp |
| max_upload_size | |
| id | 1739446 |
| size | 114,790 |
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/filenamehttps://www.figma.com/design/FILE_ID/filename?node-id=1%3A2cargo test # Run tests
RUST_LOG=info cargo run # Run with logging
MIT License - see LICENSE file for details.