gimp-mcp/gimp-mcp

GIMP MCP server

What it solves

GIMP MCP connects GIMP's professional image editing with AI assistants through the Model Context Protocol. Without it, an AI cannot directly see or control images inside GIMP — it would need to save and reload files, and it would have no way to verify that an edit actually worked. This project gives the AI live visual feedback and 80 dedicated tools, so it can open an image, edit it step by step, check its own work with a snapshot, and refine until the goal is met.

How it works

You install a plugin inside GIMP and an MCP server outside. The MCP server talks to your AI client (like Claude Desktop, Claude Code, or Gemini CLI) using the standard MCP protocol. When you ask the AI to do something, the AI calls a tool (for example, adjust_brightness_contrast or remove_background). The MCP server translates that into a JSON command sent over TCP to the plugin, which runs the operation directly inside GIMP via PyGObject. After each edit, the AI can call get_state_snapshot to receive a live PNG preview of the current image — without saving to disk. This enables an iterative loop: edit → snapshot → assess → refine → repeat, until the AI decides the task is done. The setup also supports batch operations, history (though undo/redo are not supported on GIMP 3.x), and a raw call_api escape hatch for running arbitrary Python-Fu code.

Who it’s for

This is for anyone who uses GIMP for image editing and wants to leverage AI to do repetitive or complex tasks through natural language. It’s especially useful for designers, digital artists, developers, and automation engineers who want to build AI‑driven pipelines such as automatic background removal, expression editing, multi‑step compositing, or batch export. It requires GIMP 3.2+, Python’s uv package manager, and an MCP‑compatible AI client.

Highlights

  • Live visual feedback: get_state_snapshot returns a PNG preview mid‑workflow, letting the AI verify each edit without saving files.
  • 80 dedicated GIMP tools covering adjustments, transforms, selections, layers, drawing, text, filters, file operations, batch export, and more.
  • Fully compatible with GIMP 3.2.x — all breaking API changes fixed and tested with run_tests.py.
  • Iterative agentic workflows: the AI loops until a visual goal is confirmed (e.g., removes background until no stray pixels remain).
  • Works with many AI clients: Claude Desktop, Claude Code, Gemini CLI, PydanticAI, and any other MCP‑compatible client.
  • Batch and multi‑format export tools, including social media kits, icon sets, sprite sheets, and web‑optimized PNG/JPEG.
  • Region snapshots let the AI zoom into any area (face, mouth, corner) for detailed verification.

Related

  • Project
  • Project
  • Project
  • Project