Figma-Context-MCP-AIR

v2.0.2
io.github.compassalessandrolorenz/Figma-Context-MCP-AIR Checked 4 days ago Published 8 months ago

Figma MCP server for AI agents.

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

get_figma_data Get Figma Data

Get comprehensive Figma file data including layout, content, visuals, and component information

ParameterTypeDescription
fileKey *stringThe key of the Figma file to fetch, often found in a provided URL like figma.com/(file|design)/<fileKey>/...
depthnumberOPTIONAL. Do NOT use unless explicitly requested by the user. Controls how many levels deep to traverse the node tree.
nodeIdstringThe 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.

download_figma_images Download Figma Images

Download SVG and PNG images used in a Figma file based on the IDs of image or icon nodes

ParameterTypeDescription
fileKey *stringThe key of the Figma file containing the images
localPath *stringThe absolute path to the directory where images are stored in the project. If the directory does not exist, it will be created. The format of this path should respect the directory format of the opera…
nodes *arrayThe nodes to fetch as images
pngScalenumberExport scale for PNG images. Optional, defaults to 2 if not specified. Affects PNG images only.

whoami Who Am I

Get information about the authenticated Figma user, including their ID, email, handle, and profile image URL. Useful for verifying authentication and checking account details.

get_design_context Get Design Context

Get structured design context from a Figma file or node, including layout, typography, colors, spacing, and component information. This is the primary tool for extracting design specifications to implement in code. Returns comprehensive design data optimized for AI-assisted implementation.

ParameterTypeDescription
fileKey *stringThe key of the Figma file to fetch, often found in a provided URL like figma.com/(file|design)/<fileKey>/...
depthnumberOPTIONAL. Do NOT use unless explicitly requested by the user. Controls how many levels deep to traverse the node tree.
nodeIdstringThe 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.

get_screenshot Get Screenshot

Capture and save a visual screenshot (PNG image) of a specific Figma node to disk. The screenshot is saved to the specified directory (defaults to './screenshots') and can be used for visual comparison, verifying design implementation accuracy, or understanding complex visual elements. The screenshot is rendered at 2x scale for high quality.

ParameterTypeDescription
fileKey *stringThe key of the Figma file containing the node, often found in a provided URL like figma.com/(file|design)/<fileKey>/...
nodeId *stringThe ID of the node to capture as a screenshot, often found as URL parameter node-id=<nodeId>. Use format '1234:5678'.
fileNamestringThe filename for the screenshot (without extension). If not provided, will use the nodeId as the filename. Extension .png will be added automatically.
localPathstringThe directory path where the screenshot will be saved. Defaults to './screenshots' if not specified. The directory will be created if it doesn't exist.

get_variable_defs Get Variable Definitions

Get all design tokens from a Figma file, including local variables (color tokens, spacing scales, typography definitions) and published styles (colors, text styles, effects, grids). Use this to map Figma design tokens to your project's CSS variables, design system, or theme configuration. Essential for maintaining design-code consistency.

ParameterTypeDescription
fileKey *stringThe key of the Figma file to fetch variables and styles from, often found in a provided URL like figma.com/(file|design)/<fileKey>/...

create_design_system_rules Create Design System Rules

Generate a comprehensive design system rules template tailored to your project's programming languages and frontend framework. Returns a detailed markdown document covering component organization, design token usage, Figma MCP integration workflow, styling conventions, asset handling, and project-specific guidelines. Use this to establish consistent design-to-code practices for your team.

ParameterTypeDescription
clientFrameworks *stringPrimary frontend framework used in the project. Options: "react", "vue", "svelte", "angular", or "unknown"
clientLanguages *stringComma-separated list of programming languages used in the project (e.g., "typescript,javascript" or "typescript")

get_metadata Get Metadata

Get sparse XML metadata for a Figma file or node, including basic layer properties (names, types, IDs, bounding boxes) without full design details. Returns a lightweight XML representation useful for quick discovery and navigation of the layer hierarchy before fetching full design context. Uses depth=2 to limit tree traversal for performance.

ParameterTypeDescription
fileKey *stringThe key of the Figma file to fetch metadata from, often found in a provided URL like figma.com/(file|design)/<fileKey>/...
nodeIdstringThe ID of the node to fetch metadata for, often found as URL parameter node-id=<nodeId>. Use format '1234:5678' or 'I5666:180910;1:10515;1:10336' for multiple nodes.

get_figjam Get FigJam

Converts a FigJam board (whiteboard/diagram file) to XML representation with screenshot URLs for visual elements. Returns structured XML containing FigJam-specific node types like STICKY notes, SHAPE_WITH_TEXT, CONNECTORs, and other diagram elements. Each visual element includes a screenshot URL attribute for reference. Use this tool to extract and analyze FigJam boards, brainstorming sessions, diagrams, and collaborative whiteboard content.

ParameterTypeDescription
fileKey *stringThe key of the FigJam file
nodeIdstringOptional node ID to extract a specific section. If not provided, extracts the entire FigJam board.