Photopea MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| photopea_create_documentA | Create a new blank document and make it the active document. This is typically the first step in a workflow. The document opens with a Background layer. Use open_file instead to edit an existing image. |
| photopea_open_fileA | Open an existing image file in Photopea as a new document. Supports PSD, PNG, JPG, WebP, SVG, and other common formats. The opened file becomes the active document. Use create_document instead to start with a blank canvas. |
| photopea_get_document_infoA | Get metadata about the active document including name, width, height, resolution (DPI), layer count, and color mode. Returns JSON. Use this to check document dimensions before positioning layers or making selections. |
| photopea_resize_documentA | Resize the active document canvas to new pixel dimensions, resampling all layer content to fit. This is a destructive operation — all layers are scaled proportionally. Use undo to revert if needed. |
| photopea_close_documentA | Close the active document. Set save to true to save changes before closing. Unsaved changes are discarded if save is false. The next open document becomes active, if any. |
| photopea_cropA | Crop the active document to a rectangle in pixels. Content outside the rectangle is discarded. Use get_document_info for the current size; use resize_canvas to add space instead. |
| photopea_resize_canvasA | Change the canvas size without scaling the content: larger adds empty space, smaller cuts off edges. The anchor decides which side stays fixed. Use resize_document to scale the content instead. |
| photopea_trimA | Trim empty borders from the active document: transparent pixels, or pixels matching the top-left or bottom-right corner color. Useful after removing a background or before exporting an icon. |
| photopea_rotate_canvasA | Rotate and/or flip the whole document, all layers together. Use transform_layer to rotate a single layer instead. |
| photopea_add_layerA | Add a new empty layer to the active document. The new layer becomes the active layer. Use this before operations that draw onto a layer, such as fill_selection or add_gradient. |
| photopea_add_fill_layerA | Add a non-destructive solid color fill layer that covers the entire canvas. Unlike fill_selection, this creates a separate adjustment-style layer that can be toggled, recolored, or deleted without affecting other layers. Use set_layer_properties to change its opacity or blend mode. |
| photopea_delete_layerA | Permanently remove a layer from the active document by name or index. The next layer in the stack becomes active after deletion. Use get_layers to see available layers before deleting. |
| photopea_select_layerA | Set a layer as the active layer by name or index. Many tools (apply_filter, apply_adjustment, fill_selection) operate on the active layer — use this to target a specific layer first. Use get_layers to find layer names and indices. |
| photopea_set_layer_propertiesA | Update one or more properties on a layer. Only specified properties are changed; others remain at their current values. Use get_layers to inspect current property values before modifying. |
| photopea_move_layerA | Translate a layer by a relative x/y offset in pixels from its current position. Positive x moves right, positive y moves down. Use get_layers to check current layer bounds, or transform_layer for scaling and rotation. |
| photopea_duplicate_layerA | Create a copy of a layer in the active document. The duplicate becomes the active layer and is placed above the original. Use newName to distinguish the copy from the original. |
| photopea_reorder_layerA | Move a layer to a new position in the layer stack. Use 'top' or 'bottom' to move to the ends of the stack, or 'above'/'below' to shift one position relative to the current index. Use get_layers to see the current layer order. |
| photopea_group_layersA | Group multiple layers into a layer group (folder). Layers are specified by name — use get_layers to find layer names. Grouped layers can be ungrouped later with ungroup_layers. |
| photopea_ungroup_layersA | Dissolve a layer group, moving all child layers to the document root. The group folder is removed but its contents are preserved. Use get_layers to find group names. |
| photopea_get_layersA | Get the full layer tree of the active document as JSON. Returns an array of layer objects with name, type, index, visible, opacity, blendMode, and bounds properties. Groups contain nested children arrays. Use this to discover layer names and indices for other layer operations. |
| photopea_layer_maskA | Add or delete a layer mask, which hides parts of a layer without erasing pixels. 'from_selection' shows only the current selection (use make_selection first). Acts on the target layer, or the active layer if omitted. |
| photopea_set_clipping_maskA | Clip a layer to the layer directly below it, so it only shows where that layer has pixels (e.g. a photo or texture confined to a text or shape). Set enabled to false to release it. |
| photopea_add_adjustment_layerA | Add a non-destructive adjustment layer above the active layer. It changes how all layers below look without touching their pixels and can be hidden or deleted later. Use apply_adjustment to change one layer's pixels instead. |
| photopea_merge_layersA | Merge layers: 'down' merges the active layer into the one below, 'flatten' merges everything into a single background layer. Layer styles and masks get baked into pixels. |
| photopea_set_layer_styleA | Set a layer's effects: drop shadow, outer glow and/or stroke. Replaces the layer's existing effects; pass none to clear them. Effects stay editable and follow the layer's shape, which suits text and logos. |
| photopea_add_textA | Add a new text layer to the active document at the specified position. The text layer becomes the active layer. Use paragraphBounds to create a text box with word wrapping, or omit for point text. Use load_font to add custom fonts, and list_fonts to find available font names. |
| photopea_edit_textA | Modify the content or style of an existing text layer. Only specified properties are changed — omit parameters to keep their current values. Use get_layers to find text layer names if needed. |
| photopea_add_shapeA | Add a vector shape layer (rectangle or ellipse) to the active document. The shape layer becomes the active layer. Shapes are non-destructive and can be resized with transform_layer without quality loss. |
| photopea_place_imageA | Place an image into the active document from a URL or local file path. Creates a new layer with the placed image as the active layer. Use width/height to resize while preserving aspect ratio, or x/y to position the layer. |
| photopea_fill_placeholderA | Put an image into a template's placeholder layer: the image is scaled to cover (or fit inside) the placeholder's bounds, centered on it, placed above it and masked to its shape. Use it for photo frames, device mockups and social post templates; use edit_text to swap the template's text. |
| photopea_apply_adjustmentA | Apply a destructive image adjustment to the active layer's pixel data. Use select_layer to target a specific layer first. Modifies pixels directly — use undo to revert if needed. |
| photopea_apply_filterA | Apply a destructive filter effect to the active layer's pixel data. Use select_layer to target a specific layer first. Modifies pixels directly — use undo to revert if needed. |
| photopea_transform_layerA | Scale, rotate, or flip a layer in-place. Modifies the layer's pixel data destructively. Use get_layers to check current layer bounds before transforming, and undo to revert if needed. |
| photopea_add_gradientA | Apply a linear gradient fill to a layer, replacing its current pixel content. The target layer must already exist — use add_layer to create one first. Colors are distributed evenly across the gradient. |
| photopea_make_selectionA | Create a pixel selection region in the active document. After creating a selection, use fill_selection to fill it with color, or clear_selection to deselect. Use type 'all' to select the entire canvas, or 'rect'/'ellipse' with bounds for a specific region. |
| photopea_modify_selectionA | Modify the current active selection. Requires an existing selection created by make_selection. For expand, contract, and feather, the amount parameter specifies pixels. Invert swaps selected and unselected areas. |
| photopea_fill_selectionA | Fill the current selection with a solid color on the active layer. Requires an active selection — use make_selection to create one first. Modifies pixel data on the active layer directly. Use clear_selection afterward to deselect. |
| photopea_clear_selectionA | Deselect the current selection in the active document, removing the marching ants. Does not modify any pixel data. Use after fill_selection or other selection-based operations are complete. |
| photopea_export_imageA | Export the active document to a file and save it to the local filesystem. The entire document is flattened and exported in the chosen format. Use create_document or open_file to set up the document before exporting. |
| photopea_get_previewA | See the active document: returns a PNG snapshot, downscaled to maxSize, so you can check layout, colors and text visually. The document is not modified. Call it after visual changes, before exporting. |
| photopea_batch_processA | Run the same edit over many images: opens each input, optionally runs a Photopea script on it, exports it to outputDir as . (repeated names get -2, -3) and closes it. Use it for bulk resizing, format conversion or watermarking. Existing files with the same name are overwritten. |
| photopea_load_fontA | Load a custom font from a URL (TTF or OTF; Photopea cannot open WOFF2) into Photopea. The font becomes available for add_text and edit_text. Use list_fonts to find the PostScript name after loading. |
| photopea_list_fontsA | List available fonts in Photopea. Returns font PostScript names that can be used with add_text and edit_text. |
| photopea_run_scriptA | Execute arbitrary Photopea/ExtendScript JavaScript in the Photopea environment. Use this for advanced operations not covered by other tools. Has full access to the Photopea DOM (app, activeDocument, layers). Use with caution — scripts can modify or delete any document data. |
| photopea_undoA | Undo one or more recent actions in the active document. Each step reverses one operation from the history. Use after destructive operations (apply_filter, apply_adjustment, fill_selection) to revert changes. |
| photopea_redoA | Redo one or more previously undone actions in the active document. Only available after using undo — the redo history is cleared when new actions are performed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 46 tools
The tools mostly target distinct operations, and descriptions explicitly contrast similar pairs such as resize_document vs resize_canvas, crop vs trim, and merge_layers vs flatten. Some overlap remains among destructive/non-destructive fill and adjustment tools, but the descriptions provide enough guidance to select correctly.
All tools use a consistent photopea_ prefix and snake_case naming. Names generally follow verb_noun patterns such as photopea_add_layer, photopea_export_image, and photopea_make_selection, with only minor exceptions like photopea_undo and photopea_redo.
46 tools is a very large surface for an MCP server and far exceeds the typical 3-15 range. While an image editor is inherently complex, this many overlapping layer, selection, adjustment, and export tools risks overwhelming agents and increases selection burden.
The surface covers core image-editing workflows well: documents, layers, text, shapes, selections, masks, filters, adjustments, export, batch processing, and a run_script escape hatch. Some advanced editing features such as richer vector path tools or layered PSD save operations appear absent, but agents can work around many gaps via scripts.