Photopea MCP Server

MCP server for AI-driven image editing with Photopea

Local serverstdioTypeScript

What is the Photopea MCP Server?

MCP server for AI-driven image editing with Photopea

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.

Credentials and setup notes

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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
photopea_ungroup_layersUngroup a layer group
photopea_get_layersGet the full layer tree as JSON
photopea_add_textAdd a text layer at specified coordinates
photopea_edit_textEdit content or style of an existing text layer
photopea_add_shapeAdd a shape (rectangle or ellipse)
photopea_place_imagePlace an image from URL or local path
photopea_apply_adjustmentApply brightness/contrast, hue/saturation, levels, or curves
photopea_apply_filterApply gaussian blur, sharpen, unsharp mask, noise, or motion blur
photopea_transform_layerScale, rotate, or flip a layer
photopea_add_gradientApply a linear gradient fill
photopea_make_selectionCreate a rectangular, elliptical, or full selection
photopea_modify_selectionExpand, contract, feather, or invert a selection
photopea_fill_selectionFill the current selection with a color
photopea_clear_selectionDeselect the current selection
photopea_export_imageExport to PNG, JPG, WebP, PSD, or SVG
photopea_load_fontLoad a custom font from a URL (TTF, OTF, WOFF2)
photopea_list_fontsList available fonts, with optional search filter
photopea_run_scriptExecute arbitrary Photopea JavaScript
photopea_undoUndo one or more actions
photopea_redoRedo one or more actions

How to install the Photopea MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

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

MCP server for AI-driven image editing with Photopea Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.