figma-slides-mcp
Enables AI agents to create and edit Figma Slides in real-time, with built-in renderers for D3 charts, Rough.js sketches, and Satori layouts.
README
figma-slides-mcp
MCP server that lets AI create and edit Figma Slides — with built-in D3, Rough.js, and Satori renderers for charts, diagrams, and custom graphics.
What this is
An MCP server that gives AI agents (Claude, Cursor, etc.) direct control over Figma Slides. The AI can create slides, add text, draw shapes, render D3 charts, place images, and screenshot its work — all in real-time, in your actual Figma file.
This is not a design-to-code tool. It goes the other direction: AI → Figma. Your agent designs slides for you.
How it works
Your AI Agent ←—stdio—→ MCP Server ←—WebSocket—→ Figma Plugin ←—API—→ Slides Canvas
Three pieces:
- MCP Server — Node.js process that exposes tools over stdio. Your AI client spawns it.
- Figma Plugin — Runs inside Figma, executes commands on the canvas. Connects via WebSocket.
- Design Skill (optional) — Teaches the AI how to design well: layout, typography, color, D3 patterns.
Quick start
Claude Code (recommended)
Step 1 — Add the marketplace and install:
/plugin marketplace add luan007/figma-slides-mcp
/plugin install figma-slides-mcp@figma-slides-mcp
This clones the repo, loads the MCP server and design skill automatically.
Step 2 — Load the Figma plugin:
- Open a Figma Slides file
- Plugins → Development → Import plugin from manifest...
- Navigate to the cloned plugin directory — check the plugin cache:
Find~/.claude/plugins/cache/figma-slides-mcp/plugin/manifest.jsoninside and select it. - Run the plugin — green dot = connected
You only import the manifest once. After that it's in your recent plugins.
Step 3 — Go:
Tell Claude: "Start a Figma Slides session"
Other MCP clients (Cursor, Windsurf, etc.)
git clone https://github.com/luan007/figma-slides-mcp.git
cd figma-slides-mcp && npm install
Add to your MCP config:
{
"mcpServers": {
"figma-slides": {
"command": "npx",
"args": ["-y", "figma-slides-mcp"]
}
}
}
Then import plugin/manifest.json into Figma (same as Step 2 above, but from your clone directory).
Graphics renderers
The Figma plugin bundles full graphics libraries. Your AI can use them to render complex visuals directly onto slides.
| Renderer | What it does | Text stays editable? |
|---|---|---|
| D3 v7 | Charts, data viz, diagrams, tables | Yes |
| Rough.js | Hand-drawn / sketchy style graphics | Yes |
| Satori | HTML/CSS → SVG (flexbox layouts) | No (becomes paths) |
| SVG import | Icons, logos, custom vectors | Depends |
The AI writes a D3 script, the plugin runs it in a sandboxed iframe, extracts the SVG, and converts it to editable Figma nodes. Text elements become real Figma text — you can edit them after.
What the AI can do
- Create, duplicate, delete, reorder slides
- Add any shape: rectangles, ellipses, lines, frames, text
- Style anything: fills, strokes, effects, opacity, corner radius
- Set text with per-character styling (font, size, color, spacing)
- Render D3 charts, Rough.js sketches, Satori layouts
- Place images from URL
- Screenshot slides to verify its own work
- Batch multiple operations in one call
- Search nodes, export to PNG/SVG/PDF
Design skill
The bundled skill at skills/figma-slides-mcp/SKILL.md teaches the AI:
- Layout planning (coordinate grids, column systems)
- Typography hierarchy (font sizes, spacing, weight)
- Visual design theory (when to use charts vs text, color systems)
- D3 patterns (tables, flows, comparisons, Gantt charts, donuts)
- The screenshot-verify-fix loop
- API gotchas (gradient transforms, fill opacity, batch limits)
It's optional but makes a big difference. Without it, the AI tends to dump text on slides. With it, the AI thinks in layers and designs visually.
Claude Code plugin install includes the skill automatically. For manual setup, copy it to ~/.claude/skills/figma-slides-mcp/.
Limitations & quirks
This is an early-stage project. It works, but has edges.
- Single session only. One MCP server → one Figma file at a time. No multi-document support yet.
- Port conflict. If another instance is running on port 3055, it fails. Set
FIGMA_WS_PORTto use a different port. - Plugin must be running. The Figma plugin needs to be open and connected. If you close it, the MCP server can't reach Figma.
- Figma Slides only. Doesn't work with regular Figma Design files. Must be a Slides file.
- Tables are limited.
createTableworks but is Slides-only and can be finicky. - Video is broken.
createVideoAsyncreturns empty. Figma's API limitation. - Satori text is paths. Text rendered through Satori becomes vector paths — not editable as text in Figma. Use D3 instead when text editability matters.
- No undo across sessions. The AI's changes are real Figma operations. You can Cmd+Z in Figma, but only within the current session.
- Dev plugin, not published. The Figma plugin is loaded from local manifest, not the Figma Community. You need to import it manually once.
Under construction
- [ ] Multi-session support (multiple Figma files)
- [ ] Published Figma Community plugin (no manual manifest import)
- [ ] Slide templates / presets
- [ ] Better image search integration
- [ ] Animation / transition authoring
Environment variables
| Variable | Default | Description |
|---|---|---|
FIGMA_WS_PORT |
3055 |
WebSocket port for plugin connection |
Project structure
figma-slides-mcp/
├── server/ # MCP server (Node.js, no build)
│ ├── index.js # Entry point (stdio transport)
│ ├── bridge.js # WebSocket bridge to plugin
│ ├── tools.js # All MCP tool definitions
│ └── utils.js # Helpers
├── plugin/ # Figma plugin (no build)
│ ├── manifest.json # Import this in Figma
│ ├── code.js # Plugin logic
│ └── ui.html # UI panel + D3/Rough.js/Satori loaders
├── skills/ # AI design skill
│ └── figma-slides-mcp/
│ └── SKILL.md
├── .claude-plugin/ # Claude Code plugin manifest
│ └── plugin.json
├── .mcp.json # MCP server config (auto-loaded by plugin system)
└── test/
Zero TypeScript, zero bundlers, zero build steps. Plain JS all the way down.
For AI agents
See AGENT-INSTALL.md for detailed setup instructions, troubleshooting, and the full tool reference.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。