design
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.
20 functions 19 read 1 write Bearer token auth
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.
Machine-Readable Metadata
- integration_slug
figma- route_slug
figma- package
figma- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Figma CLIHeadless setup and direct function calls. Figma MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Figma MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Figma.
Claude Code Figma MCP setup for Claude Code. Cursor Figma MCP setup for Cursor. Codex Figma MCP setup for Codex. OpenAI Agents Figma MCP setup for OpenAI Agents SDK. Claude Agent SDK Figma MCP setup for Claude Agent SDK. Vercel AI SDK Figma MCP setup for Vercel AI SDK. LangChain Figma MCP setup for LangChain. LangGraph Figma MCP setup for LangGraph. CrewAI Figma MCP setup for CrewAI. MCP clients Figma MCP setup for Generic MCP Clients.
Figma CLI Matrix
Use these pages for direct Figma CLI workflows in scripts, CI, cron, and agent wrappers.
CI Figma CLI for CI. Cron Jobs Figma CLI for cron jobs. Shell Scripts Figma CLI for shell scripts. Headless Automation Figma CLI for headless automation. Coding Agents Figma CLI for coding agents.
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. |