Overview
This guide covers all installation methods for Talk to Figma MCP, including automated setup, manual configuration, and platform-specific instructions.System Requirements
Required
- Bun (recommended) or Node.js v18+
- Figma Desktop App or Figma in Browser
- Cursor or Claude Code with MCP support
- Network Access: Localhost WebSocket (port 3055)
Platform Support
macOS
Linux
Windows
Installation Methods
- Automated Setup (Recommended)
- Manual Setup
- NPM Package (Published)
Install Bun
Clone Repository
Run Setup Script
- Install all dependencies with
bun install - Create
.cursor/mcp.jsonfor Cursor - Create
.mcp.jsonfor Claude Code
MCP Configuration
Cursor Configuration
Create or edit~/.cursor/mcp.json (or .cursor/mcp.json in your project):
Claude Code Configuration
You can configure Claude Code in two ways:Option 1: Manual File Edit
Create or edit.mcp.json in your project root:
Option 2: CLI Command
Use the Claude Code CLI:Configuration Reference
bunx for published package or bun for local development.["cursor-talk-to-figma-mcp@latest"]. For local: ["/path/to/server.ts"].Start WebSocket Server
The WebSocket relay must be running for the MCP server to communicate with Figma.Basic Usage
In the repository directory:Custom Port
To use a different port, set thePORT environment variable:
Development Mode
For development with auto-reload:bun socket in a separate terminal.
Figma Plugin Installation
Community Plugin (Recommended)
Visit Plugin Page
Install Plugin
Run Plugin
Local Development Plugin
For plugin development or customization:Open Figma Desktop
Access Development Menu
Link Existing Plugin
Select Manifest
Plugin Available
code.js file is used directly as the runtime artifact. Edit code.js and ui.html directly in the src/cursor_mcp_plugin/ directory.Plugin Files
Platform-Specific Setup
Windows + WSL
Windows users with WSL need an additional configuration step:Install Bun in PowerShell
Modify socket.ts
src/socket.ts and uncomment the hostname line:Start WebSocket Server
macOS
No additional configuration needed. Follow the standard installation steps.Linux
No additional configuration needed. Follow the standard installation steps.Verification
Verify your installation is working:Check WebSocket Server
Verify MCP Configuration
Test Plugin Connection
- Open Figma and run the plugin
- In your AI agent, use the
join_channeltool - Check terminal output for:
Test Basic Command
Troubleshooting
'bun: command not found'
'bun: command not found'
- Restart your terminal after installing Bun
- Verify installation:
bun --version - Add Bun to PATH manually:
.bashrc, .zshrc, or .profilePort 3055 already in use
Port 3055 already in use
- Find the process using port 3055:
- Kill the process or use a different port:
WebSocket connection failed
WebSocket connection failed
- WebSocket server not running → Check
bun socketis active - Firewall blocking port 3055 → Allow localhost connections
- WSL without hostname config → Set
hostname: "0.0.0.0" - Wrong channel name → Ensure MCP server and plugin use same channel
- Check server logs in terminal running
bun socket - Open browser console: Plugins → Development → Open Console
- Look for WebSocket connection errors
MCP server not showing in Cursor/Claude
MCP server not showing in Cursor/Claude
-
Verify configuration file location:
- Cursor:
~/.cursor/mcp.jsonor.cursor/mcp.json - Claude:
.mcp.jsonin project root
- Cursor:
- Check JSON syntax is valid
- For local development, use absolute paths
- Restart your AI agent
Build errors
Build errors
- Clear dependencies and reinstall:
- Verify Bun version:
- Try building manually:
Plugin not appearing in Figma
Plugin not appearing in Figma
- For community plugin: Check you’re logged into Figma
-
For local plugin:
- Verify you selected the correct
manifest.jsonfile - Check Plugins → Development menu
- Try relinking the plugin
- Verify you selected the correct
-
Check plugin permissions in
manifest.json:
Advanced Configuration
Custom WebSocket URL
The MCP server supports a custom WebSocket URL via command-line argument:ws://localhost:3055
Environment Variables
development for additional loggingMultiple Instances
Run multiple independent instances using different channels:- Start WebSocket server once:
bun socket - Configure multiple MCP servers with unique names
- Join different channels for each instance
join_channel with different channel names: "project1", "project2", etc.
Development Commands
For contributors and developers:Uninstallation
To remove Talk to Figma MCP:Stop WebSocket Server
Ctrl+C in the terminal running bun socketRemove MCP Configuration
~/.cursor/mcp.json(Cursor).mcp.json(Claude Code)
Remove Figma Plugin
Delete Repository
Next Steps
Quick Start
API Reference
Best Practices
GitHub Repository
Get Help
If you encounter issues during installation:- Review the Quick Start guide for a simplified setup
- Check the Troubleshooting section above
- Open an issue on GitHub
- Watch the video tutorial