Figma MCP Server
The Figma MCP Server allows you to analyze Figma file structures and extract node hierarchies with the following capabilities:
Analyze Figma files: Extract nodes and their hierarchies from a specific Figma file URL
Configurable depth: Limit the node tree depth using the optional
depthparameterREST API support: Access endpoints for health checks (
/health), specifications (/openapi.json), and file analysis (/analyze)MCP Protocol integration: Use the server directly via the Model Context Protocol for integration with large language models (LLMs)
Server information: Retrieve the server's MCP manifest via
/mcp.jsonDocker support: Deploy in a containerized environment for scalability
Allows analyzing Figma file structures by extracting node hierarchies through the Figma API
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Figma MCP Server analyze the component hierarchy in this Figma file"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Figma MCP Server
An MCP (Model Context Protocol) server for analyzing Figma file structures.
Features
Analyze Figma files to extract node hierarchies
Supports both REST API and MCP protocol
Configurable node tree depth
Related MCP server: Figma MCP
Prerequisites
Node.js 16+
npm or yarn
A Figma API key
Installation
From npm
npm install -g figma-mcp-serverFrom source
git clone https://github.com/yourusername/mcp-figma.git
cd mcp-figma
npm install
npm run buildConfiguration
Copy the example environment file and add your Figma API key:
cp .env.example .envThen edit the .env file and add your Figma API key:
FIGMA_API_KEY=your_figma_api_key_hereYou can get a Figma API key from your Figma account settings: https://www.figma.com/developers/api#access-tokens
Usage
As a REST API Server
Start the server:
npm startThis will start an Express server on port 3000 (or the port specified in your .env file).
API Endpoints
GET /health- Health check endpointGET /openapi.json- OpenAPI specificationGET /mcp.json- MCP manifestPOST /analyze- Analyze a Figma file
Example request to the analyze endpoint:
curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{"figmaUrl": "https://www.figma.com/file/FILE_ID/PROJECT_NAME?node-id=NODE_ID", "depth": 2}'As an MCP Server
The server can be used directly by an LLM through the MCP protocol:
figma-mcp-server --cliOr if running from source:
npm run start -- --cliClient Example
A simple client example is included. To use it:
node client-example.js https://www.figma.com/file/FILE_ID/PROJECT_NAME?node-id=NODE_ID 2The last parameter is the optional depth parameter.
Development
Running in Development Mode
npm run devTesting
npm testDocker
A Dockerfile is provided for containerized deployment:
docker build -t figma-mcp-server .
docker run -p 3000:3000 --env-file .env figma-mcp-serverLicense
MIT
Available Tools
1 toolanalyze_figma_fileC
Analyze a Figma file structure to understand its nodes and hierarchy
Inputs: figmaUrl (required), depth.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct by default, as there are no other tools to confuse it with.
The single tool follows a clear verb_noun pattern (analyze_figma_file), and with only one tool, consistency is inherently perfect. There are no other tools to deviate from this pattern.
A single tool is too few for a server named 'Figma MCP Server,' which suggests a broader domain like Figma file management. This minimal set likely leaves significant gaps in functionality, such as creating, updating, or listing files, making it feel incomplete for the implied scope.
The tool surface is severely incomplete for a Figma server. It only provides analysis of file structure, missing essential operations like retrieving files, creating or editing designs, managing comments, or accessing other Figma resources, which are core to the domain.
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Official Fibery MCP server: query and update your workspace from any AI client via OAuth.
Deterministic Figma to Elementor, Gutenberg, Oxygen, Etch and HTML layouts for AI assistants.
smart-data-extractor MCP server on Cloudflare Workers · REST + MCP JSON-RPC · free tier
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Figma designs through the Figma API, allowing users to export images in multiple formats, extract style data and CSS, analyze design elements, and retrieve SVG code from Figma files. Supports batch operations and comprehensive design element analysis including images, vectors, and components.714 npm11MIT
- AlicenseAqualityNot gradedmaintenanceEnables interaction with Figma files through intelligent API access, providing navigation, asset extraction, and design token retrieval with 95% token-optimized compact tree output format.151MIT
- AlicenseNot gradedqualityDmaintenanceEnables developers to extract and organize Figma design files, including complete node data (tree structure and images) for AI understanding and code generation.23 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server that wraps the Figma REST API, providing tools like get file metadata, list frames, and export node image URLs for AI SDLC agents.-