List files, inspect components, read comments, and export variables via Figma REST API
175+ deploysclaude mcp add figma --url https://datafaucet.dev/api/mcp/t/figma
Run this command in your terminal · most users connect in under 60s
GET endpoints
get_file
Fetch Figma file tree. Optional query params: 'ids' (comma-separated node IDs to subset), 'depth' (1-4 for partial tree), 'geometry=paths' (include vector paths). Returns document.children[] with pages, frames, components, each having id, name, type, absoluteBoundingBox, fills, strokes.
https://api.figma.com/v1/files/{file_key}
list_components
List published components in a file. Returns meta.components[] with key, name, description, containing_frame (name, nodeId, pageName), and created/updated timestamps. Use component key to fetch instances across files.
https://api.figma.com/v1/files/{file_key}/components
get_comments
Get all comments on a file. Optional: 'as_md=true' for Markdown formatting. Returns comments[] with id, message, created_at, resolved_at, user (handle, img_url), client_meta (node_id, node_offset for pin coordinates), and order_id for threading replies.
https://api.figma.com/v1/files/{file_key}/comments
get_variables
Fetch local variables (design tokens). Returns meta.variables{} keyed by ID, each with name, resolvedType (COLOR, FLOAT, STRING, BOOLEAN), valuesByMode{} mapping mode IDs to values, variableCollectionId, and scopes[] (ALL_SCOPES, CORNER_RADIUS, etc). Requires 'variables:read' scope.
https://api.figma.com/v1/files/{file_key}/variables/local
list_projects
List all projects in a team. Returns projects[] with id and name. Use project ID with GET /v1/projects/{id}/files to list files within. Requires team_id from your Figma team URL (figma.com/files/team/{team_id}).
https://api.figma.com/v1/teams/{team_id}/projects
get_file_versions
List version history of a file. Returns versions[] with id, created_at, label, description, and user who created it. Use version id with ?version= param on get_file to view historical state.
https://api.figma.com/v1/files/{file_key}/versions
export_images
Export nodes as rendered images. Returns images{} mapping node IDs to temporary download URLs (valid ~14 days). Supports PNG, JPG, SVG, and PDF. Scale 1-4x for raster formats. Use node IDs from get_file response.
https://api.figma.com/v1/images/{file_key}?ids={node_ids}&format={format}&scale={scale}
POST endpoints
post_comment
Add a comment to a file. Params: message (text, supports @mentions), client_meta.node_id (optional, pin to a specific frame/layer). Returns created comment with id, message, user, and created_at.
https://api.figma.com/v1/files/{file_key}/comments
Run this in your terminal:
claude mcp add figma https://datafaucet.dev/api/mcp/t/figma
Connect Figma to your AI agent in under 60 seconds. No account required.
{notion_token}) with your real credentialsNeed API keys? Try our free sandbox templates first to see MCP in action with zero setup.
Replace these placeholders with your real values before deploying:
{figma_token}API settings page{file_key}Your value{format}Your value{message}Your value{node_id}Resource identifier{node_ids}Resource identifier{scale}Your value{team_id}Resource identifierPreview:
GET https://api.figma.com/v1/files/{file_key} X-Figma-Token: {figma_token}
claude mcp add figma --url https://datafaucet.dev/api/mcp/t/figmaWhat your AI agent sees
I have access to 8 tools from Figma: get_file, list_components, get_comments, and 5 more.
“Fetch Figma file tree. Optional query params: 'ids' (comma-separated node IDs to subset), 'depth' (1-4 for partial tree), 'geometry=paths' (include vector paths). Returns document.children[] with pages, frames, components, each having id, name, type, absoluteBoundingBox, fills, strokes.”
Calling get_file... Done. Here are the results.
Try these prompts
“List all files in our team project”
Copy“Show me the components in the design system file”
Copy“Get all comments on the homepage redesign file”
CopyClick any prompt to copy, then paste into your AI client.