Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Š 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🎨 Art & Culture
  3. Photopea MCP Server
Photopea MCP Server logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 1:18:30 PM

Photopea MCP Server

User RatingsBe the first to rate and review this MCP server!
View Repository35 GitHub StarsTotal stargazers on GitHub for the source repository (35 stars).Visit Website
image-editingphotopeagraphicsmcpbrowser

MCP server enabling AI-driven image editing via Photopea's browser-based Photoshop alternative.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
Automated check passed— started and listed 34 tools correctly (1mo ago).
Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "attalla1-photopea-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "photopea-mcp-server"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (34) Directory Badge Claim listing Alternatives🎨 More in Art & Culture

Overview

This MCP server connects an AI agent to Photopea, a browser-based image editor, enabling programmatic control of image editing tasks. It translates MCP commands into Photopea JavaScript API calls executed through a WebSocket bridge to a browser instance. Use this server when you want to automate or script complex image editing workflows with AI, including document creation, layer manipulation, text and shape editing, filters, and exporting images.

Use cases

•Create and resize image documents programmatically
•Add, edit, reorder, and group layers in images
•Insert and style text and shapes within images
•Apply filters, adjustments, and transformations to layers
•Export edited images in multiple formats

Key features

•Supports 34 tools for document, layer, text, shape, filter, effect, and export operations
•Controls Photopea via WebSocket bridge to a browser window
•Automatically opens a browser window on first use to run Photopea
•Supports loading custom fonts from URLs
•Exports images to PNG, JPG, WebP, PSD, and SVG formats

Capabilities & Tool Schemas (34) ~6.2k tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Verified live Verified liveCaptured by calling this server’s live tools/list endpoint.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Photopea MCP Server.

photopea_create_document

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_file

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_info

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_document

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_document

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_add_layer

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.

Documentation Overview

Photopea

Photopea MCP Server

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.

Glama score npm version license node

photopea-mcp-server MCP server

Demo

Demo

Prompt used in this demo: examples/album-cover-demo.md

How It Works

mermaid
graph LR
    A[Agent] <-->|stdio| B[MCP Server]
    B <-->|WebSocket| C[Browser]
    C <-->|postMessage| D[Photopea]

Your agent sends editing commands through the MCP protocol. The server translates these into Photopea JavaScript API calls and executes them via a WebSocket bridge to the browser.

Note: A browser window will open automatically on the first tool call. This is expected -- Photopea runs entirely in the browser and the server needs it to perform image editing operations.

Quick Start

Terminal
claude mcp add -s user photopea -- npx -y photopea-mcp-server

Then start a new Claude Code session and ask it to edit images. The Photopea editor will open in your browser automatically on the first tool call.

Installation

Claude Code

npx (recommended):

Terminal
claude mcp add -s user photopea -- npx -y photopea-mcp-server

Global install:

Terminal
npm install -g photopea-mcp-server
claude mcp add -s user photopea -- photopea-mcp-server

Claude Desktop

Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

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

Cursor

Add to Cursor MCP settings (.cursor/mcp.json in your project or ~/.cursor/mcp.json globally):

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

VS Code (Copilot)

Add to .vscode/mcp.json in your project:

config.json
{
  "servers": {
    "photopea": {
      "command": "npx",
      "args": ["-y", "photopea-mcp-server"]
    }
  }
}

Windsurf

Add to Windsurf MCP settings (~/.windsurf/mcp.json):

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

Available Tools

Document (5 tools)

ToolDescription
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

Layer (11 tools)

ToolDescription
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

Text & Shape (3 tools)

ToolDescription
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)

Image & Effects (9 tools)

ToolDescription
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

Export & Utility (6 tools)

ToolDescription
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

Usage Examples

Once installed, ask your agent to perform image editing tasks:

Create a poster:

"Create a 1920x1080 document with a dark blue background, add the title 'Hello World' in white 72px Arial, and export it as a PNG to ~/Desktop/poster.png"

Edit a photo:

"Open ~/photos/portrait.jpg, increase the brightness by 30, apply a slight gaussian blur of 2px, and export as JPG to ~/Desktop/edited.jpg"

Composite images:

"Create a 1200x630 document, place ~/assets/background.png as the base layer, then place ~/assets/logo.png and move it to the top-right corner"

Batch adjustments:

"Open ~/photos/sunset.jpg, apply hue/saturation with +20 saturation, apply an unsharp mask with amount 50 and radius 2, then export as PNG"

Development

bash
git clone https://github.com/attalla1/photopea-mcp-server.git
cd photopea-mcp-server
npm install
npm run build

Commands

CommandDescription
npm run buildCompile TypeScript to dist/
npm run devWatch mode with auto-reload
npm testRun unit and integration tests
npm startStart the server

Architecture

The server has four main components:

MCP Server (src/server.ts) -- Registers all 34 tools with the MCP SDK and connects via stdio transport.

WebSocket Bridge (src/bridge/websocket-server.ts) -- Manages the connection between the MCP server and the browser. Queues script execution requests and handles responses with timeouts.

Script Builder (src/bridge/script-builder.ts) -- Pure functions that translate tool parameters into Photopea JavaScript API calls. Each builder function generates a script string that Photopea can execute.

Browser Frontend (src/frontend/index.html) -- A single-page app that loads Photopea in an iframe, connects to the WebSocket bridge, and relays scripts to Photopea via postMessage. Returns results back through the WebSocket.

Code
src/
  index.ts              # Entry point: HTTP server, browser launch, MCP startup
  server.ts             # MCP server initialization and tool registration
  bridge/
    websocket-server.ts # WebSocket bridge with request queue
    script-builder.ts   # Photopea JS code generators
    types.ts            # Protocol message types
  tools/
    document.ts         # Document operations (5 tools)
    layer.ts            # Layer operations (11 tools)
    text.ts             # Text and shape operations (3 tools)
    image.ts            # Image, adjustment, filter operations (9 tools)
    export.ts           # Export and utility operations (6 tools)
  utils/
    file-io.ts          # Local file read/write, URL fetching
    platform.ts         # Port discovery, browser launch
  frontend/
    index.html          # Browser UI with Photopea iframe

Security

  • The MCP server binds to 127.0.0.1 (localhost only) and is not accessible from the network.
  • The photopea_run_script tool executes arbitrary JavaScript inside Photopea's sandboxed iframe. It is marked as destructive and requires user approval in MCP clients that support tool annotations.
  • File operations (open_file, export_image, place_image) read and write files with the same permissions as the user running the server.

Known Limitations

Read the full README →View source on GitHub →

Related MCP Servers

View all in Art & Culture View all alternatives
  • Davinci Resolve MCP logoDavinci Resolve MCP

    MCP server integration for DaVinci Resolve providing powerful tools for video editing, color grading, media management, and project control

    🎨 Art & Culture5 views
    Compare vs Davinci Resolve MCP →
  • Discogs MCP Server logoDiscogs MCP Server

    MCP server to interact with the Discogs API

    🎨 Art & Culture2 views
    Compare vs Discogs MCP Server →
  • MCPSeedream logoMCPSeedream

    ByteDance Seedream image generation and editing via Ace Data Cloud API.

    🎨 Art & Culture2 views
    Compare vs MCPSeedream →
  • Pixel Surgeon MCP logoPixel Surgeon MCP

    AI image and video generation, editing, and transplant-grade region repair. Multi-provider (Gemini 3.1 Flash Image, GPT Image 2, Grok Imagine, Veo 3), 9 tools, 4 style presets, grid-based and interactive crop repair. npx pixel-surgeon-mcp

    🎨 Art & Culture2 views
    Compare vs Pixel Surgeon MCP →

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars
35
Stargazers on the source repository.
npm downloads
388
Package downloads in the last 30 days.
Last commit
5mo ago
Most recent push to the default branch.
Availability
100%
Our rolling endpoint + install checks that succeeded.
Install check
Passed
Our sandbox started it and listed its tools.
Tools exposed
34
Callable tools this server registers over MCP.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Photopea MCP Server

The server uses a WebSocket bridge to send JavaScript API calls to Photopea running in a browser window.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPhotopea MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/attalla1-photopea-mcp-server?style=directory)](https://allmcps.com/mcp/attalla1-photopea-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/attalla1-photopea-mcp-server"><img src="https://allmcps.com/api/badge/attalla1-photopea-mcp-server?style=directory" alt="Photopea MCP Server on AllMCPs" /></a>

Technical Specs & Signals

Category🎨Art & Culture
PricingFree
More technical detailsExpand ▾
TransportSTDIO
RuntimeNode.js
AuthNo auth required
LicenseMIT
ClientsClaude Desktop, Cursor, Windsurf, Cline / VS Code
Last updatedAug 9, 2026
10/10 checks healthy over the last 33d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars35
GitHub Star CountTotal stargazers on GitHub representing community popularity (35 stars).
Last commit5mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Apr 5, 2026
npm downloads388/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
71Quality signal: Great · 71/100How this signal is calculated ▾
Server availability25/25
Verified ownership10/20
Documentation & tools30/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 24d ago via OSV.dev ¡ photopea-mcp-server (npm)

★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🎨 Art & Culture →Alternatives to Photopea MCP Server →Install in Claude DesktopInstall in CursorInstall in VS Code