Logotipo de Penpot MCP

Penpot MCP

Organización
penpot

Penpot's official MCP Server

Editorpenpot
Repositoriopenpot-mcp
IdiomaTypeScript
Forks
71
Estrellas
515
Herramientas disponibles
0
Tipo de transportestdio
LicenciaMPL-2.0
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Penpot MCP ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    515 estrellas y 71 forks en el repositorio enlazado.

[!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

mcp-server-cover-github-1

Penpot's Official MCP Server

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.

Penpot MCP video playlist

Architecture

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.

Architecture

This repository thus contains not only the MCP server implementation itself but also the supporting Penpot MCP Plugin (see section Repository Structure below).

Demonstration

Video

Usage

To use the Penpot MCP server, you must

  • run the MCP server and connect your AI client to it,
  • run the web server providing the Penpot MCP plugin, and
  • open the Penpot MCP plugin in Penpot and connect it to the MCP server.

Follow the steps below to enable the integration.

Prerequisites

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.

1. Build & Launch the MCP Server and the Plugin Server

If it's your first execution, install the required dependencies:

shell
npm install

Then build all components and start the two servers:

shell
npm run bootstrap

This bootstrap command will:

  • install dependencies for all components (npm run install:all)
  • build all components (npm run build:all)
  • start all components (npm run start:all)

2. Load the Plugin in Penpot and Establish the Connection

[!NOTE] Browser Connectivity Restrictions

Starting with Chromium version 142, the private network access (PNA) restrictions have been hardened, and when connecting to localhost from 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.

  1. Open Penpot in your browser
  2. Navigate to a design file
  3. Open the Plugins menu
  4. Load the plugin using the development URL (http://localhost:4400/manifest.json by default)
  5. Open the plugin UI
  6. In the plugin UI, click "Connect to MCP server". The connection status should change from "Not connected" to "Connected to MCP server".
    (Check the browser's developer console for WebSocket connection logs. Check the MCP server terminal for WebSocket connection messages.)

[!IMPORTANT] Do not close the plugin's UI while using the MCP server, as this will close the connection.

3. Connect an MCP Client

By default, the server runs on port 4401 and provides:

  • Modern Streamable HTTP endpoint: http://localhost:4401/mcp
  • Legacy SSE endpoint: http://localhost:4401/sse

These 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.

Using a Proxy for stdio Transport

The mcp-remote package can proxy stdio transport to HTTP/SSE, allowing clients that support only stdio to connect to the MCP server indirectly.

  1. Install mcp-remote globally if you haven't already:

     npm install -g mcp-remote
  2. Use mcp-remote to provide the launch command for your MCP client:

     npx -y mcp-remote http://localhost:4401/sse --allow-http

Example: Claude Desktop

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):

  • Windows: %APPDATA%/Claude/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Add a penpot entry under mcpServers with the following content:

json
{
    "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.

Example: Claude Code

To add the Penpot MCP server to a Claude Code project, issue the command

claude mcp add penpot -t http http://localhost:4401/mcp

Repository Structure

This repository is a monorepo containing four main components:

  1. Common Types (common/):

    • Shared TypeScript definitions for request/response protocol
    • Ensures type safety across server and plugin components
  2. Penpot MCP Server (mcp-server/):

    • Provides MCP tools to LLMs for Penpot interaction
    • Runs a WebSocket server accepting connections from the Penpot MCP plugin
    • Implements request/response correlation with unique task IDs
    • Handles task timeouts and proper error reporting
  3. Penpot MCP Plugin (penpot-plugin/):

    • Connects to the MCP server via WebSocket
    • Executes tasks in Penpot using the Plugin API
    • Sends structured responses back to the server#
  4. Helper Scripts (python-scripts/):

    • Python scripts that prepare data for the MCP server (development use)

The core components are written in TypeScript, rendering interactions with the Penpot Plugin API both natural and type-safe.

Configuration

The Penpot MCP server can be configured using environment variables. All configuration options use the PENPOT_MCP_ prefix for consistency.

Server Configuration

Environment VariableDescriptionDefault
PENPOT_MCP_SERVER_LISTEN_ADDRESSAddress on which the MCP server listens (binds to)localhost
PENPOT_MCP_SERVER_PORTPort for the HTTP/SSE server4401
PENPOT_MCP_WEBSOCKET_PORTPort for the WebSocket server (plugin connection)4402
PENPOT_MCP_REPL_PORTPort for the REPL server (development/debugging)4403
PENPOT_MCP_SERVER_ADDRESSHostname or IP address via which clients can reach the MCP serverlocalhost
PENPOT_MCP_REMOTE_MODEEnable remote mode (disables file system access). Set to true to enable.false

Logging Configuration

Environment VariableDescriptionDefault
PENPOT_MCP_LOG_LEVELLog level: trace, debug, info, warn, errorinfo
PENPOT_MCP_LOG_DIRDirectory for log fileslogs

Plugin Server Configuration

Environment VariableDescriptionDefault
PENPOT_MCP_PLUGIN_SERVER_LISTEN_ADDRESSAddress on which the plugin web server listens (single address or comma-separated list)(local only)

Beyond Local Execution

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).

Usa el MCP de Penpot MCP con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Penpot MCP, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Penpot MCP como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Penpot MCP.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "penpot-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Penpot MCP y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Penpot MCP.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Penpot MCP para ayudarme con esta tarea?
Penpot MCP
Claro. Lo he leído.
Esto he encontrado usando Penpot MCP.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Penpot MCP?

Penpot MCP es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Penpot MCP con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Penpot MCP con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Penpot MCP con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Penpot MCP conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Penpot MCP a TypingMind?

Penpot MCP funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Penpot MCP en TypingMind?

Penpot MCP ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Penpot MCP?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Penpot MCP requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇