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.