Why Not MCP?
There are MCP servers for Figma (even an official one). I couldn’t get them to work reliably. A simple CLI that outputs a JSON file felt more robust and predictable.
Workflow
- Export from Figma: File → Save local copy
- Run fig2json design.fig output-dir
- Feed the JSON to your LLM with implementation instructions
Usage
# Install
cargo install fig2json
# Convert (export your .fig from Figma first: File → Save local copy)
fig2json design.fig output-dir
That’s it. Check out the GitHub repo : https://github.com/kreako/fig2json/ or grab it from https://crates.io/crates/fig2json
Hope this will help someone