Figma-Context-MCP-AIR
v2.0.2Figma 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
| 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>/... |
depth | number | OPTIONAL. Do NOT use unless explicitly requested by the user. Controls how many levels deep to traverse the node tree. |
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. |
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
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The key of the Figma file containing the images |
localPath * | string | The 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 * | array | The nodes to fetch as images |
pngScale | number | Export 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.
| 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>/... |
depth | number | OPTIONAL. Do NOT use unless explicitly requested by the user. Controls how many levels deep to traverse the node tree. |
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. |
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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The key of the Figma file containing the node, often found in a provided URL like figma.com/(file|design)/<fileKey>/... |
nodeId * | string | The ID of the node to capture as a screenshot, often found as URL parameter node-id=<nodeId>. Use format '1234:5678'. |
fileName | string | The filename for the screenshot (without extension). If not provided, will use the nodeId as the filename. Extension .png will be added automatically. |
localPath | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
clientFrameworks * | string | Primary frontend framework used in the project. Options: "react", "vue", "svelte", "angular", or "unknown" |
clientLanguages * | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The key of the Figma file to fetch metadata from, often found in a provided URL like figma.com/(file|design)/<fileKey>/... |
nodeId | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | The key of the FigJam file |
nodeId | string | Optional node ID to extract a specific section. If not provided, extracts the entire FigJam board. |