
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@imazhar101/mcp-figma-server
Advanced tools
A Model Context Protocol (MCP) server that provides tools for interacting with the Figma API. This server enables you to retrieve files, components, styles, comments, and more from your Figma workspace.
# Install globally
npm install -g @imazhar101/mcp-figma-server
# Or run directly with npx
npx @imazhar101/mcp-figma-server
# From project root
npm install
npm run build
# The server will be available at:
./dist/servers/figma/src/index.js
To use this server with Cline (VS Code extension), add the following to your Cline MCP settings:
File Location:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Configuration:
{
"mcpServers": {
"figma-integration": {
"command": "npx",
"args": ["@imazhar101/mcp-figma-server"],
"env": {
"FIGMA_ACCESS_TOKEN": "your-figma-token"
},
"disabled": false,
"alwaysAllow": ["get_file", "list_files", "get_comments"]
}
}
}
Clone or download this server
Install dependencies:
npm install
Build the server:
npm run build
Get your Figma Personal Access Token:
Set the environment variable:
export FIGMA_ACCESS_TOKEN="your_figma_token_here"
Add this server to your MCP settings:
{
"mcpServers": {
"figma": {
"command": "node",
"args": ["/path/to/figma-server/build/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_figma_token_here"
}
}
}
}
{
"name": "get_file",
"arguments": {
"file_key": "ABC123DEF456"
}
}
{
"name": "get_images",
"arguments": {
"file_key": "ABC123DEF456",
"ids": "1:2,1:3",
"format": "png",
"scale": 2
}
}
{
"name": "post_comment",
"arguments": {
"file_key": "ABC123DEF456",
"message": "This looks great!",
"client_meta": {
"x": 100,
"y": 200,
"node_id": "1:2"
}
}
}
{
"name": "get_team_components",
"arguments": {
"team_id": "123456789",
"page_size": 50
}
}
The file key is found in the Figma URL:
https://www.figma.com/file/ABC123DEF456/My-Design-File
The file key is ABC123DEF456
node-id=
https://www.figma.com/files/team/123456789/
This server implements the Figma REST API v1. For detailed information about request/response formats, see the official Figma API documentation.
The server provides detailed error messages for common issues:
npm run build
npm run watch
npm run inspector
This project is licensed under the MIT License.
FAQs
Figma MCP server for design file management and API integration
The npm package @imazhar101/mcp-figma-server receives a total of 7 weekly downloads. As such, @imazhar101/mcp-figma-server popularity was classified as not popular.
We found that @imazhar101/mcp-figma-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.