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
Prerequisites
- Node.js 16+
- npm or yarn
- A Figma API key
Installation
From npm
npm install -g figma-mcp-server
From source
git clone https://github.com/yourusername/mcp-figma.git
cd mcp-figma
npm install
npm run build
Configuration
Copy the example environment file and add your Figma API key:
cp .env.example .env
Then edit the .env file and add your Figma API key:
FIGMA_API_KEY=your_figma_api_key_here
You 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 start
This 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 --cli
Or if running from source:
npm run start -- --cli
Client 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 2
The last parameter is the optional depth parameter.
Development
Running in Development Mode
npm run dev
Testing
npm test
Docker
A Dockerfile is provided for containerized deployment:
docker build -t figma-mcp-server .
docker run -p 3000:3000 --env-file .env figma-mcp-server
License
MIT
Figma MCP Server
Project Details
- moonray/mcp-figma
- MIT License
- Last Updated: 3/3/2025
Recomended MCP Servers
Config files for my GitHub profile.
This read-only MCP Server allows you to connect to Salesforce Pardot data from Claude Desktop through CData JDBC...
A Model Context Protocol server for Google Workspace integration (Gmail and Calendar)
Azure API Management as AI Gateway to Remote MCP servers.
A Model Control Protocol (MCP) server that allows Claude to communicate with locally running LLM models via LM...
MCP server for semantic search with Qdrant vector database
mcp-1panel is an implementation of the Model Context Protocol (MCP) server for 1Panel.
Debug, evaluate, and monitor your LLM applications, RAG systems, and agentic workflows with comprehensive tracing, automated evaluations, and...
Official Magic UI MCP server.
Collection of apple-native tools for the model context protocol.
An example of using express-mcp-handler to serve an mcp serve via http





