MCP.so
Sign In
Servers

Figma MCP Server

@moonray

An mcp server that efificiently generates a node tree and related metadata for a figma node.

Overview

What is Figma MCP Server?

An MCP (Model Context Protocol) server for analyzing Figma file structures. It extracts node hierarchies from Figma files and can be used both as a REST API server and as an MCP server for LLM integration. It is intended for developers working with Figma design files and AI‑assisted workflows.

How to use Figma MCP Server?

Install the package globally via npm (npm install -g figma-mcp-server) or build from source. Configure your Figma API key in a .env file (variable FIGMA_API_KEY). Start the REST API with npm start or run the MCP CLI with figma-mcp-server --cli. Send analysis requests to the POST /analyze endpoint with a Figma URL and optional depth parameter.

Key features of Figma MCP Server

  • Analyze Figma files to extract node hierarchies
  • Supports both REST API and MCP protocol
  • Configurable node tree depth
  • Simple configuration via .env file
  • Docker support for containerized deployment

Use cases of Figma MCP Server

  • Automating extraction of Figma component trees for design documentation
  • Enabling an LLM to query and reason about Figma file structure
  • Building design review tools that inspect node hierarchies
  • Integrating Figma analysis into CI/CD pipelines for design‑system checks

FAQ from Figma MCP Server

What prerequisites are needed to run the server?

Node.js 16+ and npm or yarn are required. You also need a valid Figma API key.

How do I obtain a Figma API key?

You can generate an API key from your Figma account settings at https://www.figma.com/developers/api#access-tokens.

Can the server be used as a standalone REST API?

Yes. Run npm start to start an Express server on port 3000 (or a custom port set in .env). Use the POST /analyze endpoint to analyze files.

What does the depth parameter do in an analysis request?

It controls how many levels of the node tree are returned. If omitted, the server uses a default depth.

Is Docker deployment supported?

Yes. A Dockerfile is provided. Build the image with docker build -t figma-mcp-server . and run it with docker run -p 3000:3000 --env-file .env figma-mcp-server.

Tags

More from Media & Design