figma-to-code-mcp
v0.29.0LLM-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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The key of the Figma file to fetch, often found in a provided URL like figma.com/(file|design)/<fileKey>/... |
nodeId * | string | The 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. |
resolveVariables | boolean | Whether to resolve variable references to their actual values. Set to false if already fetched once. |
svgOutputDir | string | Directory 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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The key of the Figma file containing the nodes to render |
nodeIds * | array | Array of node IDs to render as images (e.g., ['1:2', '1:3', '1:4']) |