productivity
Figma MCP, CLI, and Lua Integration for AI Agents
Figma integration docs for AI agents: MCP gateway setup, Figma CLI commands, Lua API reference, credentials, and function schemas.Figma for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
figma.figma_delete_comment | Write write | 2 | Delete a comment from a Figma file. |
figma.figma_get_comments | Read read | 1 | List all comments on a Figma file. |
figma.figma_get_component | Read read | 1 | Get a Figma component by its key. |
figma.figma_get_components | Read read | 1 | List all components in a Figma file. |
figma.figma_get_current_user | Read read | 0 | Get the authenticated Figma user profile. Returns name, email, and account details. |
figma.figma_get_file | Read read | 5 | Get a Figma file by key. Returns the document tree with pages and nodes. |
figma.figma_get_file_images | Read read | 5 | Export images from Figma nodes in a file. Returns image download URLs. |
figma.figma_get_file_nodes | Read read | 4 | Get specific nodes from a Figma file by node IDs. |
figma.figma_get_image_fills | Read read | 1 | Get image fill metadata for a Figma file. Returns image URLs for all image fills. |
figma.figma_get_me | Read read | 0 | Get the authenticated Figma user profile. |
figma.figma_get_project_files | Read read | 2 | List all files in a Figma project. |
figma.figma_get_style | Read read | 1 | Get a Figma style by its key. |
figma.figma_get_styles | Read read | 1 | List all styles in a Figma file. |
figma.figma_get_team_projects | Read read | 1 | List all projects in a Figma team. |
figma.figma_list_comments | Read read | 1 | List all comments on a Figma file. Includes authors, positions, and reply threads. |
figma.figma_list_components | Read read | 1 | List all components in a Figma file. Returns component names, keys, and descriptions. |
figma.figma_list_files | Read read | 2 | List Figma files accessible to the authenticated user. Returns file names, keys, and thumbnails with pagination support. |
figma.figma_list_projects | Read read | 1 | List all projects in a Figma team. Returns project names and IDs. |
figma.figma_list_team_components | Read read | 2 | List published components in a Figma team. |
figma.figma_post_comment | Read read | 4 | Post a comment on a Figma file. Can be a top-level comment or a reply. |