figma-mcp
Provides tools for interacting with the Figma API, enabling access to file structures, nodes, versions, exports, component management, design tokens and variables, team projects, and design systems.
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-mcpshow me the component sets in my design system"
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
Model Context Protocol integration for the Figma API. Brings Figma files, components, and design tokens into any MCP-compatible AI application.
Features
File Operations: Get file structure, list files, export files
Component Management: List components, get component details, search components
Tokens & Variables: Access design tokens and variables
Team & Project Tools: List teams, projects, and collaborate
Design System Access: Retrieve design system information
Real-time Capabilities: Watch file changes, get version history
Related MCP server: Figma MCP Server
Installation
From PyPI
pip install figma-mcpFrom Source
git clone https://github.com/yourusername/figma-mcp.git
cd figma-mcp
pip install -e .Development Installation
pip install -e ".[dev]"Configuration
1. Get Your Figma API Token
Go to Figma Settings → Account
Create a personal access token
Save it securely
2. Configure for Hermes
Add to ~/.hermes/config.yaml:
mcp_servers:
figma:
command: "python"
args: ["-m", "figma_mcp"]
env:
FIGMA_API_TOKEN: "${FIGMA_API_TOKEN}"
timeout: 120
connect_timeout: 303. Set Environment Variable
Create ~/.hermes/.env:
FIGMA_API_TOKEN=your_personal_access_token_here4. Register with Hermes
hermes mcp add figma --command python --args -m figma_mcp
hermes mcp test figma
hermes mcp listAvailable Tools
Files
get_file - Retrieve full file structure and metadata
get_file_nodes - Get specific nodes from a file
list_files - List files in a team
get_file_versions - Get version history of a file
export_node - Export node as PNG/SVG/PDF
Components
list_components - List all components in a file
get_component - Get component details
search_components - Search components by name
get_component_sets - Get component sets/variants
Variables & Tokens
list_variables - List design variables
get_variable - Get variable details
list_local_variables - List variables in a file
Team & Projects
list_teams - List accessible teams
list_projects - List projects in a team
list_team_components - List components across team
Design Systems
get_design_system - Retrieve design system info
list_design_system_files - List design system files
Usage Examples
With Hermes CLI
# List all Figma files in your workspace
hermes ask "What Figma files do I have? Use the figma tools."
# Get component details
hermes ask "Show me all button components from my design system using get_component_sets"
# Export a design
hermes ask "Export the 'HomeScreen' node from file abc123xyz as PNG"Programmatic Use
from figma_mcp import FigmaClient
client = FigmaClient(api_token="your_token")
# Get file
file_data = await client.get_file("file_id")
print(file_data["name"])
# List components
components = await client.list_components("file_id")
for comp in components:
print(f"Component: {comp['name']}")API Reference
Authentication
All requests require a valid FIGMA_API_TOKEN environment variable.
Tool Inputs
Each tool accepts a JSON object with parameters. Example:
{
"file_key": "abc123xyz",
"ids": ["1:2", "3:4"]
}Tool Outputs
All tools return JSON with:
{
"result": "success data",
"error": null
}Or on error:
{
"result": null,
"error": "Error message"
}Development
Run Tests
pytest tests/ -vType Checking
mypy figma_mcp/Format Code
black figma_mcp/
isort figma_mcp/Lint
ruff check figma_mcp/Architecture
figma_mcp/
├── server.py # MCP Server entry point
├── client.py # Figma API client
├── tools/
│ ├── files.py # File operations
│ ├── components.py # Component tools
│ ├── variables.py # Variables & tokens
│ ├── teams.py # Team tools
│ └── design_systems.py
├── models.py # Pydantic models
├── errors.py # Custom exceptions
└── utils.py # UtilitiesTroubleshooting
"MCP server is not connected"
hermes mcp test figmaCheck the error output. Most common issues:
Invalid token: Verify
FIGMA_API_TOKENis set correctlyNetwork error: Ensure you can reach
api.figma.comVersion mismatch: Update MCP SDK:
pip install --upgrade mcp
"Tool call timed out"
Increase timeout in config:
mcp_servers:
figma:
timeout: 300
connect_timeout: 60"Permission denied"
Your token may lack scopes. Regenerate with all permissions enabled.
Limitations
Personal access tokens can't access private/shared files outside your workspace
Some endpoints require specific team/project permissions
Real-time subscriptions not currently supported (batch polling instead)
Roadmap
Real-time file change subscriptions
Webhook support for file updates
Batch operations
File upload/creation
Prototype and interaction data
Constraint and interaction details
Plugin API integration
Contributing
Contributions are encouraged! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-tool)Add tests for your changes
Submit a pull request
License
MIT License - see LICENSE file for details
Related Resources
Support
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/jozrftamson/figma-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server