mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 11:18:37 +00:00
1.4 KiB
1.4 KiB
The Penpot MCP Server
The system consists of two main components:
-
MCP Server (
mcp-server/):- Runs the MCP server providing tools to an LLM for Penpot project interaction
- Runs a WebSocket server which accepts connections from the Penpot MCP Plugin, establishing a communication channel between the plugin and the MCP server
-
Penpot MCP Plugin (
penpot-plugin/):- Establishes WebSocket connection to the MCP server
- Receives tasks from the MCP server, which it executes in the Penpot project, making use of the Penpot Plugin API
Testing the Connection
Step 1: Start the MCP Server
cd mcp-server
npm run build
npm start
Step 2: Build and Run the Plugin
cd penpot-plugin
npm run build
npm run dev
Step 3: Load Plugin in Penpot
- Open Penpot in your browser
- Navigate to a design file
- Go to Plugins menu
- Load the plugin using the development URL (typically
http://localhost:4400/manifest.json) - Open the plugin UI
Step 4: Test the Connection
- 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