[!IMPORTANT] This repository has been archived on 2026-02-03.
Its contents have been fully integrated into the main Penpot repository: https://github.com/penpot/penpot/tree/develop/mcp
Penpot integrates a LLM layer built on the Model Context Protocol (MCP) via Penpot's Plugin API to interact with a Penpot design file. Penpot's MCP server enables LLMs to perfom data queries, transformation and creation operations.
Penpot's MCP Server is unlike any other you've seen. You get design-to- design, code-to-design and design-code supercharged workflows.
The Penpot MCP Server exposes tools to AI clients (LLMs), which support the retrieval
of design data as well as the modification and creation of design elements.
The MCP server communicates with Penpot via the dedicated Penpot MCP Plugin,
which connects to the MCP server via WebSocket.
This enables the LLM to carry out tasks in the context of a design file by
executing code that leverages the Penpot Plugin API.
The LLM is free to write and execute arbitrary code snippets
within the Penpot Plugin environment to accomplish its tasks.

This repository thus contains not only the MCP server implementation itself but also the supporting Penpot MCP Plugin (see section Repository Structure below).
To use the Penpot MCP server, you must
Follow the steps below to enable the integration.
The project requires Node.js (tested with v22).
Following the installation of Node.js, the tools npm and npx should be
available in your terminal.
If it's your first execution, install the required dependencies:
npm install
Then build all components and start the two servers:
npm run bootstrap
This bootstrap command will:
npm run install:all)npm run build:all)npm run start:all)[!NOTE] Browser Connectivity Restrictions
Starting with Chromium version 142, the private network access (PNA) restrictions have been hardened, and when connecting to
localhostfrom a web application served from a different origin (such as https://design.penpot.app), the connection must explicitly be allowed.Most Chromium-based browsers (e.g. Chrome, Vivaldi) will display a popup requesting permission to access the local network. Be sure to approve the request to allow the connection.
Some browsers take additional security measures, and you may need to disable them. For example, in Brave, disable the "Shield" for the Penpot website to allow local network access.
If your browser refuses to connect to the locally served plugin, check its configuration or try a different browser (e.g. Firefox) that does not enforce these restrictions.
http://localhost:4400/manifest.json by default)[!IMPORTANT] Do not close the plugin's UI while using the MCP server, as this will close the connection.
By default, the server runs on port 4401 and provides:
http://localhost:4401/mcphttp://localhost:4401/sseThese endpoints can be used directly by MCP clients that support them. Simply configure the client to connect the MCP server by providing the respective URL.
When using a client that only supports stdio transport,
a proxy like mcp-remote is required.
The mcp-remote package can proxy stdio transport to HTTP/SSE,
allowing clients that support only stdio to connect to the MCP server indirectly.
Install mcp-remote globally if you haven't already:
npm install -g mcp-remote
Use mcp-remote to provide the launch command for your MCP client:
npx -y mcp-remote http://localhost:4401/sse --allow-http
For Windows and macOS, there is the official Claude Desktop app, which you can use as an MCP client. For Linux, there is an unofficial community version.
Since Claude Desktop natively supports only stdio transport, you will need to use a proxy like mcp-remote.
Install it as described above.
To add the server to Claude Desktop's configuration, locate the configuration file (or find it via Menu / File / Settings / Developer):
%APPDATA%/Claude/claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd a penpot entry under mcpServers with the following content:
{
"mcpServers": {
"penpot": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:4401/sse", "--allow-http"]
}
}
}
After updating the configuration file, restart Claude Desktop completely for the changes to take effect.
[!IMPORTANT] Be sure to fully quit the app for the changes to take effect; closing the window is not sufficient.
To fully terminate the app, choose Menu / File / Quit.
After the restart, you should see the MCP server listed when clicking on the "Search and tools" icon at the bottom of the prompt input area.
To add the Penpot MCP server to a Claude Code project, issue the command
claude mcp add penpot -t http http://localhost:4401/mcp
This repository is a monorepo containing four main components:
Common Types (common/):
Penpot MCP Server (mcp-server/):
Penpot MCP Plugin (penpot-plugin/):
Helper Scripts (python-scripts/):
The core components are written in TypeScript, rendering interactions with the Penpot Plugin API both natural and type-safe.
The Penpot MCP server can be configured using environment variables. All configuration
options use the PENPOT_MCP_ prefix for consistency.
| Environment Variable | Description | Default |
|---|---|---|
PENPOT_MCP_SERVER_LISTEN_ADDRESS | Address on which the MCP server listens (binds to) | localhost |
PENPOT_MCP_SERVER_PORT | Port for the HTTP/SSE server | 4401 |
PENPOT_MCP_WEBSOCKET_PORT | Port for the WebSocket server (plugin connection) | 4402 |
PENPOT_MCP_REPL_PORT | Port for the REPL server (development/debugging) | 4403 |
PENPOT_MCP_SERVER_ADDRESS | Hostname or IP address via which clients can reach the MCP server | localhost |
PENPOT_MCP_REMOTE_MODE | Enable remote mode (disables file system access). Set to true to enable. | false |
| Environment Variable | Description | Default |
|---|---|---|
PENPOT_MCP_LOG_LEVEL | Log level: trace, debug, info, warn, error | info |
PENPOT_MCP_LOG_DIR | Directory for log files | logs |
| Environment Variable | Description | Default |
|---|---|---|
PENPOT_MCP_PLUGIN_SERVER_LISTEN_ADDRESS | Address on which the plugin web server listens (single address or comma-separated list) | (local only) |
The above instructions describe how to run the MCP server and plugin server locally. We are working on enabling remote deployments of the MCP server, particularly in multi-user mode, where multiple Penpot users will be able to connect to the same MCP server instance.
To run the server remotely (even for a single user), you may set the following environment variables to configure the two servers (MCP server & plugin server) appropriately:
PENPOT_MCP_REMOTE_MODE=true: This ensures that the MCP server is operating
in remote mode, with local file system access disabled.PENPOT_MCP_SERVER_LISTEN_ADDRESS and PENPOT_MCP_PLUGIN_SERVER_LISTEN_ADDRESS:
Set these according to your requirements for remote connectivity.
To bind all interfaces, use 0.0.0.0 (use caution in untrusted networks).PENPOT_MCP_SERVER_ADDRESS=<your-address>: This sets the hostname or IP address
where the MCP server can be reached. The Penpot MCP Plugin uses this to construct
the WebSocket URL as ws://<your-address>:<port> (default port: 4402).49 followers · starred Mar 2026
TypeScript
72.8%
HTML
17.3%
Python
8.0%
JavaScript
1.8%
[!IMPORTANT] This repository has been archived on 2026-02-03.
Its contents have been fully integrated into the main Penpot repository: https://github.com/penpot/penpot/tree/develop/mcp
Penpot integrates a LLM layer built on the Model Context Protocol (MCP) via Penpot's Plugin API to interact with a Penpot design file. Penpot's MCP server enables LLMs to perfom data queries, transformation and creation operations.
Penpot's MCP Server is unlike any other you've seen. You get design-to- design, code-to-design and design-code supercharged workflows.
The Penpot MCP Server exposes tools to AI clients (LLMs), which support the retrieval
of design data as well as the modification and creation of design elements.
The MCP server communicates with Penpot via the dedicated Penpot MCP Plugin,
which connects to the MCP server via WebSocket.
This enables the LLM to carry out tasks in the context of a design file by
executing code that leverages the Penpot Plugin API.
The LLM is free to write and execute arbitrary code snippets
within the Penpot Plugin environment to accomplish its tasks.

This repository thus contains not only the MCP server implementation itself but also the supporting Penpot MCP Plugin (see section Repository Structure below).
To use the Penpot MCP server, you must
Follow the steps below to enable the integration.
The project requires Node.js (tested with v22).
Following the installation of Node.js, the tools npm and npx should be
available in your terminal.
If it's your first execution, install the required dependencies:
npm install
Then build all components and start the two servers:
npm run bootstrap
This bootstrap command will:
npm run install:all)npm run build:all)npm run start:all)[!NOTE] Browser Connectivity Restrictions
Starting with Chromium version 142, the private network access (PNA) restrictions have been hardened, and when connecting to
localhostfrom a web application served from a different origin (such as https://design.penpot.app), the connection must explicitly be allowed.Most Chromium-based browsers (e.g. Chrome, Vivaldi) will display a popup requesting permission to access the local network. Be sure to approve the request to allow the connection.
Some browsers take additional security measures, and you may need to disable them. For example, in Brave, disable the "Shield" for the Penpot website to allow local network access.
If your browser refuses to connect to the locally served plugin, check its configuration or try a different browser (e.g. Firefox) that does not enforce these restrictions.
http://localhost:4400/manifest.json by default)[!IMPORTANT] Do not close the plugin's UI while using the MCP server, as this will close the connection.
By default, the server runs on port 4401 and provides:
http://localhost:4401/mcphttp://localhost:4401/sseThese endpoints can be used directly by MCP clients that support them. Simply configure the client to connect the MCP server by providing the respective URL.
When using a client that only supports stdio transport,
a proxy like mcp-remote is required.
The mcp-remote package can proxy stdio transport to HTTP/SSE,
allowing clients that support only stdio to connect to the MCP server indirectly.
Install mcp-remote globally if you haven't already:
npm install -g mcp-remote
Use mcp-remote to provide the launch command for your MCP client:
npx -y mcp-remote http://localhost:4401/sse --allow-http
For Windows and macOS, there is the official Claude Desktop app, which you can use as an MCP client. For Linux, there is an unofficial community version.
Since Claude Desktop natively supports only stdio transport, you will need to use a proxy like mcp-remote.
Install it as described above.
To add the server to Claude Desktop's configuration, locate the configuration file (or find it via Menu / File / Settings / Developer):
%APPDATA%/Claude/claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd a penpot entry under mcpServers with the following content:
{
"mcpServers": {
"penpot": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:4401/sse", "--allow-http"]
}
}
}
After updating the configuration file, restart Claude Desktop completely for the changes to take effect.
[!IMPORTANT] Be sure to fully quit the app for the changes to take effect; closing the window is not sufficient.
To fully terminate the app, choose Menu / File / Quit.
After the restart, you should see the MCP server listed when clicking on the "Search and tools" icon at the bottom of the prompt input area.
To add the Penpot MCP server to a Claude Code project, issue the command
claude mcp add penpot -t http http://localhost:4401/mcp
This repository is a monorepo containing four main components:
Common Types (common/):
Penpot MCP Server (mcp-server/):
Penpot MCP Plugin (penpot-plugin/):
Helper Scripts (python-scripts/):
The core components are written in TypeScript, rendering interactions with the Penpot Plugin API both natural and type-safe.
The Penpot MCP server can be configured using environment variables. All configuration
options use the PENPOT_MCP_ prefix for consistency.
| Environment Variable | Description | Default |
|---|---|---|
PENPOT_MCP_SERVER_LISTEN_ADDRESS | Address on which the MCP server listens (binds to) | localhost |
PENPOT_MCP_SERVER_PORT | Port for the HTTP/SSE server | 4401 |
PENPOT_MCP_WEBSOCKET_PORT | Port for the WebSocket server (plugin connection) | 4402 |
PENPOT_MCP_REPL_PORT | Port for the REPL server (development/debugging) | 4403 |
PENPOT_MCP_SERVER_ADDRESS | Hostname or IP address via which clients can reach the MCP server | localhost |
PENPOT_MCP_REMOTE_MODE | Enable remote mode (disables file system access). Set to true to enable. | false |
| Environment Variable | Description | Default |
|---|---|---|
PENPOT_MCP_LOG_LEVEL | Log level: trace, debug, info, warn, error | info |
PENPOT_MCP_LOG_DIR | Directory for log files | logs |
| Environment Variable | Description | Default |
|---|---|---|
PENPOT_MCP_PLUGIN_SERVER_LISTEN_ADDRESS | Address on which the plugin web server listens (single address or comma-separated list) | (local only) |
The above instructions describe how to run the MCP server and plugin server locally. We are working on enabling remote deployments of the MCP server, particularly in multi-user mode, where multiple Penpot users will be able to connect to the same MCP server instance.
To run the server remotely (even for a single user), you may set the following environment variables to configure the two servers (MCP server & plugin server) appropriately:
PENPOT_MCP_REMOTE_MODE=true: This ensures that the MCP server is operating
in remote mode, with local file system access disabled.PENPOT_MCP_SERVER_LISTEN_ADDRESS and PENPOT_MCP_PLUGIN_SERVER_LISTEN_ADDRESS:
Set these according to your requirements for remote connectivity.
To bind all interfaces, use 0.0.0.0 (use caution in untrusted networks).PENPOT_MCP_SERVER_ADDRESS=<your-address>: This sets the hostname or IP address
where the MCP server can be reached. The Penpot MCP Plugin uses this to construct
the WebSocket URL as ws://<your-address>:<port> (default port: 4402).49 followers · starred Mar 2026
TypeScript
72.8%
HTML
17.3%
Python
8.0%
JavaScript
1.8%