fig2json: Figma to JSON for LLMs

rust figma llm tooling

I built fig2json, a CLI tool that converts Figma .fig files into clean JSON optimized for LLM consumption.

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

  1. Export from Figma: File → Save local copy
  2. Run fig2json design.fig output-dir
  3. 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 or grab it from crates.io.