FigCraft MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
FigCraft MCP Server
Model Context Protocol (MCP) server for FigCraft — an open-source interface design and prototyping tool (Figma alternative).
Enables AI agents (OpenCode, Claude, Cursor, Antigravity, Zed, Cline) to inspect, design, prototype, and export vectors and layouts in FigCraft.
Features
Dual-Mode Operation:
Attached Mode: Connects to an active FigCraft desktop session on
127.0.0.1:7979.Headless Mode: Runs headless via the built-in FigCraft engine when the desktop app is closed.
Smart Auto-Detection: Automatically detects if the FigCraft desktop app is listening on the control port and selects the appropriate mode.
Full MCP Protocol Support:
19 Tools: Layer creation, autolayout, property inspection, command catalog, export, screenshots, and undo/redo.
Resources:
figcraft://document,figcraft://node/{id},figcraft://command/{id},figcraft://comments.Prompts:
mobile_screen,design_system,landing_page,prototype_flow, etc.
Confined Workspace Access: Defaults to confining file access to
~/dev/designfor safety.
Related MCP server: figma-mcp
Quick Start
Run with npx (No install needed)
npx figcraft-mcpOr Install Globally
npm install -g figcraft-mcp
# or
pnpm add -g figcraft-mcpPrerequisites
FigCraft installed on your system (
figcraftandfigcraft-cli).Arch Linux:
yay -S figcraft-bin
Client Configuration
1. OpenCode (~/.config/opencode/opencode.json)
{
"mcp": {
"servers": {
"figcraft": {
"type": "local",
"command": ["npx", "-y", "figcraft-mcp"]
}
}
}
}Or point to a local clone:
{
"mcp": {
"servers": {
"figcraft": {
"type": "local",
"command": ["node", "/home/stuckwyu/dev/code/figcraft-mcp/dist/index.js"]
}
}
}
}2. Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"figcraft": {
"command": "npx",
"args": ["-y", "figcraft-mcp"]
}
}
}3. Cursor (.cursor/mcp.json)
{
"mcpServers": {
"figcraft": {
"command": "npx",
"args": ["-y", "figcraft-mcp"]
}
}
}4. Antigravity / Gemini CLI (~/.gemini/config/mcp_config.json)
{
"mcpServers": {
"figcraft": {
"command": "node",
"args": ["/home/stuckwyu/dev/code/figcraft-mcp/dist/index.js"],
"timeout": 300
}
}
}Available Tools
Tool | Description |
| Create layers (frames, rectangles, text, vector paths, components) |
| Edit layout, fills, strokes, fonts, autolayout, constraints |
| Read the full layer tree and page structure |
| Inspect properties and bounds of a specific layer |
| Select layers on canvas |
| Search 400+ FigCraft menu and UI commands |
| Execute an action or command by ID |
| Run multiple commands atomically in one undo step |
| Step backward or forward through document history |
| Render high-resolution PNG snapshots of frames or pages |
| Export layers to PNG, SVG, JPG, WebP, PDF, or .fig |
| Open or import |
| Save the active design file |
| Check UI view state and panels |
| Simulate canvas inputs when semantic commands are unsuitable |
| Subscribe to cursor and comment updates |
CLI Options & Environment Variables
Usage:
figcraft-mcp [options]
Options:
-p, --port <number> FigCraft desktop app control port (default: 7979 or FIGCRAFT_PORT)
--headless Force headless mode (in-process engine session; no window)
--attach Force attach mode (fail if FigCraft app is not running)
--root <path> Confine automation read/write path (default: ~/dev/design)
--timeout <seconds> RPC timeout in seconds (default: 300)
--cli <path> Path to figcraft-cli binary
-v, --verbose Print debug logs to stderr
-h, --help Show help message
-V, --version Show versionEnvironment Variables
Variable | Description | Default |
| Port to attach to |
|
| Allowed root path for file read/write |
|
| Explicit path to | Auto-detected |
| RPC timeout in seconds |
|
Development
# Clone
git clone https://github.com/stuck-w-yu/figcraft-mcp.git
cd figcraft-mcp
# Install
pnpm install
# Build
pnpm build
# Run locally
node dist/index.jsLicense
MIT © Wahyu Firmansyah
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Design canvas for agents: create, edit, render and export Figma-shaped designs over MCP.
Give your AI agents a design superpower. Generate, edit, and publish publication-grade decks, reports, landing pages, resumes, and marketing visuals directly within your agent workflow. Delivering frontier-level design quality at 3× the speed and 53× lower cost -from conversational prompt to live link or vector PDF in minutes.
Agent-Native design tool - create and edit visual designs with agent assistance
The Figma MCP server brings Figma design context directly into your AI workflow.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Figma to create, read, and manage designs using the Figma REST API and a dedicated plugin. It supports advanced features like UI generation from text, webpage reconstruction in Figma, and design token synchronization with codebases.20MIT
- FlicenseBqualityDmaintenanceEnables AI agents to read, inspect, and export Figma designs programmatically. Provides tools for listing components, styles, and exporting assets in various formats.51-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, inspect, and edit Figma files through a Model Context Protocol server with 107 tools, visual snapshots, fidelity tools, and optional REST API access.33 npmMIT
- AlicenseCqualityCmaintenanceEnables AI coding assistants to create and edit FigCraft design files, automatically open them in the FigCraft GUI, and generate responsive UI/UX live on screen with Figma-grade auto-layout, anti-overflow text constraints, luxury theming, and built-in layout auditing. It also supports batch operations, screenshots, document inspection, and saving canvases back to disk.301MIT