Penpot MCP Server logo

Penpot MCP Server

Connects AI clients to self-hosted Penpot for programmatic design editing, exports, tokens, components, and live canvas automation.

Install Penpot MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for penpot-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

penpot-mcp-server connects MCP-compatible AI clients to a self-hosted Penpot deployment through streamable HTTP. It combines direct PostgreSQL reads, Penpot RPC writes, built-in SVG/PNG exports, and a browser-plugin WebSocket bridge for live canvas work. Agents can inspect, create, modify, batch-edit, and export design elements, as well as work with components, colors, typographies, CSS, and design tokens. Reach for it when Penpot runs under your control and you want AI-driven design automation rather than a desktop-only workflow.

Use cases

  • Create UI components and layouts in Penpot from natural-language instructions
  • Batch-rename shapes and update design colors
  • Export Penpot designs as SVG or PNG
  • Extract design tokens and generate CSS from shapes
  • Automate changes on the active Penpot canvas

Key features

  • Streamable HTTP MCP transport
  • Direct PostgreSQL reads and RPC API writes
  • SVG and PNG export through Penpot
  • Playbook batching with variable piping
  • Browser-plugin WebSocket bridge
  • Component and design-token operations

Tools2

What Penpot MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~39 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 22d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
Last commit20d agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.

How Penpot MCP Server works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Penpot MCP Server

penpot-mcp-server is an MCP server that connects AI clients to self-hosted Penpot. Its main tools read, create, modify, batch, and export design elements, while also handling components, colors, typographies, CSS, design tokens, and live canvas actions through a browser-plugin bridge over HTTP and WebSocket transports.

Install it by cloning the repository, copying `.env.example` to `.env`, setting the Penpot values, adding the MCP service to your Penpot Docker Compose stack, and running `docker compose up -d --build penpot-mcp`. The automated `setup.sh` script provides a guided alternative.

Set `PENPOT_ACCESS_TOKEN`, `PENPOT_DB_PASS`, and `PENPOT_PUBLIC_URL`. The first authenticates Penpot access, the second supplies the database password, and the third identifies the URL used to access Penpot in a browser.

Yes, Cursor is named as a supported MCP-compatible client. Configure Cursor to connect to the server's streamable HTTP URL; the server runs independently in Docker, so the client does not need to spawn its process.

Yes, it exports design output as SVG and PNG through Penpot's built-in exporter. It can also generate CSS from shapes and extract design tokens for design-to-code workflows.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPenpot MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/penpot-mcp-server?style=directory)](https://allmcps.com/mcp/penpot-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/penpot-mcp-server"><img src="https://allmcps.com/api/badge/penpot-mcp-server?style=directory" alt="Penpot MCP Server on AllMCPs" /></a>