Skip to main content

gimp-mcp

Tell your AI assistant what you want, and watch it happen in GIMP. gimp-mcp connects Claude, Codex, Cursor, VS Code or any other MCP client to the GIMP window you already have open: it opens files, builds layers, sets editable text, makes selections, applies filters and exports, step by step, right in front of you.

PyPI Python CI License: MIT

Claude Code (left) asks gimp-mcp to turn a sunset photo into a YouTube thumbnail; GIMP (right) builds it layer by layer
A real, unedited session at 2× speed: one prompt in Claude Code, everything else done by GIMP through gimp-mcp. Full-quality video (1080p, real time).

Quickstart

You need Linux, uv and an MCP client. On Ubuntu 26.04:

sudo apt install -y gimp python3-gi gir1.2-gimp-3.0   # GIMP 3.2+ (other distributions and Flatpak: see below)
uvx gimp-mcp setup                                    # installs the GIMP plug-in, adds the server to your MCP clients
uvx gimp-mcp doctor                                   # after (re)starting GIMP: every check should be [ok]

Then ask your assistant: "Use GIMP to create a 1280×720 image with the title 'Hello' and export it to ~/hello.png".

Why gimp-mcp

Your GIMP, live. The assistant works in the GIMP you have open, not in a hidden copy. Every layer it adds shows up in the Layers panel, and you can take over with the mouse at any time.

Results you can keep editing. Titles stay editable text layers, each step can go on its own layer, blurs and color corrections can be editable filters, and the XCF keeps all of it. The assistant gives you a starting point, not a flattened PNG.

It checks its own work. Previews come back to the model as images, so it can see the result, fix what looks off and only then export. Checkpoints let it try an idea and go back to an earlier state when it doesn't work out.

Local and locked down. No network port: one Unix socket that only you can open, a fresh token at every GIMP start, a fixed set of operations, and an allowlist for the GIMP procedures it may call (no eval, no Script-Fu passthrough). Details in the security model.

Set up in one command. gimp-mcp setup finds GIMP (distribution package or Flatpak), installs the plug-in and adds the server to Claude Code, Claude Desktop, VS Code and Cursor, asking before it changes any file.

Things to ask

  • "Open ~/Pictures/team.jpg, crop it to a centered square and export a 512 px avatar."
  • "Make a 1200×630 social card for my blog post 'Shipping on Fridays', dark background, title on the left."
  • "Brighten only the background layer of poster.xcf and keep the original underneath, hidden."
  • "What's in ~/design/flyer.xcf? List the layers, the hidden ones and the fonts used."
  • "Blur the license plate in car.jpg and save a copy next to it."

What it can do

Look list open images, inspect layer trees and items, render previews the model can see
Files create, open, save XCF, export PNG and JPEG with options, close
Layers add, import, duplicate, group, reorder, rename, opacity, blend modes, visibility
Shape resize image or canvas, crop, scale, rotate, flip, move
Select rectangles and ellipses (add, subtract, intersect, feather), invert, layer masks
Paint fills, lines and paths, rectangles and ellipses
Text editable text layers: font, size, color, alignment, spacing
Adjust brightness/contrast, hue/saturation, blur, as destructive or editable filters
History undo groups (one Ctrl+Z in GIMP) and checkpoints the assistant can restore
Everything else about 420 more GIMP procedures, allowlisted (procedures toolset, opt-in)

54 tools in all, grouped into toolsets so your client only loads what it needs: see the tool reference and the coverage matrix.

How it works

 Claude / Codex / Cursor / …            gimp-mcp serve                 GIMP 3.2
 ───────────────────────────  MCP   ─────────────────────  Unix   ─────────────────────────
  "make the colors pop"      stdio   validates, maps ids  socket   gimp-mcp-bridge plug-in
                            ──────▶  to GIMP operations  ──────▶   runs them in your session

gimp-mcp setup copies a small Python plug-in into your GIMP profile. GIMP starts it with the application, and it serves its local socket while GIMP runs. The MCP server (uvx gimp-mcp serve, started by your client) talks to it. Also works with a headless GIMP for scripts and CI. More in the architecture notes.

Documentation

Also listed in the official MCP registry as io.github.mhbxyz/gimp-mcp. MIT licensed.

Metadata

Release files for gimp-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gimp-mcp 0.4.0
File Size Uploaded Provenance Actions
gimp_mcp-0.4.0.tar.gz 172.2 kB With provenance Details for gimp_mcp-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gimp-mcp 0.4.0
File Interpreter ABI Platform Actions
gimp_mcp-0.4.0-py3-none-any.whl Python 3 none any Details for gimp_mcp-0.4.0-py3-none-any.whl

Total release size: 375.7 kB

Release files / gimp_mcp-0.4.0.tar.gz

Download URL gimp_mcp-0.4.0.tar.gz
Size 172.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0543ad8a148f8a4c994bff2582d88acb15c372b8785ff777000052def432fb62
BLAKE2b-256 checksum
How to use checksums
798ed871246172aed2a63ab4160b8d49250cbd0bdec2cfa8b1bb07efcb715a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / gimp_mcp-0.4.0-py3-none-any.whl

Download URL gimp_mcp-0.4.0-py3-none-any.whl
Size 203.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64e3cda73954e9c2b6628e162fd09e7d0fcf4b87817faf2c2628746c5190f69c
BLAKE2b-256 checksum
How to use checksums
385b54c2af08657155105187587b5fe260be5912fd9d205827898b84c10a2618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for gimp-mcp 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gimp_mcp-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page