Set up Penpot MCP with Cursor in 5 steps and no code

The fastest and simplest way to get started with Penpot and AI workflows from scratch. Learn how to get started with Penpot and Cursor, a code editor with an integrated AI client.

Set up Penpot MCP with Cursor in 5 steps and no code

Are you looking to use AI workflows as part of your team’s design and development process, but have no idea where to begin? Look no further!

You can use Penpot’s MCP (Model Context Protocol) as a bridge between AI clients and your Penpot files. The AI client connects to AI models (large language models, or LLMs) such as Claude, Gemini, and GPT. The combination of Penpot MCP, an AI client, and AI models, enables you to generate designs and code from your Penpot files, or even create new Penpot designs from code and prompts.

Penpot MCP will work with any AI model and client, but in this guide I’ll show you how to get started with Penpot and Cursor, a code editor with an integrated AI client.

What you’ll need before we start:

Below is a more detailed step-by-step guide. Here’s a summary of the steps:

At the end of this tutorial, you’ll be ready to write AI prompts that can read and audit your Penpot files, edit your existing designs, and create new mockups.

1: Download and install the Cursor desktop app

Cursor will act as your AI client, and provide access to AI models (LLMs.)

  1. You can download Cursor from their website.

Cursor is a code editor that provides an integrated AI client. Penpot isn’t affiliated with Cursor, I’ve just found it a handy tool that acts as your AI client, as well as giving you access to multiple AI models through one subscription.

You can use any model with Penpot MCP. For design and development tasks, you will need to use a model that is capable of complex reasoning. Most of the newest and most popular models should be capable of these tasks.

2: Enable MCP in Penpot and generate MCP key

Penpot MCP will be the bridge between Cursor and your Penpot file.

  1. Go to your account settings in Penpot.
  2. Under the Integrations section, enable Penpot MCP.
0:00
/0:10

Enabling Penpot MCP will open a modal with the option to generate your MCP key. An MCP key is a secret token to used access your Penpot files. Anyone with your MCP key can connect to your files, as long as the MCP is enabled. (So don’t share your key!)

  1. Choose an expiration date and generate an MCP key.

You can generate your key with no expiration date, unless you have a reason to require an expiration date.

0:00
/0:11

Save your MCP key to your password manager as you won’t be able to copy and paste it again. If you accidentally share or lose your MCP key, you can always delete the existing key and generate a new one. (If you delete your key, you will need to update everywhere that used the old key to use the new key.)

  1. Don’t close the MCP key modal yet. We’ll use the configuration code in a minute.

3: Add Penpot MCP to Cursor

Open Cursor to connect Penpot MCP.

  1. Go to Settings > Tools & MCPs.
  2. Choose Add Custom MCP.

This will create and open a new file called mcp.json for your MCP server configuration settings for Cursor.

  1. Copy the configuration code from the larger text area in Penpot’s MCP settings into the mcp.json file in Cursor.

    You can safely paste over any code or characters in that file unless it already contains settings for another MCP server. If there are settings for another MCP server in the file, add the Penpot MCP server following the same structure, using the "url" value from the Penpot MCP config (the "https://design.penpot.app/mcp/stream?userToken=" bit.)
  2. Save the file to update Cursor’s settings.
  3. Return to Settings > Tools & MCPs and you should see Penpot MCP listed with a green status icon.
0:00
/0:38

4: Open the Penpot working file

Connect your open file to the MCP server.

Penpot MCP works with your current open file in Penpot.

  1. Navigate to the Penpot file you want to work with from the Penpot dashboard.
  2. Check that the Penpot MCP server is active in Penpot:
    • Open the main menu from inside your Penpot file
    • Under the MCP server section, it should say Disconnect (This shows it is connected.) And Manage (Status: enabled). (This shows it is enabled.)
The main menu inside Penpot file opened to the MCP server options. When the MCP server is enabled, the two options are disconnect or manage (status: enabled.)

You’re ready to write your first prompt!

5: Write your first prompt

Return to Cursor. Cursor’s agent will automatically use the Penpot MCP once it is installed and enabled.

  1. Open an existing or new project folder in Cursor.
  2. Open the agent chat panel from the chat icon in Cursor’s top menu.
  3. Ask What is the current open file in Penpot?
A Penpot file named Design Mocks alongside the cursor agent answering the question what is the name of my current open Penpot file? It correctly answers that the currently open Penpot file is named Design Mocks.

If the agent responds with the correct Penpot file name, you’re ready to move on to more interesting prompts! I recommend you read Juan’s guide to writing prompts if you’re not already familiar with AI design workflows.

Troubleshooting AI workflows with Penpot MCP and Cursor

There’s not many steps to go wrong in this process, but if you do have trouble, try the following:

  • Check that you’ve saved the mcp.json file.
  • Restart Cursor.
  • Ensure you have the correct file open in Penpot, and the MCP is enabled in the main menu.

AI workflow best practices

Your AI workflows are only as good as your prompts and the context (files and extra data) you give the model. AI isn’t magic: it follows what you tell it. If you don’t supply enough detail it will lean on its training data and drift toward generic, “average internet” design and code. Using models also has a real cost—in subscription spend and in compute (and energy) because tokens are spent both interpreting your input and writing the output.

For heavier work, you’ll want a model that can handle complex reasoning, but the right choice depends on what you’re actually trying to do. You can learn more about choosing the right model from the discussion I had with Juan during our Intro to AI workflows hands-on demo:

Want to learn more about Penpot and AI workflows? Here are more tutorials to get you started:

Set up Penpot MCP with OpenRouter and OpenCode in 6 steps
One of the fastest ways to set up Penpot for AI workflows in just 6 steps, no coding required, and only using free, open, and/or low-cost tools.
How to make your prompts more efficient
The following “token-aware” approach treats prompts like structured contracts instead of a wish-list or diary, so you get better outputs in fewer iterations (and with fewer prompt credits).
The designer’s guide to effective AI prompting
Learn how to write structured, token‑aware AI prompts in Penpot so you get cleaner design systems, fewer hallucinations, and faster, production‑ready outputs.