
Penpot 的 MCP 服务器——通过模型上下文协议连接 AI 助手到 Penpot 设计平台
概览
一个模型上下文协议(MCP)服务器,为 Penpot——一个开源设计工具——提供完整的操作能力。该服务器使 AI 助手能够以程序方式创建、修改和管理 Penpot 设计,类似于 Figma 插件的功能。 示例聊天界面,完全通过与AI助手的自然对话创建,使用该MCP服务器。完整对话生成该设计,详见示例7:聊天界面。 上面的截图展示了如何用自然语言描述设计,AI助手会利用MCP服务器的功能在Penpot中自动创建设计——处理布局、样式、组件和交互。
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,为 Penpot——一个开源设计工具——提供完整的操作能力。该服务器使 AI 助手能够以程序方式创建、修改和管理 Penpot 设计,类似于 Figma 插件的功能。
** 🐳 多架构 Docker 镜像可用:** linux/amd64, linux/arm64
🎬 看它实际行动
_Example聊天界面,完全通过与AI助手的自然对话创建,使用该MCP服务器。详见示例7:聊天界面,了解生成该design._的完整对话
上面的截图展示了如何用自然语言描述设计,AI助手会利用MCP服务器的功能在Penpot中自动创建设计——处理布局、样式、组件和交互。
特色
🎨 完全设计操作
- 创建与管理文件:创建新设计文件,列出项目,管理文件元数据
- 形状操作:创建矩形、圆形、框架、路径、文本和SVG图形
- 修改设计:更新形状属性、移动对象、调整大小、旋转和样式
- 页面管理:添加、删除和组织文件中的页面
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Penpot MCP Server
A Model Context Protocol (MCP) server that provides full manipulation capabilities for Penpot - the open-source design tool. This server enables AI assistants to create, modify, and manage Penpot designs programmatically, similar to Figma plugin capabilities.
🐳 Multi-architecture Docker images available: linux/amd64, linux/arm64
🎬 See It In Action
Example chat interface created entirely through natural conversation with an AI assistant using this MCP server. See Example 7: Chat Interface for the complete conversation that generated this design.
The screenshot above demonstrates how you can describe a design in natural language, and the AI assistant will create it in Penpot using the MCP server’s capabilities - handling layout, styling, components, and interactions automatically.
Features
🎨 Complete Design Manipulation
- Create & Manage Files: Create new design files, list projects, and manage file metadata
- Shape Operations: Create rectangles, circles, frames, paths, text, and SVG shapes
- Modify Designs: Update shape properties, move objects, resize, rotate, and style
- Page Management: Add, remove, and organize pages within files
- Component System: Create and manage reusable components
🔄 Real-time Operations
- Direct API integration with Penpot
- Session-based updates with revision tracking
- Support for batch operations
🛠️ Available Tools (76+ Tools!)
Project & File Management (8 tools)
list_teams- List all accessible teamslist_projects- List all accessible projectslist_files- List files in a projectget_file- Get file data and structurecreate_file- Create a new design filerename_file- Rename an existing filedelete_file- Delete a file permanently
Page Management (8 tools)
list_pages- List all pages in a fileadd_page- Add a new page to a fileget_page_shapes- Get all shapes on a specific page (basic info)query_shapes- Query and filter shapes with criteria (like grep). Filter by type, area, color, font, text content. Select fields to return. Useful for bulk operationsget_shape_properties- Get detailed properties of a specific shape (colors, text, fonts, effects, etc.)rename_page- Rename a pagedelete_page- Delete a page from a filemove_shapes- Move shapes to different parent/frame or reorder
Shape Creation (6 tools)
create_rectangle- Create rectangle shapescreate_circle- Create circle/ellipse shapes
安装
npx penpot-mcp-server配置
{
"mcpServers": {
"penpot": {
"command": "node",
"args": ["/path/to/penpot-mcp-server/dist/index.js"],
"env": {
"PENPOT_API_URL": "https://design.penpot.app",
"PENPOT_ACCESS_TOKEN": "your-access-token"
}
}
}
}