Editmamei
Editmamei is a desktop MCP server that lets AI apps perform layered, editable photo edits in Photoshop or GIMP.
Connect AI assistants to Photoshop/GIMP for real, reversible edits.
Open, create, inspect, close, save, and export images (working PSD/XCF plus flattened or layered JPEG/PNG/WebP/TIFF/PSD).
Manage layers, groups, blend modes, opacity, text, masks, selections, and canvas geometry (crop, resize, rotate, flip, extend).
Apply non-destructive, re-editable adjustments and effects such as curves, levels, exposure, color, blur, sharpen, noise, vignette, glow, and shadows.
Retouch photos with heal, clone, and spot healing; fill with solid or gradient colors; match pasted layers to scene lighting.
Measure and verify edits using previews, histograms, region comparisons, selection previews, and checkpoints.
Use Photoshop-specific features like AI Select Subject/Sky, on-device perception, Camera Raw, batch processing, and Pro editing tools as described in the README.
List available capabilities and generate anonymized diagnostic reports for troubleshooting.
Drives headless GIMP as an independent second editing surface (beta, Community edition), exposing 24 gimp_* tools for document lifecycle (create, open, close, save XCF, export), layers and masks, non-destructive adjustments and effects, filters, canvas operations (crop, resize, transform, image-mode conversion), image placement, plus verification and checkpointing helpers such as previews, histograms, and region comparisons.
What you can ask
Talk to your assistant the way you'd brief a retoucher. These are three real requests, each in a fresh chat, with the result each one got.
Smaller requests work too, like "Isolate the subject onto its own layer with a clean mask" or "Export a 2048px web JPEG."
Here's the waterfall edit in its session. Your AI app runs beside your editor, and the result arrives on layers you can open and change yourself.
Related MCP server: photoshop-mcp-pro
Install
Claude Desktop, no terminal
Download
editmamei.mcpb.In Claude Desktop, go to Settings → Desktop app → Manage (next to Extensions) → Advanced settings → Install Extension… and choose the downloaded file.
Restart Claude Desktop, then ask it: "Is Photoshop connected?"
This route doesn't need Node.js, because Claude Desktop ships its own runtime. The install guide covers older versions of the app and updates.
Cursor and VS Code, one click
Each button opens the app, which asks before it adds Editmamei. Then ask it: "Is Photoshop connected?"
ChatGPT, Claude Code, Cursor and Codex, one command
npx -y editmamei install # adds Editmamei to each of these apps it finds
npx -y editmamei status # shows which AI apps it's registered withThen restart your AI app and ask it: "Is Photoshop connected?" In the ChatGPT desktop app, Editmamei's tools are in Work mode. In Claude Code alone, claude mcp add --scope user editmamei -- npx -y editmamei does the same.
Other MCP apps
Add a server that runs npx -y editmamei. For one editor's tools only, run npx -y @editmamei/photoshop-mcp or npx -y @editmamei/gimp-mcp instead. docs/clients.md has the config for Windsurf, Gemini CLI, Zed and other apps.
The Editmamei skill, for AI apps that load skills, teaches the assess, plan, edit and check workflow:
npx skills add editmamei/editmameiRequirements
Editor | Adobe Photoshop 2026 or later on Windows 10/11 or macOS 13+ (earlier versions back to 2020 may also work), or GIMP 3.2 on Windows, macOS, or Linux |
AI app | Any app that can run a local MCP server |
Node.js | 22+, for every route except the Claude Desktop extension |
What to expect
A first edit takes a while. The three requests above took 4 to 8 minutes, because your AI looks, plans, and checks at every step. Editmamei ships no chat model of its own, so every edit spends your AI app's tokens, and we measured what an edit costs.
If it works for you, a ⭐ helps other photographers find it.
Editmamei Connect
Want to edit from a browser or your phone, or don't have Photoshop or GIMP on this computer? Editmamei Connect is the hosted version. Add it to Claude, ChatGPT, or another AI app as a connector, send a photo, and get it back edited. There's nothing to install, and it's free to start.
Connect is a separate product, and its source isn't in this repository. It edits on Editmamei's server instead of on your computer, so your photo is uploaded, and uploads are deleted after 24 hours.
How it works
Your AI app decides each step and calls Editmamei's tools. Editmamei carries the step out in your editor and reports back with structured results and, when your AI needs to look, a preview. Your AI reads those and decides what to do next. Editmamei also sends content-free usage telemetry and checks npm for updates; see Privacy.
Real edits. Photoshop or GIMP does the pixel work with its own engine. Editmamei generates nothing itself; when an edit uses an AI feature built into the editor, like Sky Replacement, that's the editor's own tool at work.
Reversible. In Photoshop, adjustments land as adjustment layers and destructive pixel operations run on an automatic duplicate. In GIMP, adjustments stay live filters, and checkpoints stand in for undo.
Checked, not assumed. Histograms, region comparisons, and selection previews let your AI measure its own work.
On-device vision. In Photoshop, face, object, and scene detection run locally on bundled ONNX models, so your AI can target "the person on the left" without a cloud vision call.
Only verified tools ship. A new tool stays out of the tool list until it has passed live sessions against real Photoshop or GIMP.
111 tools: 79 for Photoshop (64 Community, 15 Pro) and 32 for GIMP (29 Community, 3 Pro). The full list is in docs/tools.md.
GIMP
When GIMP 3.2 is detected on your machine, a gimp_* tool set registers next to the ps_* one, for when you ask for GIMP or Photoshop isn't available. Edits happen in a background gimp-console process with no visible window, and you follow along through previews in the conversation. GIMP doesn't yet cover heal/clone or AI subject and sky selection. Details and troubleshooting, including Linux, are in docs/gimp.md.
Free and Pro
Community (free) | Pro | |
Documents, layers, masks, type, filters, and retouching | ✓ | ✓ |
Non-destructive adjustments | ✓ | ✓ |
AI Select Subject and Select Sky | ✓ | ✓ |
On-device perception | ✓ | ✓ |
Previews, histograms, and comparisons | ✓ | ✓ |
GIMP tools | ✓ | ✓ |
Camera Raw as a re-editable filter, and raw files developed before they open | ✓ | ✓ |
Mindsets: edits planned the way a kind of photographer would work, including your own | ✓ | |
Folder batch, including many raw files at once | ✓ | |
Warp, named-object masks, and precision placement | ✓ | |
Subject-instance and face-mesh targeting | ✓ | |
Photoshop Actions and the scripting escape hatch | ✓ |
Pro is a Photoshop upgrade; in GIMP it adds mindsets only. The split is detailed in pro-features.md, and pricing is at editmamei.com/desktop/pricing.
This repository holds the Community source. Pro is a separately licensed module and its source is not published here. Community never imports it, so this tree builds and runs on its own.
Privacy
Editmamei runs on your computer and edits in your desktop editor. No image content or file paths are sent to Editmamei's servers.
What | Where it goes | Setting |
Your photo file | Stays on your computer, apart from the previews below and any Adobe cloud selection | |
Previews, 1024px on the long edge by default (your AI can ask for up to 8192px) | Your AI app's model provider, the same as dropping a photo into a chat |
|
Tool results, such as file paths, layer names, measurements, and metadata like GPS if your AI asks for it | Your AI app's model provider | |
Content-free usage telemetry, with a random install ID | Editmamei |
|
Names of editing features and tool options used, from fixed lists (tool schemas and a published list), with no install ID | Editmamei |
|
Sanitized error details | Editmamei, only if you opt in |
|
Update check, with no identifiers | The npm registry |
|
Change these with editmamei config set <setting> false (or true). The Claude Desktop extension has its own switches for telemetry, feature names, diagnostics, and the update check. Pro also sends your license key and a per-device activation ID to a third-party licensing service, and to Editmamei's delivery service to check for module updates, plus a hashed device ID at activation. These have no setting. Photoshop's own Select Subject and Select Sky can use Adobe's cloud, depending on Photoshop's Image Processing preference.
Every field is documented in privacy.md, including your rights, and the legal basis. npm releases are published from this repository with signed provenance, so you can check the package against this source.
For developers
Editmamei is a stdio MCP server. In any MCP client, add a server that runs npx -y editmamei. @editmamei/photoshop-mcp and @editmamei/gimp-mcp are launchers that set EDITMAMEI_EDITOR and depend on the same release; their source is in wrappers/. The MCP reference covers client config, architecture, the MCP surface, settings and environment variables, and each network request the server makes.
The discovery chain is ps_ping (liveness), then ps_overview (the working method and capability map), then tools/list (the full schema-typed inventory). Every tool declares an outputSchema and returns typed JSON.
Build from source
git clone https://github.com/editmamei/editmamei.git
cd editmamei
npm install
npm run build
npm testYou need Node.js 22+ and Go 1.21+. The build compiles the editmamei-core binary that generates Photoshop scripts; it needs Go 1.27, which Go fetches for you from 1.21 on. The build warns instead of failing when Go is missing, so you can still run the test suite. Set EDITMAMEI_CORE_BIN to a prebuilt binary if you would rather not install Go.
The test suite runs without Photoshop. It verifies the ExtendScript Editmamei generates, never that Photoshop accepted it, so live verification against a real Photoshop is a separate step.
Contributions are welcome. CONTRIBUTING.md covers the CLA, the branch and pull-request flow, and what to include in a bug report.
Documentation
Guide | What's in it |
Every install route, updates, and Photoshop detection | |
Your first session and how to get good results | |
Setup for each client, and known limits | |
Every tool, by group and edition | |
Requirements, coverage, and troubleshooting | |
What Pro adds, and how to activate it | |
Architecture, settings, and network requests | |
Common questions | |
Fixes for common problems | |
What's planned |
Found a bug or want a feature? Use the issue tracker. If something's broken, ask your assistant to "report a problem" (or run editmamei report) to drop an anonymized diagnostic bundle in your Downloads folder, then attach it to the issue. For security issues, see SECURITY.md and don't file them publicly.
License
Editmamei CE is Fair Source software under the Functional Source License, v1.1, MIT Future License (FSL-1.1-MIT).
You can read, run, modify, and redistribute the code for almost anything: commercial photo editing, internal tools, education, research, security review. The one thing the license holds back, for two years per release, is offering the code to others in a commercial product or service that competes with Editmamei CE or Pro. If you redistribute the code, keep the license and copyright notices with it. Two years after each version ships, that version automatically becomes available under plain MIT.
This section is a plain-English summary. The LICENSE file is the license; where they differ, the LICENSE file controls. Editmamei is not open source under the OSI definition, and we don't call it that. It is source-available, with the full CE stack developed in the open.
Editmamei Pro is a separate, commercially licensed module; its source is not published. Third-party dependencies keep their own licenses, listed in NOTICES.md.
Available Tools
34 toolsgimp_add_adjustmentA
Headless GIMP: append (or, with filter_id, re-edit in place) a NON-DESTRUCTIVE adjustment filter — stays live and re-editable; nothing bakes into pixels until gimp_export, and gimp_filter op=delete removes it again. type picks the adjustment: curves, levels, exposure, brightness_contrast, hue_saturation, color_balance, color_temperature, shadows_highlights, saturation, vibrance, sharpen, noise_reduction, gaussian_blur, clarity. A field another type uses is refused, naming this type's own fields. A filter applies to ONE layer (layer_id or layer, else the selected or top layer), not to the flattened image — on a multi-layer document, say which layer. For type vibrance, the knob is the vibrance field — saturation on that type is a separate plain multiplier that normally stays untouched. curves: ONE filter per channel — add separate filters for red and blue rather than one filter for both; points are [input, output] 0-255 pairs including the endpoints. hue_saturation and color_balance likewise carry ONE range per filter. gaussian_blur: radius in pixels at full resolution; combine with a saved-selection mask for soft-focus or background-blur effects. clarity: midtone local contrast (the clarity field, 0..100); reach for it instead of a large-radius sharpen. A re-edit (filter_id) MERGES: any field you omit keeps the filter's existing value, so re-editing {contrast: 50} on a brightness_contrast filter doesn't reset brightness. Only filters Editmamei created can be re-edited; one added in the GIMP GUI is refused (delete and re-create it). mask (a saved selection channel name) confines a NEW filter — fixed at creation, cannot change on a re-edit. ORDER MATTERS: straighten / flip / resize the canvas first, then crop, THEN add any masked adjustment — rotate, flip, and resize all refuse outright once a masked adjustment filter exists, or any filter not created by Editmamei (for example one added in the GIMP GUI). color_temperature's direction is counter-intuitive: raising to_kelvin WARMS the image. Check the stack afterward with gimp_filter (op=list).
Inputs: type (required), image (required), hue, mask, +37 more. Returns: mask, name, type, filter_id
gimp_add_effectA
Headless GIMP: append (or, with filter_id, re-edit in place) one of a small allow-listed set of GEGL effect filters — vignette, black_white, motion_blur, lens_blur, add_noise, drop_shadow, outline, outer_glow, surface_blur — the same non-destructive, re-editable, maskable filter mechanism gimp_add_adjustment uses, sharing the SAME stack: gimp_filter's op=list/set_visibility/delete manage this tool's filters exactly as it manages gimp_add_adjustment's. type picks the effect; a field another effect uses is refused, naming this type's own fields. A filter applies to ONE layer (layer_id or layer, else the selected or top layer), not to the flattened image. A re-edit (filter_id) MERGES: any field you omit keeps the filter's existing value. Only filters Editmamei created can be re-edited; one added in the GIMP GUI is refused (delete and re-create it). mask (a saved selection channel name) confines a NEW filter — fixed at creation, cannot change on a re-edit. ORDER MATTERS: straighten / flip / resize the canvas first, then crop, THEN add any masked effect — rotate, flip, and resize all refuse outright once a masked filter exists, or any filter not created by Editmamei. vignette, motion_blur, and drop_shadow stay locked to the content through flip, resize, and an exact 90/180/270-degree rotate (their center/angle/offset fields are updated automatically, and gimp_filter op=list reflects the new values afterward) — rotating by any OTHER angle is refused while a vignette, a motion_blur, or a drop_shadow with a non-zero offset is present, rather than letting it drift out of alignment. outline, outer_glow, surface_blur, lens_blur and a zero-offset drop_shadow have no direction, so they survive any rotation. Resizing scales their pixel sizes with the image (never below the 1 px minimum of outline width, outer_glow radius and surface_blur radius). lens_blur is a uniform soft-focus blur, not a depth-of-field falloff. outline puts a solid stroke around a layer's transparent edge (meme text, sticker cut-outs); outer_glow adds a soft glow around it (glowing text); surface_blur smooths skin and other texture while keeping hard edges. outline and outer_glow need a layer with transparency, and attach to a text layer without rasterizing it: the text stays editable and the effect follows each edit. For a plain blur with no bokeh highlight boost, use gimp_add_adjustment type=gaussian_blur instead. Check the stack afterward with gimp_filter (op=list).
Inputs: type (required), image (required), mask, name, +25 more. Returns: mask, name, type, filter_id
gimp_bakeADestructiveIdempotent
Headless GIMP: bake a layer's live filters into its own pixels without merging it into anything else — the layer survives as itself, just with no more re-editable filters; a text layer stays a text layer (baking never rasterizes one). A masked filter's confinement survives the bake exactly. Defaults to the selected layer, or the topmost layer if none is selected, the same as any other gimp_layer addressing. Baking clears any masked-filter refusal (gimp_canvas, gimp_resize_image, gimp_transform_canvas) that filter would otherwise trigger — it is the sanctioned way to make a masked adjustment safe to resize, rotate, or flip around. all: true bakes every ordinary layer with a live filter at once; a group layer is always skipped, even one that carries its own filter (GIMP cannot merge filters on a group item) — reported under skipped_groups_with_filters rather than silently ignored. Targeting a group directly (layer/layer_id) is refused outright. IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint or gimp_save_xcf first when in doubt.
Inputs: image (required), all, layer, layer_id. Returns: name, baked, layer_id, baked_layers, +1 more
gimp_canvasADestructive
Headless GIMP: extend the canvas — grow it and reposition the existing content within the larger frame, never shrink (use gimp_crop_document for that; REFUSED outright when either dimension would be smaller than the current one, and REFUSED when neither dimension actually grows). Choose where the existing content lands with anchor (a 3x3 grid, default 'center') or explicit offset_x/offset_y; give one or the other, not both. fill sets a solid backdrop layer under the WHOLE canvas — white, black, a '#rrggbb' hex color (rendered as luminance on a grayscale image), or transparent (default, adds no backdrop layer at all — see its own field description for what that means at export/flatten time). IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint or gimp_save_xcf first when in doubt. REFUSES outright when the image has a masked filter, or any filter not created by Editmamei (for example one added in the GIMP GUI) AND the existing content actually moves (offset_x/offset_y not both 0 — for example a top-left anchor never moves anything) — extend the canvas before adding any masked filter, not after: a filter's mask does not travel with the layer it confines when the canvas repositions it, the same physics gimp_resize_image and gimp_transform_canvas already refuse on. An unmasked effect filter (vignette and friends) is unaffected — its own params key off the LAYER's own unchanged extent, never the canvas.
Inputs: image (required), width (required), height (required), fill, +3 more. Returns: width, height, offset_x, offset_y
gimp_checkpointADestructive
Headless GIMP: disk-backed checkpoints — the substitute for undo in a session that has none. op=create exports the image's CURRENT state, every live filter included, to a snapshot file and returns a checkpoint_id. op=restore reopens that snapshot as a NEW image and closes the old one — replace semantics, not a copy: the old image id stops working once the close succeeds (if it fails instead — reported as close_failed: true — the old image stays open, and both ids are valid). It returns the new image id and says so plainly, e.g. "image N closed; restored as image M — use M from now on". A checkpoint survives a GIMP crash or timeout: restore reopens the FILE, not anything the crashed process held, so it still works right after a gimp_session_restarted error — that is the whole point of keeping it on disk instead of in GIMP's own memory. Each image holds at most 5 checkpoints; a checkpoint whose own image has since closed doesn't count against a different image that later reuses the same number. A 6th op=create for the same still-open image REFUSES outright rather than silently evicting the oldest — delete one first (op=delete) or list them (op=list) to see what exists. This store also holds at most 20 checkpoints in total, across every image, since each one still takes up disk space until deleted. Checkpoint files are kept while this server runs and removed when it exits; files left by a server that crashed or was killed are cleaned up by a later server, once they are more than an hour old, the next time a checkpoint is made. op=list reports checkpoint_id, the image it currently belongs to, created_at, and its size in bytes — never a file path (a full path carries the username) — plus open: false for a checkpoint whose image has since closed (still restorable; just excluded from that image's own scoped list and cap) and pending: true while a create is still in flight. op=restore also returns the reopened image's base_type, precision, and layers, the same as gimp_open_document. An unknown checkpoint_id on restore or delete is refused, naming every checkpoint_id that IS known.
Inputs: op (required), image, checkpoint_id. Returns: bytes, image, width, height, +10 more
gimp_close_documentADestructive
Headless GIMP: close an image WITHOUT saving. Save first with gimp_save_xcf (keeps filters live) or gimp_export (deliverable) if the work should be kept.
Inputs: image (required). Returns: closed
gimp_compareARead-onlyIdempotent
Headless GIMP: mode='before_after': proxy base (no filters) vs proxy+filters — whole image or a region — per-channel mean/percentile deltas, optionally with paired before/after preview images (include_previews). Previews are subject to privacy.send_previews_to_llm — when it's false, no image is returned even with include_previews:true, and the result text says so explicitly. mode='regions': stats for two named rectangles on the current (filtered) image — the gimp_* twin of ps_compare_regions.
Inputs: mode (required), image (required), max_px, region, +4 more. Returns: after, delta, proxy, before, +4 more
gimp_convert_image_modeADestructiveIdempotent
Headless GIMP: convert the image's base color mode, rgb <-> grayscale — an indexed image is refused outright as a source. Converting to grayscale permanently discards color; converting an already-grayscale image to rgb does not restore it. A no-op when the image is already the requested mode (reported as converted: false, nothing else changes — checked BEFORE the live-filter refusal below, so a no-op call never fails just because a filter happens to be present). Otherwise REFUSES outright while the image has ANY live filter — a color-dependent filter (curves on the red channel, hue_saturation, a vignette color, ...) could change meaning across the mode change. Bake it first (gimp_bake) or delete it (gimp_filter op=delete), then convert. IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint or gimp_save_xcf first when in doubt.
Inputs: mode (required), image (required). Returns: mode, converted
gimp_create_documentA
Headless GIMP: create a new, empty image from scratch — not from a file (that is gimp_open_document). width/height, mode (rgb/grayscale, default rgb), fill for the single background layer (white/black/transparent, default white), optional precision (16/32-bit, same promotion gimp_open_document's own precision does) and name. Returns the exact same shape gimp_open_document does (image id, dimensions, base type, precision, layer list), so every other gimp_* tool treats it identically to an opened file.
Inputs: width (required), height (required), fill, mode, +2 more. Returns: image, width, height, layers, +2 more
gimp_crop_documentADestructive
Headless GIMP: crop the canvas to an explicit rectangle (left, top, width, height in document pixels) — not a scale (that is gimp_resize_image). IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint (or gimp_save_xcf) first when in doubt. Every live filter, mask channel, and the filter ledger survive a crop — verified live; it is the one geometry op that never refuses for masked-filter safety.
Inputs: top (required), left (required), image (required), width (required), +1 more. Returns: width, height, effect_update_failures
gimp_exportADestructive
Headless GIMP: write a deliverable to disk — every live filter is baked in, and ALL metadata (EXIF/XMP/IPTC/GPS, thumbnail) is stripped unconditionally, never carried over from the source. Format is picked from the file_path extension: jpg/jpeg, png, webp and tif/tiff write a FLATTENED image; psd writes a LAYERED file for finishing in Photoshop or another editor. In a PSD, layers keep their masks, opacity, blend modes, visibility and groups; filters are baked into each layer; a group with its own filter is merged into one layer; text layers become pixels. Photoshop blends partly transparent layers and blend modes in gamma space, so those can look slightly different there — the result lists them. Any other extension is refused, and .xcf is refused outright — use gimp_save_xcf for the live, re-editable document instead. Refuses to overwrite an existing file unless overwrite: true (with it, the existing file is replaced). A flattened image is composited onto white by default; keep_alpha: true (png or webp only) keeps transparency, so a cut-out exports with a transparent background. The color profile is not metadata and is kept: a wide-gamut photo (an iPhone's Display P3) is written with its profile embedded unless color_profile converts it, and the result reports the space written.
Inputs: image (required), file_path (required), quality, lossless, +6 more. Returns: path, bytes, format, layers, +5 more
gimp_fillA
Headless GIMP: add a NEW layer, canvas-sized, filled with a solid color (op solid), a linear gradient (start to end) or a radial gradient (center and radius) through 2-8 color stops. The layer goes directly above the target layer (inside its group), with the blend mode and opacity you give; mode lch_color tints without touching lightness, the usual choice for recoloring. Pass mask (a channel name) to confine the fill to that channel: it becomes the layer mask. Gradients blend in sRGB, are not dithered, and use image pixels for every point. The current selection is kept and does not clip the fill. Do NOT use for painting strokes or touching up pixels; use gimp_retouch for that. Returns layer_id, layer_name, op, mode, opacity and masked.
Inputs: op (required), image (required), end, mask, +10 more. Returns: op, mode, masked, opacity, +2 more
gimp_filterADestructive
Headless GIMP: manage the live filter stack: op list | set_visibility | delete. delete permanently removes that filter, or every filter in filter_ids (there is no undo). No apply op — creating or re-editing a filter is gimp_add_adjustment's job; this tool only inspects or manages what already exists. No reorder (GIMP has no API for it) — delete and re-create in the desired order instead. list is the way to check what a stack of gimp_add_adjustment calls actually produced, and to find a filter's id for a re-edit.
Inputs: op (required), image (required), visible, filter_id, +1 more. Returns: name, deleted, filters, visible, +2 more
gimp_get_histogramARead-onlyIdempotent
Headless GIMP: statistics for several channels from ONE render: mean, median, 1st/5th/95th/99th percentiles, and a 256-bin histogram per channel (bins[v] = pixel count at value v, 0-255). luminance uses babl's D50 perceptual weights. Default is fast (~0.3s, the 1024px proxy render) — good for iterating, but small clipped highlights can be under-counted; pass exact: true (~4s on 24MP) as the final clipping check before gimp_export.
Inputs: image (required), mask, exact, region, +1 more. Returns: exact, width, height, pixels, +2 more
gimp_get_previewARead-onlyIdempotent
Headless GIMP: render the image with live filters applied and return it as a JPEG so you can look at it — fast (~0.25-0.45s at 1024px). Also always refreshes the latest-preview.jpg file in the session folder (the headless session has no visible window; this is how a human follows along). Previews are ~96% of returned bytes — prefer gimp_get_histogram for a parametric check (did the tone actually move?) and reach for this one for spatial questions. region renders a full-resolution crop instead of the whole-image proxy — exact for spatial filters rather than approximate. Respects privacy.send_previews_to_llm: when disabled, no image bytes are returned, only the dimensions and the preview file name.
Inputs: image (required), max_px, region. Returns: path, proxy, width, height, +2 more
gimp_get_selection_previewARead-only
Headless GIMP: see a saved selection — overlay (red over what is NOT selected, Quick Mask style) or the mask itself. Always check a selection before using it. Respects privacy.send_previews_to_llm: when disabled, no image bytes are returned, only the dimensions.
Inputs: image (required), channel (required), style, max_px. Returns: width, height
gimp_inspectARead-onlyIdempotent
Headless GIMP: read-only state reader. what: 'documents' lists every image currently open in this headless GIMP session by id. 'document' describes ONE open image (dims, base_type, precision, color_profile, resolution, full layer tree, channels by id/name only — no coverage); 'layers' returns just the tree; 'channels' returns the channels WITH coverage (selected_pixels/fraction), the cost 'document' skips, and can stop early on a document with many named channels (truncated: true, channels_skipped). 'filter' describes one filter by filter_id, in the same shape gimp_filter (op=list) reports it in. 'fonts' lists the installed font names (no image needed), sorted, optionally narrowed by filter (substring), capped at 200 with a total. Layer tree nodes are addressed by layer_id (canonical — GIMP allows duplicate layer names) and report opacity, mode, blend_space and composite_space (auto/linear/perceptual) and flag is_text_layer; a text layer's node also reports its text, font, font_size (points), color and alignment. 'document'/'layers' cap the tree at 2000 nodes total and report truncated: true if the cap was hit, alongside top_level_count and total_nodes; a call that runs past its time limit keeps running and the next call waits for it; ask again then for the listing.
Inputs: what (required), image, filter, filter_id. Returns: mask, name, type, what, +25 more
gimp_layerADestructive
Headless GIMP: layer management. op: create | create_group | delete | duplicate | select | set | reorder | merge_down | flatten (a group is created, addressed, and reordered the same as any other layer — there is no separate group tool). Addressed by layer_id (canonical — an id from gimp_inspect or a prior gimp_layer/gimp_bake result) or layer (name; GIMP allows duplicate names, so layer_id is the only handle that always tells two apart). Every op except select changes pixels or layer structure, and there is no undo in this session: gimp_checkpoint or gimp_save_xcf first when in doubt. duplicate REFUSES outright when the layer (or, for a group, any descendant) carries an Editmamei filter, since the copy's filter would collide with the original's own ledger record; bake it first (gimp_bake) or delete it, then duplicate. merge_down REFUSES outright when the SOURCE layer itself is hidden (GIMP cannot merge a hidden layer down); it and flatten both bake every live filter they touch into pixels first (masked filters included) and rasterize any VISIBLE text layer in the process (rasterized_text); flatten always drops alpha (has_alpha: false) and, by default, REFUSES outright when any layer is hidden — INCLUDING one whose own visibility is on but sits inside a hidden group — rather than silently discarding it (discard_hidden: true proceeds and reports what was discarded).
Inputs: op (required), image (required), fill, mode, +12 more. Returns: mode, name, deleted, opacity, +8 more
gimp_layer_maskADestructive
Headless GIMP: a real layer mask (moves with the layer). create from a saved selection (e.g. from gimp_select) or white/black/alpha/grayscale; delete; apply (bake into alpha — a cut-out); invert. For a cut-out composite: place the photo as a layer, select on that layer, then create its mask from the channel.
Inputs: op (required), image (required), layer, invert, +3 more. Returns: op, layer, has_mask, layer_id
gimp_match_layerA
Headless GIMP: make a pasted or composited layer sit in its scene by pulling its colour and tone toward the surrounding pixels. Measures the layer's visible pixels (alpha and layer mask) against a reference region of everything below it, then adds LIVE curves filters named "Match red/green/blue" (match: both or color) or "Match value" (match: tone) that move the layer's per-channel mean and spread toward the reference by strength. The filters are ordinary ones: list, hide, re-edit or delete them with gimp_filter and gimp_add_adjustment (filter_id); nothing bakes until gimp_export. Calling it again REPLACES the previous match filters on that layer instead of stacking them. The layer is measured as it renders with its other filters, so run it after the layer is placed, cut out and transformed. Optional edge_contract_px / edge_feather_px refine the layer mask to hide a cut-out fringe. Refuses a layer group, a text layer (bake it first), a locked layer, a layer with no visible layers beneath it, and a region with fewer than 500 pixels. The result reports the filters made, each channel's before/after mean and std (0-255; after is the map's expected value) and the pixel counts measured.
Inputs: image (required), layer, match, layer_id, +5 more. Returns: edge, layer, match, filters, +7 more
gimp_modify_selectionADestructive
Headless GIMP: expand, contract, border, feather, smooth, invert, harden or delete a saved selection. Refused if the target channel already confines a filter.
Inputs: op (required), image (required), channel (required), px, +1 more. Returns: channel, deleted, fraction, selected_pixels
gimp_open_documentA
Headless GIMP: open an image file — any format this GIMP install can load (JPEG, PNG, TIFF, WebP, HEIC/HEIF, XCF, and more) — in the headless GIMP session and return its image id — the id every other gimp_* tool keys on (there is no "active document" concept: explicit ids beat hidden state). Opening a .xcf restores its live, re-editable filters (the editmamei-filters ledger). Any selection saved in the file is cleared on open (every gimp_* op works on the whole canvas), so a later gimp_save_xcf does not keep it. Raw camera files need a raw-develop plug-in (darktable, RawTherapee, or ART) installed in GIMP; without one they are refused with a hint to develop them externally first. precision promotes bit depth before grading — use it ahead of an aggressive tone move on an 8-bit source.
Inputs: file_path (required), precision. Returns: image, width, height, layers, +3 more
gimp_overviewARead-onlyIdempotent
Headless GIMP: orientation brief for the gimp_* tool surface — the headless workflow contract, curve laws (one filter per channel; re-edit by filter_id, don't stack), ledger-truth vs. readback, .xcf-vs-export, precision guidance, mask/geometry ordering, no undo for geometry, proxy-preview caveats, raw-file handling, and when to prefer gimp_* over ps_*. READ THIS FIRST when you're given an open-ended GIMP editing task. Read-only, idempotent, no document required, no GIMP round trip (returns a static markdown brief). Skip it for a trivial single-tool request where you already know which tool fits.
Inputs: no named parameters. Returns: brief, bytes, sections
gimp_pingARead-onlyIdempotent
Headless GIMP: test connection to the GIMP session and report session-start discovery signals. Starts the session on the FIRST call if it is not already running — this cold start is usually just a few seconds (about 10 seconds on macOS), so expect the first gimp_ping (or any first gimp_* call) in a session to be a bit slow; every call after that is fast. The VERY FIRST launch on a machine can instead take a few minutes (GIMP building its font cache, scanning plug-ins, macOS Gatekeeper) — during that window gimp_ping reports starting: true in structuredContent rather than failing; call it again in about 30 seconds. Read-only and idempotent. Call this once at the start of a GIMP-editing task to confirm liveness before invoking any other gimp_* tool. Also call gimp_overview after this — it returns the headless workflow contract (curve laws, ledger vs. readback, geometry-before-masks ordering) so you can plan well; GIMP semantics differ from Photoshop in ways that matter. Never returns an error — a failed connection (or one still starting) is reported via connected: false plus an explanatory message, the same posture ps_ping takes.
Inputs: no named parameters. Returns: busy, message, starting, connected, +5 more
gimp_place_imageA
Headless GIMP: load another image file as a new layer in an already-open document — compositing, not opening a second document. Absolute file_path, same format support and raw-file handling as gimp_open_document. If the source has multiple layers (e.g. a .xcf), only ONE of them is placed — GIMP's own choice, not a flattened composite of the whole file. A source whose color mode (RGB/grayscale) differs from this image's own is converted automatically on load, never refused. x/y place the layer at an ABSOLUTE document-pixel offset (not a delta), default (0, 0); width/height optionally scale it first (one alone keeps the source's own aspect ratio). name/parent_group/position work exactly like gimp_layer op=create. A source layer's OWN live filters (e.g. from a filtered .xcf) are baked into its pixels before placing, never placed live (reported as baked_filters). Nothing from the source file's own metadata (EXIF/XMP) attaches to this image, and no path — just the placed layer — appears in the result; there is no undo in this session: gimp_checkpoint or gimp_save_xcf first when in doubt.
Inputs: image (required), file_path (required), x, y, +5 more. Returns: x, y, name, width, +4 more
gimp_resize_imageADestructive
Headless GIMP: scale the whole image up or down — not a crop (that is gimp_crop_document). Give width+height to stretch to an exact box, one alone to keep aspect, or long_edge to scale by the longer side. IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint (or gimp_save_xcf) first when in doubt. REFUSES outright when the image has a masked filter, or any filter not created by Editmamei (for example one added in the GIMP GUI) — resize before adding any masked filter, not after. A large target (the bridge allows up to 250 megapixels / 30000px per side) can take tens of seconds; a call that runs past its time limit keeps running and the next call waits for it (do not repeat it). Only a GIMP that stops answering for 15 minutes is restarted, losing unsaved work, so a checkpoint (gimp_checkpoint) before an aggressive resize is still wise.
Inputs: image (required), width, height, long_edge. Returns: width, height, effect_update_failures
gimp_retouchADestructive
Headless GIMP: heal or clone pixels with a round brush. method heal paints a stroke that samples texture from elsewhere and blends it into its surroundings, for blemishes, dust and scratches; clone paints a stroke that copies the sampled pixels exactly; spot_heal takes round spots {x, y, radius} and picks each one's source automatically, from the nearby area whose brightness and texture best match the ring around the spot. Everything is in image pixels. By default (target retouch_layer) the paint lands on a "Retouch" copy of the layer directly above it, shown only where you painted, so the original and the picture everywhere else stay untouched; later calls reuse that copy while it stays directly above the layer it was made from. target in_place paints the layer itself, and is required for a layer that is below 100% opacity, not in Normal mode, or has a layer mask; a layer with semi-transparent pixels also shows its original through the copy, so use in_place there. The current selection is kept and does not clip the retouch. Refuses layer groups, text layers, locked or hidden layers, indexed images, and any point or spot outside the layer. A call has a work limit (a long stroke with a big brush, or many large spots): split it into several calls or use a smaller brush. Do NOT use for removing whole objects; a stroke or spot only blends in texture at the size of the brush. Returns layer_id, layer_name, created_layer, painted_bbox [x, y, w, h] and, for spot_heal, each spot's chosen source offset and score (lower is a closer match).
Inputs: image (required), method (required), layer, spots, +8 more. Returns: spots, method, target, hardness, +5 more
gimp_save_xcfA
Headless GIMP: save the live GIMP document to a .xcf file — filters stay in place and re-editable afterward (the ".xcf ≈ .psd" framing: it is the working file, not the deliverable). Unlike gimp_export, this does NOT strip metadata — the source file's EXIF/XMP/IPTC (including GPS) carries into the .xcf exactly as it was on open, since this saves the working document itself rather than exporting a flattened copy. Refuses to overwrite an existing file unless overwrite: true. Save early: on a very large document a save can take tens of seconds. A call that runs past its time limit keeps running and the next call waits for it, so nothing is lost; only a GIMP that stops answering for 15 minutes is restarted, which loses every unsaved open image and filter. For a shippable copy with metadata stripped (flattened, or a layered .psd), use gimp_export instead.
Inputs: image (required), file_path (required), overwrite. Returns: path, bytes
gimp_selectADestructive
Headless GIMP: make a selection, saved as a NAMED channel (no live selection persists between calls): rectangle/ellipse/polygon/colour range/magic wand/layer alpha/gradient/another channel. Combine add/subtract/intersect by reusing a name. Use the channel as gimp_add_adjustment's mask when creating a filter, or gimp_layer_mask for a real layer mask. Make selections after straighten/resize/crop.
Inputs: mode (required), image (required), x, y, +20 more. Returns: channel, fraction, selected_pixels
gimp_textA
Headless GIMP: create a live, editable text layer or restyle one, chosen with op (create, set_content, set_font, set_color, set_alignment, set_box) — the same ops and parameters as ps_text, plus a fixed box with wrapping and fit. create adds a layer at x/y with text, font_size in points, and optional font_name, red/green/blue and alignment; it reports layer_id, name, bounds, the image ppi and the font size in pixels. The set_* ops change the text layer named by layer_id or layer (a non-text layer is refused). Fonts accept a family ("Inter") or full name ("Inter Bold"), case-insensitive; a miss is refused with the closest installed names (list them with gimp_inspect what=fonts). Text is capped at 2000 characters, and a layer that would render past the size limit is refused and leaves the document unchanged. GIMP supports LEFT, CENTER, RIGHT and FULLYJUSTIFIED alignment only. box {width, height?} (create, set_box) fixes the text box so text wraps at width; fit shrinks the size to approximately the largest size at which the wrapped text fits a box with both sides; the result then carries box and, for fit, fitted and fit_probes. Text sits at the top of the box (no vertical alignment). There is no undo in this session: gimp_checkpoint or gimp_save_xcf first when in doubt.
Inputs: op (required), image (required), x, y, +12 more. Returns: box, ppi, font, name, +13 more
gimp_transform_canvasADestructive
Headless GIMP: op 'rotate' (arbitrary degrees — straighten — plus expand) | 'flip' (orientation horizontal/vertical). IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint (or gimp_save_xcf) first when in doubt. REFUSES outright when the image has a masked filter, or any filter not created by Editmamei (for example one added in the GIMP GUI) — straighten/flip before adding any masked filter, not after (crop is the one geometry op that is always safe afterward). A rotate to anything other than an exact 0/90/180/270 degrees is also refused while a position/direction-dependent filter is present, since only a right angle keeps such a filter locked to the content — rotate at a right angle instead, or delete it (gimp_filter op=delete) and re-add it afterwards. Rotating a very large image can take tens of seconds; a call that runs past its time limit keeps running and the next call waits for it (do not repeat it). Only a GIMP that stops answering for 15 minutes is restarted, losing unsaved work, so a checkpoint (gimp_checkpoint) before rotating a large canvas is still wise.
Inputs: op (required), image (required), expand, degrees, +1 more. Returns: width, height, degrees, effect_update_failures
gimp_transform_layerADestructive
Headless GIMP: transform the active layer (layer/layer_id) — op selects fit|scale|move|rotate|flip|skew|free, each documented on op. Rotate/skew/free grow the layer so nothing clips; a layer with no alpha gets one (alpha_added). REFUSES when the layer, or a group target's descendants, carries a masked filter, or an unmasked effect this transform cannot keep locked to the content.
Inputs: op (required), image (required), axis, mode, +14 more. Returns: axis, mode, bounds, degrees, +12 more
ps_list_capabilitiesARead-onlyIdempotent
Live map of every tool this MCP exposes, grouped by capability — each group is a one-line purpose plus the tool names in it. Read-only and cheap. Reach for it to re-orient mid-session (what exists, what to reach for) when the overview brief has scrolled out of context, or to learn which tool names to look up. ps_overview tells you HOW to combine tools; this tells you WHAT exists, currently; tools/list has the full schema for any one you pick.
Inputs: no named parameters. Returns: groups, tool_count, group_count, adobe_credit_tools_off
ps_report_problemA
Collect an ANONYMIZED diagnostic bundle and write it to the user's Downloads folder so they can attach it to a bug report — use when Editmamei misbehaves (won't connect, a tool keeps failing, unexpected results). The bundle holds recent server logs, system info (Editmamei/OS/Photoshop versions), and a content-free summary of recent tool calls (name, success, duration, error class). It contains NO image content, the tool-call summary carries NO tool arguments, and file paths are reduced to basenames; log lines can still quote a layer name or a value from an error message. Does not touch Photoshop; writes one JSON file. After calling, tell the user the file path and that they can attach it to a new issue at https://github.com/editmamei/editmamei/issues.
Inputs: note. Returns: path, bytes, issues_url, server_log_lines, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 34 tools
Most tools target clearly distinct resources or operations: geometry (crop vs resize vs canvas vs transform_canvas), selections (select vs modify_selection vs layer_mask vs get_selection_preview), and inspection (inspect vs histogram vs compare) are each separable, and the descriptions repeatedly cross-reference the right sibling ("not a crop — that is gimp_resize_image"). The closest pair is gimp_add_effect vs gimp_add_adjustment, which share one filter stack and differ only by filter taxonomy; gimp_crop_document vs gimp_canvas and gimp_bake vs gimp_filter delete also need a careful read, but the descriptions do resolve them.
Everything is snake_case with a gimp_/ps_ prefix, which makes the surface scannable. The pattern is mixed, however: many tools are verb_noun (open_document, resize_image, place_image, match_layer, convert_image_mode) while others are bare resource names driven by an `op` parameter (gimp_layer, gimp_filter, gimp_text, gimp_checkpoint, gimp_canvas). There is also a small object-noun inconsistency — "document" in open/create/close/crop vs "image" in resize_image/create_document/place_image — but it stays readable.
34 tools is well past the comfortable band and sits at the top of what an agent can hold in context, even though the domain (a full headless image-editing suite) is genuinely broad and most tools map to a real capability. Several could plausibly be consolidated — crop/resize/canvas/transform_canvas as one geometry tool, select/modify_selection as one — so the count is heavy rather than minimal.
GIMP lifecycle coverage is unusually complete: open/create/place/save/export/close, layers, text, selections and masks, non-destructive filters, baking, retouch, fill, checkpoints (as the undo substitute), and inspection/stats/preview. The main gap is the Photoshop side: several descriptions reference ps_ping, ps_overview, ps_text and ps_compare_regions, but only ps_list_capabilities and ps_report_problem exist here, so an agent following those pointers hits a dead end. Filter reordering is also documented as impossible rather than provided.
Maintenance
Related MCP Connectors
Hosted MCP server for AI photo editing: nothing to install, no desktop photo editor needed.
Edit photos with natural language: relight, restyle, swap backgrounds, and retouch details.
1Edit images over MCP with object removal, background removal, and guided generative edits.
Magnt makes AI photos and videos of you, your product or anything you describe. This MCP server lets Claude, ChatGPT and Cursor generate and edit realistic images from a prompt with your Magnt credits. Each call returns the image and a download link.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for controlling Adobe Photoshop from AI assistants, with Windows-first workflow, structured state, smoke-tested action playback, and a bundled Codex skill for image editing.5MIT
- AlicenseAqualityDmaintenanceA professional MCP server that lets AI assistants directly control Adobe Photoshop for document creation, layer management, filters, adjustments, shapes, text, and design intelligence like palette generation and font pairing.322MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to control Adobe Photoshop programmatically, supporting recipe workflows, state awareness, and generative AI features through natural language commands.1284,780 npm1,027MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Adobe Photoshop programmatically through natural language, with state awareness, recipe tools, and a standalone UI.MIT