🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@standardbeagle/figma-query

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@standardbeagle/figma-query

Token-efficient Figma MCP server with image export, query DSL, and design token support

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

figma-query

Token-efficient Figma MCP server with image export, query DSL, and design token support.

Installation

npm

npm install -g @standardbeagle/figma-query

Or use with npx:

npx @standardbeagle/figma-query

Python (uvx/pipx)

# Using uvx (recommended)
uvx figma-query

# Using pipx
pipx install figma-query

# Using pip
pip install figma-query

Configuration

Environment Variables

  • FIGMA_ACCESS_TOKEN - Your Figma personal access token (required)
  • FIGMA_EXPORT_DIR - Directory for file exports (default: ./figma-export)

Claude Desktop / MCP Client

Add to your MCP configuration:

{
  "mcpServers": {
    "figma-query": {
      "command": "npx",
      "args": ["@standardbeagle/figma-query"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "figma-query": {
      "command": "figma-query",
      "env": {
        "FIGMA_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Using uvx (Python):

{
  "mcpServers": {
    "figma-query": {
      "command": "uvx",
      "args": ["figma-query"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Tools

Export Tools

ToolDescription
sync_fileExport entire file to nested folders (includes assets by default)
export_assetsExport images/icons for specific nodes
export_tokensExport design tokens to CSS/JSON/Tailwind
download_imageDownload images by ref ID or render nodes as images

Query Tools

ToolDescription
queryQuery nodes with JSON DSL and data shaping
searchFull-text search across names, text, properties
get_treeGet file structure as ASCII tree with node IDs
list_componentsList all components with usage stats
list_stylesList all styles (color, text, effect, grid)

Detail Tools

ToolDescription
get_nodeGet full details for a specific node
get_cssExtract CSS properties for node(s)
get_tokensGet design token references and resolved values

Other Tools

ToolDescription
wireframeGenerate annotated wireframe with node IDs
diffCompare exports or file versions
infoHelp and status

Projections

Use projections in the select array to get specific property groups:

ProjectionProperties
@structureid, name, type, visible
@boundsx, y, width, height
@cssfills, strokes, effects, cornerRadius, opacity
@layoutlayoutMode, padding, itemSpacing, constraints
@typographyfontFamily, fontSize, fontWeight, lineHeight
@tokensboundVariables
@imagesimageRefs (from fills/strokes/backgrounds), exportSettings
@allAll properties

Examples

Query all buttons

{
  "file_key": "abc123",
  "q": {
    "from": ["COMPONENT"],
    "where": { "name": { "$match": "Button*" } },
    "select": ["@structure", "@css"]
  }
}

Get images from a node

{
  "file_key": "abc123",
  "q": {
    "from": ["FRAME"],
    "select": ["@structure", "@images"]
  }
}

Download image fills

{
  "file_key": "abc123",
  "image_refs": ["ref123", "ref456"],
  "output_dir": "./images"
}

License

MIT

Keywords

figma

FAQs

Package last updated on 09 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts