Skip to main content

GIMP STUDIO MCP

Edit images in GIMP by talking to your AI assistant.

Ask your AI assistant to open, edit, and export images in GIMP 3.x — crop and clean up a logo, knock out a background, or prep a print-ready transfer — all in plain language. It drives GIMP for you, whether GIMP is open on screen or running quietly in the background.

v0.3.2 / Beta

Disclaimer: GIMP Studio MCP is an independent, unofficial tool that controls GIMP. It is not affiliated with, authorized, maintained, sponsored, or endorsed by the GIMP project or its developers. "GIMP" is a trademark of its respective owners, used here only to identify the software this tool works with.

Overview

GIMP Studio MCP lets your AI assistant work inside GIMP 3.x — the free, open-source image editor — instead of you clicking through menus. Point it at an image and ask for what you want: "crop this to the artwork and export a transparent PNG," "knock out the white background but keep the white in the logo," "size this to print 12 inches wide at 300 DPI." It does the steps in GIMP and hands you the result. (MCP is simply the standard that lets AI assistants connect to outside tools like this one — you don't need to understand it to use this.)

It can see its own work — it renders a preview back to the assistant so it can check the result and fix it, rather than editing blind. Every action returns a structured result, so when something goes wrong you get a clear error instead of a silent failure — you can see what happened and fix it. Risky edits can be wrapped in a checkpoint you can roll back. It attaches to a GIMP you already have open, or spins one up in the background automatically — the same tools work either way. It was built for a working print shop's DTF (direct-to-film) pipeline, so print sizing and transfer prep are first-class, not afterthoughts.

What you can do

  • Edit and create images — open, crop, scale, layers, masks, selections, paint, text, colors, filters, and export, all by asking
  • Remove backgrounds — crisp one-color cutouts, soft color-to-alpha, and garment-aware shirt-color knockout tuned per garment, plus edge-aware refinement for soft or hair-fine edges where the background is not one flat color
  • Prep for print / DTF — set the physical size in inches at a target DPI, trim to the artwork, add a white underbase, and export a transparent, print-ready PNG
  • Gang up a sheet — pack multiple designs onto one print sheet at 300 DPI and export it
  • See the result — the assistant can pull a preview of the canvas (or any region) to verify what it did before you do
  • Work safely — checkpoint and restore any image before a risky edit, and a structured result on every step so failures are caught, not silent
  • Built-in guidance — the server ships a concise orientation to the assistant on connect, so it knows the right workflow (and the common pitfalls) from the start

Requirements

  • GIMP 3.x installed (verified on 3.0.4 and 3.2.4; GIMP 2.x is not supported). Works on Windows, macOS, and Linux.
  • Python 3.10+ installed and on your PATH — pipx and the server both run on it. Most macOS and Linux machines already have it; on Windows, get it from python.org and tick "Add python.exe to PATH" in the installer.
  • An MCP-compatible AI client — the app your assistant runs in (e.g. Claude Desktop, Claude Code, Cursor, Windsurf, VS Code)
  • A one-time install of the GIMP-side bridge, done with gimp-mcp install-plugin (Step 2 below)

Installation

No programming needed — but you will paste a few commands into a terminal and add one block to your AI client's settings. Here's the whole thing, start to finish.

Before you start. The commands below are typed into a terminal — on Windows, open PowerShell from the Start menu; on macOS or Linux, open Terminal. You need Python 3.10+ already installed (pipx and the server both run on it — see Requirements above), plus pipx, a small tool that installs Python command-line apps cleanly and puts the gimp-mcp command on your PATH — install it once from pipx.pypa.io. GIMP 3.x should already be installed too.

Step 1: Install the server

This installs the gimp-mcp command you'll use in the next two steps:

pipx install twelvetake-gimp-studio-mcp

If pipx warns that the command isn't on your PATH, run pipx ensurepath, then close and reopen your terminal before continuing. Using plain pip instead? pip install twelvetake-gimp-studio-mcp.

Prefer to install straight from source? pipx install git+https://github.com/TwelveTake-Studios/gimp-studio-mcp, or clone the repo and run pip install -e .

Step 2: Install the GIMP-side bridge

GIMP needs a small plug-in so the server can talk to it. Install it once:

gimp-mcp install-plugin

Then restart GIMP (or start it, if it's closed) so it loads the new plug-in — the bridge starts automatically whenever GIMP is open. Now confirm everything is wired up:

gimp-mcp doctor

doctor checks the install, finds your GIMP, and round-trips the connection; add --headless to also test the background mode. You only install the plug-in once.

Step 3: Add it to your AI client

Nearly every MCP client uses the same JSON — an mcpServers entry with a command and its args. Add this to your client's MCP configuration:

{
  "mcpServers": {
    "gimp": {
      "command": "gimp-mcp",
      "args": ["serve"]
    }
  }
}

Where you put it depends on your client:

  • Claude Desktop — Settings → Developer → Edit Config (opens claude_desktop_config.json); paste the block above.
  • Claude Code — skip the JSON and just run: claude mcp add gimp -- gimp-mcp serve
  • Cursor — Settings → MCP → Add, or paste the block above into ~/.cursor/mcp.json (everywhere) or .cursor/mcp.json (one project) — same shape.
  • Windsurf — in the Cascade panel, click the MCP icon → Configure, or edit ~/.codeium/windsurf/mcp_config.json — same shape.
  • VS Code — Command Palette → "MCP: Add Server," or edit .vscode/mcp.json. VS Code is the one exception to the shape — it uses a top-level servers key with "type": "stdio":
{
  "servers": {
    "gimp": {
      "type": "stdio",
      "command": "gimp-mcp",
      "args": ["serve"]
    }
  }
}

Using a different client? Add the same command and args wherever it lists MCP servers, and check its MCP docs for the exact spot. After adding it, fully quit and reopen your client.

Optional settings

These are environment variables — named settings the server reads when it starts. The simplest way to set them is right in the config from Step 3, in an env block (in VS Code, put the env block inside the servers entry instead):

"gimp": {
  "command": "gimp-mcp",
  "args": ["serve"],
  "env": {
    "GIMP_MCP_HEADLESS": "1"
  }
}
  • GIMP_MCP_HEADLESS — always run GIMP in the background instead of attaching to a window you have open
  • GIMP_MCP_NO_EXEC — leave out the raw gimp_exec tool (arbitrary code in GIMP); every other tool still works. See Security.

Troubleshooting

  • "gimp-mcp: command not found" (or "not recognized")? pipx's app folder isn't on your PATH yet — run pipx ensurepath and open a fresh terminal.
  • Server doesn't show up in your client? Fully quit and reopen it after editing the config, and check the config is valid JSON (a stray trailing comma is the usual culprit).
  • Not sure it's connected? Run gimp-mcp doctor in a terminal — it checks the install and round-trips the GIMP connection.
  • Tools don't appear, or GIMP doesn't respond? Make sure you ran gimp-mcp install-plugin and then restarted GIMP so the bridge loads.
  • Edited the server or updated it, but tools look the same? The server doesn't reload mid-session — fully restart your AI client.

Working with your images

The server drives GIMP on files on your computer — it doesn't reach out to anything else. There are two ways it runs, and the same tools work in both:

  • Live — if you have GIMP open, it attaches to that window, so you watch the edits happen on the canvas.
  • Background (headless) — if GIMP isn't open, it starts one quietly in the background, does the work, and exports the result. Nothing pops up.

A typical round trip:

  1. Point your assistant at an image — paste its full path or drag it into the chat, or just work on whatever's open in GIMP.
  2. Ask for the change in plain language; the assistant does it and can pull a preview to confirm.
  3. It exports the result to a file you name (it works on a copy for exports, so your open image isn't flattened or overwritten behind your back).

It only touches the images and files you point it at, and it runs on your own machine — see Security below.

Available tools (119)

You don't call these directly — you ask in plain language and your assistant picks the right ones. They span 13 groups:

Group Count What it covers
Session5Status, image list, active-image switch, raw exec, namespace reset
Document4New/open image, metadata, alpha-safe export (keeps transparency)
Layers18Create/duplicate/delete/reorder/move, opacity, blend mode, groups, merge, seam-check
Masks & Alpha9Add/apply/remove masks, alpha add/lock, alpha and selection, luminance to alpha, color to alpha, crisp color cutout
Selections15Rect/ellipse/by-color/fuzzy/from-path/from-alpha, grow/shrink/feather/border, invert, edge-aware subject select
Paint10Pencil/paintbrush, bucket fill, gradient, stroke, fg/bg + brush + opacity
Text5Create/edit text layers, props, outline, font check/substitute
Color & Tone10Brightness/contrast, levels, curves, hue/sat, color balance, posterize, threshold, normalize
Filters & Effects4Gaussian blur, unsharp mask, drop shadow, generic GEGL apply_filter
Print / DTF13White underbase, edge choke/spread, trim-to-content, garment-aware knockout, halftone, gang sheet, DTF PNG, print sizing
Color Management7Assign/convert ICC profiles with rendering intent and black-point compensation, profile inspect, grayscale/RGB conversion
Analysis12Viewable preview (get_bitmap), histogram, color-at, region read, GEGL op/procedure lookup, font/brush/pattern/gradient/palette listings
Safety7Checkpoint/restore (scriptable rollback), undo groups, list checkpoints

Tools are self-describing through your MCP client, and there's a raw gimp_exec escape hatch for anything a dedicated tool doesn't cover — so a missing tool is rarely a hard stop.

Usage examples

Just talk to your assistant. A few of the things you can ask:

General editing

Open logo.png and tell me its size, layers, and DPI
Add a 12px white outline to the text layer
Auto-crop to the artwork, then export a transparent PNG
Cut out the white background, keeping the white inside the logo
Show me the current canvas

DTF & print prep

Knock out the black shirt color behind this artwork
Size this to print 12 inches wide at 300 DPI
Clean this up for DTF and export a transparent 300-DPI PNG
Gang up 12 copies of this design onto a 22-inch sheet at 300 DPI

knockout_background is garment-aware: name a shirt color (black, navy, heather gray, red, and more) and it picks the removal technique and tolerance tuned for that garment. Ask for the preset list to see the catalog. If the shirt color also appears inside your art, say so and ask it to remove only the background around the design, so those parts survive.

Security model

This server runs on the same trust boundary as the local user. It is meant for a single-user workstation and is not a sandbox. Installing it lets any AI assistant you connect drive GIMP on your machine.

  • Local only. Your assistant launches the server directly and talks to it over standard input and output, so no network port is opened on that channel. Behind the scenes the server reaches GIMP over a loopback-only connection (127.0.0.1) protected by a per-session token. Nothing connects to the internet, and your images stay on your machine.
  • Raw exec is arbitrary code. The gimp_exec tool runs Python inside GIMP's process. Only connect assistants and content you trust.
  • Off switch. Set GIMP_MCP_NO_EXEC=1 to leave gimp_exec out entirely; every other tool still works.

See SECURITY.md for the full threat model.

FAQ

What is this, in plain terms?

It's a small helper program (an "MCP server") that your AI assistant talks to. Once it's set up, you can ask your assistant — in normal language — to edit images in GIMP for you, instead of doing every step by hand.

Do I need to know how to code?

No. You'll paste a few commands into a terminal and add one block to your AI client's settings file (all shown above), then talk to your assistant normally. You don't write any code, and you don't need to know GIMP's scripting.

Can it create and edit images, or just look at them?

Both. It reads image and layer info and can pull a preview to look at the canvas, and it edits — layers, masks, selections, paint, text, color and tone, filters, background removal, resizing, and export — and can build new images from scratch, including print gang sheets.

Is it safe to let it change my images?

Risky edits can be wrapped in a checkpoint and rolled back — checkpoints are the reliable rollback, since GIMP’s own undo stack is interactive and can’t be driven from a script. Exports run on a copy, so your open image isn't flattened or overwritten behind your back. That said, edits happen in GIMP like any other edit — keep your own copies of originals you can't afford to lose, as you would with any editor.

Do I need GIMP open to use it?

No. If GIMP is open, it attaches to that window so you can watch. If GIMP isn't open, it starts one in the background, does the work, and exports the result. The same tools work in both modes. Set GIMP_MCP_HEADLESS=1 to always run in the background.

What is DTF, and can it prep art for my shirt printer?

DTF (direct-to-film) is a heat-transfer method: you print a design onto film and press it onto a garment. Yes — this was built for a working DTF shop. It removes the shirt-color background, sizes the art to real inches at a target DPI, trims to the artwork, and exports a transparent, print-ready PNG. It's garment-aware, so it keeps parts of the art that share the shirt's color.

Does it add the white underbase for me?

It can — there's a white-underbase tool. But many DTF shops' printing software (the RIP) generates the underbase automatically from your transparent PNG, so you often ship a clean transparent PNG and let the RIP handle it. The server supports both; do whichever your printer expects.

Which AI assistants work with it?

Any client that can run a local MCP server: Claude Desktop, Claude Code, Cursor, Windsurf, and VS Code among others (setup for each is above). ChatGPT today generally connects to remote, HTTPS-hosted MCP servers rather than local ones like this, so it isn't a fit right now. You can wrap a local server as a remote one with a bridge, but a client with built-in local MCP support is the simpler route.

Which GIMP versions are supported?

GIMP 3.x, on Windows, macOS, and Linux. It has been verified on GIMP 3.0.4 and 3.2.4, both live and in the background. GIMP 2.x is not supported.

New to layers, alpha, and DPI?

A layer is one stacked piece of an image (say, text over a background). Alpha is transparency — the checkerboard you see where an image has no pixels; a "transparent PNG" is one that keeps its alpha. DPI (dots per inch) ties pixels to a physical size: a 3600-pixel-wide image at 300 DPI prints 12 inches wide. The assistant handles all three for you — you can just ask for "a transparent PNG that prints 12 inches wide at 300 DPI."

Does it make network calls or send my images anywhere?

No. It talks to your assistant over a direct local connection and opens no internet connection, so your images and files stay on your own machine.

I updated it (or a tool), but nothing changed?

The server doesn't reload while it's running. Fully restart your AI client so it picks up the new version.

Is it still being worked on?

Yes, actively. It's pre-1.0, so the exact set of tools can still change between versions. Check the GitHub repo for the latest.

Is it really free?

Yes — free and open source under the MIT license. If it saves you time, you're welcome to buy us a coffee or support us on Ko-fi.

Is this affiliated with the GIMP project?

No. It is an independent, unofficial tool that controls GIMP. It is not affiliated with, authorized, sponsored, or endorsed by the GIMP project. GIMP is a trademark of its respective owners.

Need a custom MCP server?

We build MCP servers like this one, wiring AI assistants into DAWs and creative software. Tell us your workflow and we will scope it.

Get a custom MCP built

Questions or Issues?

Open an issue on GitHub or get in touch.