mirror of
https://github.com/penpot/penpot.git
synced 2026-03-27 13:50:26 +01:00
Add support for 'page' as a special shapeId value in the MCP export_shape tool. It resolves to penpot.root, exporting the entire current page as a PNG or SVG snapshot. Previously only 'selection' and explicit shape IDs were supported. The new 'page' shortcut is useful for AI agents needing a bird's-eye view of the design without having to know a specific shape ID. Closes https://github.com/penpot/penpot/issues/8689 Signed-off-by: Abhishek Mittal <abhishekmittaloffice@gmail.com>
Penpot MCP Server
A Model Context Protocol (MCP) server that provides Penpot integration capabilities for AI clients supporting the model context protocol (MCP).
Setup
-
Install Dependencies
pnpm install -
Build the Project
pnpm run build -
Run the Server
pnpm run start
Penpot Plugin API REPL
The MCP server includes a REPL interface for testing Penpot Plugin API calls. To use it, connect to the URL reported at startup.