
Figma To Code Mcp
This server connects Claude to the Figma API and transforms design files into CSS-aligned JSON that's 99.5% smaller than raw API responses. It exposes tools to fetch design data with CSS property names (backgroundColor, flexDirection), resolve Figma variables to actual values, export SVGs, and render nodes as PNGs. The main trick is stripping out Figma metadata LLMs don't need for code generation while keeping layout, typography, colors, and spacing intact. You'll want this when building UIs from Figma designs in Cursor or similar tools. Requires a Figma personal access token with file_content:read and library_content:read scopes. Variable resolution needs an Enterprise plan, but you can disable it otherwise.
- GitHub stars
- 7
- tools
- 3
- auth
- Secret needed
- transport
- STDIO
- env var
- 1
- last updated
- Jul 23, 2026
Tools
3 toolsPublic tool metadata for what this MCP can expose to an agent.
get_figma_designFetches CSS-aligned, LLM-optimized design data. Exports SVG assets and a PNG render.
Fetches CSS-aligned, LLM-optimized design data. Exports SVG assets and a PNG render.
No parameter schema in public metadata yet.
get_image_fillsRetrieves image fill URLs from a Figma file
Retrieves image fill URLs from a Figma file
No parameter schema in public metadata yet.
render_node_imagesRenders Figma nodes as PNG images
Renders Figma nodes as PNG images
No parameter schema in public metadata yet.
Sponsors
Configuration
FIGMA_API_KEY*secretYour Figma Personal Access Token, learn more here: https://www.figma.com/developers/api#access-tokens
Readme
Figma To Code MCP
Transform Figma design data into a compact, LLM-friendly format for code generation and UI building.
Why This Project?
Figma To Code MCP specializes in extracting only the information LLMs need to build UIs while removing Figma-specific metadata that isn't relevant for code generation. The result:
Details
- Repository
- github.com/felixanhalt/figma-to-code-mcp
- Categories
- AI & LLM Tools, Design & Creative
- Package
@tmegit/figma-to-code-mcp- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active