GIMP MCP Pro
Enables AI assistants to control GIMP 3.0+ programmatically with 67 typed MCP tools for image creation and editing, layer management, selections, drawing and text, transforms, color adjustments, filters, undo groups, inspection, PDB search, and raw Python execution.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GIMP MCP Pro
Production-grade Model Context Protocol server for GIMP 3.0+
67 typed tools • reliable communication • AI-friendly workflows
GIMP MCP Pro lets AI assistants (Claude, etc.) control GIMP through well-structured, typed MCP tools — creating images, managing layers, drawing shapes, applying filters, adjusting colors, and more.
Features
67 typed MCP tools across 11 modules — image management, layers, selections, drawing, text, transforms, colors, filters, inspection, history, PDB access
Reliable communication — length-prefixed socket framing (no more JSON boundary guessing)
Persistent connections — one TCP connection, kept alive, with automatic reconnection
GIMP 3.0.8 compatible — tested against current GIMP release using stable APIs (DrawableFilter, PDB procedures)
Undo groups — multi-step AI workflows as a single undo step
Pydantic validation — inputs validated before reaching GIMP
AI guidance prompts — best practices and iterative workflow documentation
Visual verification —
get_image_bitmaplets AI see what it's drawingPDB discovery — search GIMP's thousands of procedures
Escape hatch —
execute_pythonfor anything without a dedicated tool
Related MCP server: GIMP MCP
Architecture
AI Assistant ←→ MCP Server (gimp-mcp-pro) ←→ GIMP Plugin
(Claude) stdio/SSE TCP socket
Typed tools PyGObject
Pydantic models Native handlersTwo processes: the MCP server runs outside GIMP and communicates with a plugin running inside GIMP's Python process via TCP with length-prefixed framing.
Quick Start
1. Install the MCP server
pip install gimp-mcp-proOr install from source:
git clone https://github.com/yourname/gimp-mcp-pro.git
cd gimp-mcp-pro
pip install -e .2. Install the GIMP plugin
The setup script handles this automatically:
./setup.shOr manually copy the plugin:
# Linux
PLUG_DIR="$HOME/.config/GIMP/3.0/plug-ins/gimp-mcp-pro"
mkdir -p "$PLUG_DIR"
cp gimp_plugin/gimp_mcp_plugin.py "$PLUG_DIR/gimp-mcp-pro"
chmod +x "$PLUG_DIR/gimp-mcp-pro"
# macOS
PLUG_DIR="$HOME/Library/Application Support/GIMP/3.0/plug-ins/gimp-mcp-pro"
mkdir -p "$PLUG_DIR"
cp gimp_plugin/gimp_mcp_plugin.py "$PLUG_DIR/gimp-mcp-pro"
chmod +x "$PLUG_DIR/gimp-mcp-pro"3. Start the plugin in GIMP
Open GIMP → Tools → Start MCP Pro Server
You should see "MCP Pro: Listening on localhost:9877" in the GIMP console.
4. Configure Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gimp": {
"command": "gimp-mcp-pro"
}
}
}Restart Claude Desktop.
5. Start editing!
Ask Claude: "Create an 800x600 image with a red circle in the center and the text 'Hello World' below it"
Tool Reference
Image Management (6 tools)
Tool | Description |
| Create a new blank image |
| List all open images |
| Get active image metadata |
| Export as PNG, JPEG, TIFF, BMP, WebP |
| Flatten all layers into one |
| Duplicate entire image |
Layer Operations (9 tools)
Tool | Description |
| Create a new layer |
| List all layers with properties |
| Switch working layer |
| Delete a layer |
| Change layer opacity (0-100) |
| Show or hide a layer |
| Duplicate a layer |
| Merge all visible layers |
| Add transparency support to a layer |
Drawing (9 tools)
Tool | Description |
| Set drawing color |
| Set background color |
| Fill current selection with color |
| Draw a straight line |
| Pencil or brush stroke along points |
| Rectangle (filled or outline) |
| Ellipse/circle (filled or outline) |
| Polygon (filled or outline) |
| Add a text layer with font/size/color |
Selections (8 tools)
Tool | Description |
| Rectangular selection |
| Elliptical/circular selection |
| Freeform polygon selection |
| Select entire image |
| Clear all selections |
| Invert current selection |
| Expand selection by pixels |
| Shrink selection by pixels |
Transforms (11 tools)
Tool | Description |
| Scale entire image |
| Scale a single layer |
| Rotate image 90°/180°/270° |
| Rotate layer by arbitrary angle |
| Flip image horizontal/vertical |
| Flip layer horizontal/vertical |
| Crop to specific rectangle |
| Crop to selection bounds |
| Auto-trim unused canvas |
| Resize canvas without scaling content |
| Move layer position on canvas |
Color Adjustments (13 tools)
Tool | Description |
| Brightness and contrast |
| Hue, saturation, and lightness |
| Input/output levels with gamma |
| Custom tone curves |
| Convert to grayscale (multiple methods) |
| Negative/invert effect |
| Convert to pure black and white |
| Reduce color levels |
| Make a color transparent |
| Automatic levels stretch |
| Get current foreground/background colors |
| Swap foreground and background |
| Pick color from pixel |
Filters & Effects (8 tools)
Tool | Description |
| Gaussian blur |
| Sharpen with unsharp mask |
| Pixelization/mosaic effect |
| Edge detection (Sobel, Prewitt, Laplace) |
| Emboss/relief effect |
| Add random noise/grain |
| Median denoise filter |
| Drop shadow effect |
Inspection (4 tools)
Tool | Description |
| Get image as viewable PNG (for AI verification) |
| Fast metadata without pixel data |
| Current colors, brush, opacity settings |
| GIMP version, environment, capabilities |
History (3 tools)
Tool | Description |
| Group operations as a single undo step |
| End current undo group |
| Clear selection to transparent |
Advanced (2 tools)
Tool | Description |
| Search GIMP's procedure database |
| Run raw Python in GIMP's console |
Known Limitations
Undo/Redo: GIMP 3.0's plugin API does not expose programmatic undo/redo. Use
Ctrl+Z/Ctrl+Yin GIMP directly. Undo groups work for grouping AI operations.Drop Shadow: Uses Script-Fu internally; may cause connection issues on some setups.
Font Names: GIMP 3.0 uses names like
Sans-serif,Serif,Monospace. Theadd_texttool maps common aliases automatically.
Environment Variables
Variable | Default | Description |
|
| GIMP plugin socket host |
|
| GIMP plugin socket port |
|
| Default command timeout (seconds) |
|
| Logging level |
|
| Enable debug mode |
Technical Notes
Filter Implementation
All filters use Gimp.DrawableFilter which safely wraps GEGL operations within GIMP's plugin context. Direct GEGL graph construction (Gegl.Node()) crashes in GIMP 3.0 plugin context — this is a known limitation that GIMP MCP Pro works around.
Color Handling
Colors are accepted as names ("red"), hex ("#FF0000"), or CSS rgb ("rgb(255,0,0)") across all tools. Internally, colors use Gegl.Color objects with the GIMP 3.0 API.
Connection Protocol
The MCP server communicates with the GIMP plugin over TCP using 4-byte big-endian length-prefixed JSON messages. This eliminates the fragile JSON boundary detection used by earlier implementations.
Development
git clone https://github.com/yourname/gimp-mcp-pro.git
cd gimp-mcp-pro
pip install -e ".[dev]"
pytestCredits
Built on insights from:
maorcc/gimp-mcp — proven GIMP plugin architecture, AI guidance prompts
slliws/gimp-mcp-server — typed tool module structure
libreearth/gimp-mcp — original proof-of-concept
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
AI photo tools and 18 image models (GPT Image 2.6, Nano Banana, FLUX 3, more) over MCP. Pay per use.
Hosted MCP server for AI photo editing: nothing to install, no desktop photo editor needed.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI agents to operate GIMP 3 end-to-end: open and inspect images, call every PDB procedure, apply GEGL filters destructively or as layer effects, measure pixels, render before/after/diff comparisons, cut out subjects with AI segmentation, and run multi-step recipes across folders.3254 PyPI5Apache 2.0
- AlicenseCqualityBmaintenanceEnables AI agents to perform structured, semantic artwork editing in GIMP 3 through session-based tools for layers, selections, text, transforms, non-destructive filters, previews, and image export, backed by snapshot undo/redo and XCF-persisted sessions. It also offers a live control center and operation event timeline for observing and managing edits, plus PDB search for expert discovery.61MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to create, paint, edit, inspect, and export images in a running GIMP 3.2 instance via MCP.130 PyPIGPL 3.0
- AlicenseBqualityCmaintenanceEnables AI agents to drive GIMP 3 over MCP, covering layers, selections, painting, text, color adjustments, GEGL filters, raw PDB procedures, and free-form Python inside GIMP, with image previews so the agent can see the result of each step. It installs its bridge plugin automatically and launches or attaches to a running GIMP instance, which stays open across MCP client restarts.42MIT