
GIMP
STDIOMCP server enabling conversational GIMP image editing through natural language commands
MCP server enabling conversational GIMP image editing through natural language commands
This project enables non-technical users to edit images with GIMP through simple conversational commands, bridging the gap between GIMP's powerful capabilities and natural language interaction. It also allows professionals to execute complex multi-step workflows faster than traditional point-and-click methods.
Users can describe what they want to achieve - from basic photo adjustments to sophisticated artistic modifications. For example, "brighten the background and add a vintage filter" or "remove the red-eye and sharpen the subject" - and the system translates these requests into precise GIMP operations.
The project is functional and exposes all GIMP features via MCP. The main development focus is creating comprehensive AI-readable documentation to help AI agents use GIMP efficiently.
To install the plugin, copy the gimp-mcp-plugin.py
to your GIMP plug-ins
directory.
For detailed instructions on locating your GIMP plugins folder across different operating systems, please refer to this guide:
GIMP Plugin Installation Guide (Wikibooks)
Make sure the plugin file has "execute" permission.
For example, if your GIMP is installed with snap, you can use the following commands to copy the plugin to the correct directory:
mkdir ~/snap/gimp/current/.config/GIMP/3.0/plug-ins/gimp-mcp-plugin cp gimp-mcp-plugin.py ~/snap/gimp/current/.config/GIMP/3.0/plug-ins/gimp-mcp-plugin chmod +x ~/snap/gimp/current/.config/GIMP/3.0/plug-ins/gimp-mcp-plugin/gimp-mcp-plugin.py
Restart GIMP.
Open any image in GIMP, and then you should see a new menu item under Tools > Start MCP Server
. Click it to start the MCP server.
Configure your MCP client:
Add these lines to your Claude Desktop configuration file. (On Linux/macOS: ~/.config/Claude/claude_desktop_config.json )
{ "mcpServers": { "gimp": { "command": "uv", "args": [ "run", "--directory", "your/path/to/gimp-mcp-server", "server.py" ] } } }
Configure your Gemini CLI MCP server in ~/.config/gemini/.gemini_config.json
:
{ "mcpServers": { "gimp": { "command": "uv", "args": [ "run", "--directory", "your/path/to/gimp-mcp-server", "server.py" ] } } }
For PydanticAI agents, use the MCPServerStdio class:
from pydantic_ai import Agent from pydantic_ai.mcp import MCPServerStdio server = MCPServerStdio( 'uv', args=[ 'run', '--directory', 'your/path/to/gimp-mcp-server', 'server.py' ] ) agent = Agent('openai:gpt-4o', mcp_servers=[server])
For other MCP clients that support stdio transport, use the command:
uv run --directory your/path/to/gimp-mcp-server server.py
Note: Ensure your MCP client is configured with the GIMP MCP server before starting.
Start MCP Server
.Example output from the prompt "draw me a face and a sheep" using GIMP MCP
Contributions are welcome! Whether it's bug fixes, new features, or documentation improvements, feel free to submit a Pull Request or open an issue.