figma-to-code-mcp

v0.29.0
io.github.felixAnhalt/figma-to-code-mcp Checked 15 hours ago Published 4 months ago

LLM-optimized Figma MCP server.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_figma_design Get Figma Design

Get complete Figma design data with full layout, styling, Flexbox primitives, and component relationships. SVG assets are automatically saved to a temp folder referenced in the response.

ParameterTypeDescription
fileKey *stringThe key of the Figma file to fetch, often found in a provided URL like figma.com/(file|design)/<fileKey>/...
nodeId *stringThe ID of the node to fetch, often found as URL parameter node-id=<nodeId>, always use if provided. Use format '1234:5678' or 'I5666:180910;1:10515;1:10336' for multiple nodes.
resolveVariablesbooleanWhether to resolve variable references to their actual values. Set to false if already fetched once.
svgOutputDirstringDirectory to save SVG assets to. Defaults to system temp directory.

get_image_fills Get Image Fills

Returns download URLs for all image fills in a Figma file. Image fills are user-supplied images placed into nodes. Use this to resolve imageRef values found in node fills to their actual download URLs.

ParameterTypeDescription
fileKey *stringThe key of the Figma file to retrieve image fill URLs from

render_node_images Render Node Images

Renders specified nodes from a Figma file as images to visualize how they appear.

ParameterTypeDescription
fileKey *stringThe key of the Figma file containing the nodes to render
nodeIds *arrayArray of node IDs to render as images (e.g., ['1:2', '1:3', '1:4'])