figma-mcp-server
Allows extraction and manipulation of Figma design information, including reading file data, styles, assets, variables, and creating or updating designs via a Figma plugin.
Click on "Install 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-serverget the color styles from this Figma link: https://figma.com/file/abc"
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
A Model Context Protocol (MCP) server for interacting with Figma designs. This server allows Claude AI to extract design information from Figma files and create or update designs using the Figma plugin.
Features
Readonly Mode: Extract design information from Figma files using a URL link
Write Mode: Create or update designs by establishing a connection with the Figma plugin
Comprehensive API: Access to a wide range of Figma features through a unified API
Unit Testing: Includes tests to verify server functionality
Integration Testing: Tests the flow from creating designs to reading them
Related MCP server: Claude Talk to Figma MCP
Modes
Readonly Mode
In readonly mode, the server can extract design information from a Figma file using a URL link. This includes:
File information
Node details
Styles (colors, text, effects)
Assets (images)
Variables
Component identification
Variant detection
Responsive design detection
Write Mode
In write mode, the server can create or update designs by establishing a connection with the Figma plugin. This includes:
Creating frames, shapes, text, and components
Creating component instances
Updating node properties
Setting fills, strokes, and effects
Deleting nodes
Smart element creation
Prerequisites
Node.js 18 or higher
A Figma account and access token
The Figma MCP plugin installed in the Figma desktop app (for write mode)
Installation
Clone the repository:
git clone https://github.com/your-username/figma-server.git
cd figma-serverInstall dependencies:
npm installBuild the server:
npm run buildConfiguration
The server requires a Figma access token to be set in the environment:
export FIGMA_ACCESS_TOKEN=your_figma_access_tokenUsage
Starting the Server
npm startDevelopment Mode
npm run devRunning Tests
# Run unit tests
npm test
# Run integration tests (TypeScript)
npm run test:integration
# Run integration tests (JavaScript)
npm run test:integration-js
# Run all tests
npm run test:all
# Test plugin connection
npm run test:plugin-connection-jsThe plugin connection test is a simple WebSocket server that listens for connections from the Figma plugin. It's useful for verifying that the plugin is running and can connect to the server.
The JavaScript versions of the tests are provided as alternatives that don't require TypeScript compilation, which can be more reliable in some environments.
Project Structure
figma-server/
├── src/ # Source code
│ ├── core/ # Core functionality
│ │ ├── config.ts # Configuration management
│ │ ├── logger.ts # Logging utilities
│ │ ├── types.ts # Common type definitions
│ │ └── utils.ts # Utility functions
│ ├── readonly/ # Readonly mode implementation
│ │ ├── api-client.ts # Figma REST API client
│ │ ├── design-manager.ts # Design information extraction
│ │ └── style-extractor.ts # Style extraction utilities
│ ├── write/ # Write mode implementation
│ │ ├── plugin-bridge.ts # WebSocket server for plugin communication
│ │ ├── design-creator.ts # Design creation utilities
│ │ └── component-utils.ts # Component utilities
│ ├── mcp/ # MCP server implementation
│ │ ├── server.ts # Main MCP server
│ │ ├── tools.ts # Tool definitions
│ │ └── handlers.ts # Tool handlers
│ ├── index.ts # Entry point
│ └── mode-manager.ts # Mode management (readonly/write)
├── tests/ # Test files
│ ├── unit/ # Unit tests
│ │ └── server.test.ts # Server tests
│ └── integration/ # Integration tests
│ └── design-flow.test.ts # Design flow tests
├── plugin/ # Figma plugin
│ ├── code.js # Plugin code
│ ├── manifest.json # Plugin manifest
│ └── ui.html # Plugin UI
└── docs/ # Documentation
└── usage.md # Usage instructions for Claude AIDocumentation
For detailed usage instructions, see the usage documentation.
License
ISC
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables Claude Desktop and other AI tools to interact directly with Figma, allowing for powerful AI-assisted design capabilities through natural language commands.Last updated92408641MIT
- Alicense-qualityDmaintenanceEnables AI assistants like Claude Desktop to interact directly with Figma, allowing natural language commands to create, modify, and analyze designs including shapes, text, components, and layouts in real-time.Last updatedMIT
- Alicense-qualityBmaintenanceEnables Claude to read and manipulate Figma documents in real-time through 62 operations including creating shapes, modifying styles, managing components, and exporting assets via a WebSocket bridge to a Figma plugin.Last updated6266MIT
- Alicense-qualityDmaintenanceEnables Claude to interact directly with Figma Desktop for creating UI components, managing design tokens, and auditing files through natural language. It establishes a live connection between the AI and the Figma API via a local server and companion plugin.Last updated28,898MIT
Related MCP Connectors
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Read, edit, publish, and preview your pepita websites from Claude.
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/karthiks3000/figma-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server