# penpot-mcp-server [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/ancrz/penpot-mcp-server  
**GitHub Stars:** 12  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/penpot-mcp-server

## Description
MCP server for self-hosted Penpot — AI-powered UI/UX design and prototyping (66 tools)

## Tools
Capabilities this server exposes over MCP:

- **legacy** — **77 individual tools** for backwards compatibility with legacy prompts.
- **hybrid** — **91 tools** (both the 14 compressed sub-tools and the 77 legacy tools).

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What penpot-mcp-server does

penpot-mcp-server exposes self-hosted Penpot capabilities through the Model Context Protocol. An AI client can inspect existing design data, create or update shapes and text, work with UI components and design-system resources, and export results as SVG or PNG. It also supports CSS generation from shapes and design-token extraction.

The server is aimed at Penpot installations managed with Docker Compose. Its architecture separates operations by access path: database reads are handled directly through PostgreSQL, writes use Penpot's RPC API, and rendered exports use Penpot's exporter. A browser-plugin bridge extends access to the active canvas.

## How it works

Clients connect to the server over streamable HTTP rather than launching it as a local subprocess. The Docker container runs independently alongside the Penpot stack, with the MCP endpoint exposed on port 8787 in the documented setup.

The server uses compressed domain-oriented tools that multiplex Penpot actions. A playbook mode can batch multiple operations in one request and pass values between steps using variables such as `$prev`, `$steps`, and `$cache`. This is useful for repetitive changes, multi-step layout work, and reducing the amount of tool schema sent to an agent.

Live canvas operations use a WebSocket bridge. The bridge supports correlated requests for script execution and context retrieval, with a same-origin endpoint at `/plugin/ws` and a standalone WebSocket endpoint on port 4402. The embedded AI Studio also exposes agent status, chat, breaker-reset, and plugin telemetry endpoints.

## Setup and configuration

The documented deployment expects a self-hosted Penpot instance running with Docker Compose, Docker Compose v2, and access tokens enabled. Clone the repository, copy `.env.example` to `.env`, provide the Penpot connection values, and add the supplied MCP service definition to the Penpot Docker stack. Build and start the service with Docker Compose.

Required configuration includes:

- `PENPOT_ACCESS_TOKEN` for authenticated Penpot API access.
- `PENPOT_DB_PASS` for the Penpot PostgreSQL connection.
- `PENPOT_PUBLIC_URL` for the browser-facing Penpot URL.

After startup, check the root health endpoint or send an MCP initialization request to `/mcp`. Client configuration uses the server's HTTP URL; credentials remain in the server's environment rather than the client's MCP configuration.

## Tools and capabilities

- Read Penpot design data through direct PostgreSQL access.
- Create and modify shapes, text, layouts, and UI components.
- Read and write colors, typographies, and other design-system resources.
- Batch repetitive operations such as renaming shapes or changing colors.
- Generate CSS from shapes and extract design tokens.
- Export design output as SVG or PNG through Penpot's exporter.
- Execute playbooks with value passing between operations.
- Communicate with the active canvas through the browser-plugin bridge.

## Limitations and notes

The server is designed for self-hosted Penpot rather than a hosted Penpot workflow. It requires access to the Penpot database, backend services, exporter, and—when live canvas features are needed—the browser-plugin bridge. Writes are routed through Penpot's RPC API to preserve change tracking and undo history, while reads use direct database access.

The server's network transport means the MCP client must be able to connect to its HTTP endpoint. The embedded AI Studio includes provider-routing and failover features, but those features depend on the corresponding provider configuration and are separate from the core Penpot MCP connection.

_Full upstream README: https://allmcps.com/mcp/penpot-mcp-server/readme_

