Photopea MCP Server

MCP server for AI-driven image editing with Photopea

Local serverstdioTypeScript

What is the Photopea MCP server?

Connect Photopea to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server for AI-driven image editing with Photopea. The photopea mcp server is what makes that connection.

What the server does

Design posters, edit photos, and transform images directly from your terminal. Powered by Photopea -- a free, browser-based alternative to Photoshop -- connected to your AI agent via MCP.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • photopea_create_document — Create a new document with specified dimensions and settings
  • photopea_open_file — Open an image from a URL or local file path
  • photopea_get_document_info — Get active document info (name, dimensions, resolution, color mode)
  • photopea_resize_document — Resize the active document (resamples content to fit)
  • photopea_close_document — Close the active document
  • photopea_add_layer — Add a new empty art layer
  • photopea_add_fill_layer — Add a solid color fill layer
  • photopea_delete_layer — Delete a layer by name or index
  • photopea_select_layer — Make a layer active by name or index
  • photopea_set_layer_properties — Set opacity, blend mode, visibility, name, or lock state
  • photopea_move_layer — Translate a layer by x/y offset
  • photopea_duplicate_layer — Duplicate a layer with optional new name

Credentials and setup notes

  • Node.js >= 18 - A modern web browser (Chrome, Firefox, Edge, Safari)

Installation

The server ships on npm as photopea-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Photopea's toolset — photopea_create_document, photopea_open_file, photopea_get_document_info and 11 more — is a fair guide to whether it matches your workflow. It is maintained by attalla1; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Photopea.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
photopea_create_documentCreate a new document with specified dimensions and settings
photopea_open_fileOpen an image from a URL or local file path
photopea_get_document_infoGet active document info (name, dimensions, resolution, color mode)
photopea_resize_documentResize the active document (resamples content to fit)
photopea_close_documentClose the active document
photopea_add_layerAdd a new empty art layer
photopea_add_fill_layerAdd a solid color fill layer
photopea_delete_layerDelete a layer by name or index
photopea_select_layerMake a layer active by name or index
photopea_set_layer_propertiesSet opacity, blend mode, visibility, name, or lock state
photopea_move_layerTranslate a layer by x/y offset
photopea_duplicate_layerDuplicate a layer with optional new name
photopea_reorder_layerMove a layer in the stack (above, below, top, bottom)
photopea_group_layersGroup named layers into a layer group

How to install the Photopea MCP server

{
  "mcpServers": {
    "photopea": {
      "command": "npx",
      "args": ["-y", "photopea-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 18 - A modern web browser (Chrome, Firefox, Edge, Safari)

Example prompts to try

  • Use Photopea to photopea create document.
  • Use Photopea to photopea open file.
  • Use Photopea to photopea get document info.

Frequently asked questions

It connects Photopea to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (photopea_create_document, photopea_open_file, photopea_get_document_info, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Photopea directly.