Figma Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Figma MCP or direct API to search design files, fetch team projects, post comments, and manage file versions through natural language.
Figma Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Add a comment to a filePosts a new comment to a figma file or branch, optionally replying to an existing root comment (replies cannot be nested); `region height` and `region width` in `client meta` must be positive if defining a comment region.
Add a reaction to a commentPosts a specified emoji reaction to an existing comment in a figma file or branch, requiring valid file key and comment id.
Create a webhookCreates a figma webhook for a `team id` to send post notifications for an `event type` to a publicly accessible https `endpoint`; an initial ping is sent unless `status` is `paused`.
Create dev resourcesCreates and attaches multiple uniquely-urled development resources to specified figma nodes, up to 10 per node.
Create, modify, or delete variablesManages variables, collections, modes, and their values in a figma file via batch create/update/delete operations; use temporary ids to link new related items in one request and ensure `variablemodevalues` match the target variable's `resolvedtype`.
Delete a commentDeletes a specific comment from a figma file or branch, provided the authenticated user is the original author of the comment.
Delete a reactionDeletes a specific emoji reaction from a comment in a figma file; the user must have originally created the reaction.
Delete a webhookPermanently deletes an existing webhook, identified by its unique `webhook id`; this operation is irreversible.
Delete dev resourceDeletes a development resource (used to link figma design elements to external developer information like code or tasks) from a specified figma file.
Design tokens to tailwindConvert design tokens to tailwind css configuration.
Detect backgroundDetect background layers for selected nodes.
Discover Figma Resources🔍 smart figma resource discovery - never guess ids again!
Download Figma ImagesDownload images from figma file nodes.
Extract design tokensExtract design tokens from figma files.
Extract Prototype InteractionsExtract prototype interactions and animations from figma files.
Get activity logsRetrieves activity log events from figma, allowing filtering by event types, time range, and pagination.
Get a webhookRetrieves detailed information about a specific webhook by its id, provided the webhook exists and is accessible to the user.
Get comments in a fileRetrieves all comments from an existing figma file, identified by a valid `file key`, returning details like content, author, position, and reactions, with an option for markdown formatted content.
Get componentGet component data with automatic simplification.
Get component setRetrieves detailed metadata for a specific published figma component set using its unique `key`.
Get current userRetrieves detailed information for the currently authenticated figma user.
Get dev resourcesRetrieves development resources (e.
Get file componentsRetrieves published components from a figma file, which must be a main file (not a branch) acting as a library.
Get file component setsRetrieves all published component sets from the specified figma main file (file key must not be for a branch).
Get file jsonGet figma file data with automatic simplification.
Get files in a projectFetches a list of files in a figma project, optionally including branch metadata.
Get file stylesRetrieves a list of published styles (like colors, text attributes, effects, and layout grids) from a specified main figma file (not a branch).
Get image fillsRetrieves temporary (14-day expiry) download urls for all image fills in a figma file; requires `imageref` from `paint` objects to map urls.
Get library analytics component action dataRetrieves component insertion and detachment analytics for a specified figma library, groupable by 'component' or 'team' and filterable by a date range (yyyy-mm-dd).
Get library analytics component usage dataRetrieves component usage analytics for a specified figma library file (identified by `file key`), with data groupable by 'component' or 'file'.
Get library analytics style action dataRetrieves style usage analytics (insertions, detachments) for a figma library, grouped by 'style' or 'team'; if providing a date range, ensure end date is not before start date.
Get library analytics style usage dataRetrieves style usage analytics for a figma library (specified by a valid `file key`), allowing data to be grouped by 'file' or 'style'.
Get library analytics variable action dataRetrieves weekly, paginated analytics data on variable insertions and detachments for a specified figma library (identified by `file key`), groupable by 'variable' or 'team', and filterable by an optional date range.
Get library analytics variable usage dataRetrieves paginated analytics data on variable usage from a specified figma library, grouped by 'file' or 'variable', for libraries with enabled analytics.
Get local variablesRetrieves all local/remote variables for a figma file/branch; crucial for obtaining mode-specific values which `/v1/files/{file key}/variables/published` omits.
Get paymentsRetrieves a user's payment information for a figma plugin, widget, or community file; the authenticated identity must own the resource.
Get projects in a teamRetrieves projects within a specified figma team that are visible to the authenticated user.
Get published variablesRetrieves variables published from a specified figma file; this api is available only to full members of enterprise organizations.
Get reactions for a commentRetrieves reactions for a specific comment in a figma file.
Get styleRetrieves detailed metadata for a specific style in figma using its unique style key.
Get team componentsRetrieves components published in a specific figma team's library; the team must have published components, otherwise an empty list is returned.
Get team component setsRetrieves a paginated list of published component sets (collections of reusable ui elements) from a specified figma team's library.
Get team stylesRetrieves a paginated list of published styles, such as colors or text attributes, from a specified figma team's library.
Get team webhooksRetrieves all webhooks registered for a specified figma team.
Get versions of a fileRetrieves the version history for a figma file or branch, as specified by its `file key`.
Get webhook requestsRetrieves a history of webhook requests for a specific figma webhook subscription; data is available for requests sent within the last seven days.
Render images of file nodesRenders specified nodes from a figma file as images (jpg, pdf, png, svg), returning a map of node ids to image urls (or `null` for failed nodes); images expire after 30 days and are capped at 32 megapixels (larger requests are scaled down).
Update a webhookUpdates an existing figma webhook, identified by `webhook id`, allowing modification of its event type, endpoint, passcode, status, or description.
Update dev resourcesUpdates the name and/or url of one or more existing figma dev resources, each identified by its unique `id`.

Connect Figma MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Figma tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Add a comment to Figma file with key ABC123 saying "Great job on this design!"')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Figma API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Figma Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Add a comment to the homepage design file about the new header layout.'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Figma actions with your Agent

Why Use Composio?

AI Native Figma Integration

  • Supports both Figma MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Figma data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Figma access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Figma
  • Scoped, least privilege access to Figma resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Figma with Composio?

No, you can get started immediately using Composio's built-in Figma app. For production, we recommend configuring your own OAuth credentials.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.