image-toolkit-mcp
# image-toolkit-mcp
> 📄 **Project landing page (use cases and install guide): https://diyaluo.github.io/image-toolkit-mcp/**
Local, offline batch image processing as an MCP (Model Context Protocol) server.
100% local — no API key, no network, images never leave the machine. Built on Pillow.
## Tools
| Tool | Purpose |
|---|---|
| `image_resize` | Batch resize by long edge / explicit width-height / percent (shrink-only) |
| `image_convert` | Convert between jpg / png / webp / bmp / tiff |
| `image_compress` | Quality-based compression (1-100) |
| `image_watermark` | Semi-transparent corner text watermark |
| `image_strip` | Remove EXIF metadata (camera, GPS, timestamp) for privacy |
| `image_selftest` | Run the built-in engine self-test |
Each tool takes a local file or a whole folder and writes to an output directory.
## Run (stdio)
```bash
pip install -e .
python -m image_toolkit_mcp.server
```
## Run (Docker)
```bash
docker run -i --rm -v /path/to/images:/data ghcr.io/diyaluo/image-toolkit-mcp:v0.1.0
```
## License
MIT
TDQS
Scored across 6 tools
Each tool maps to a clearly distinct image operation (resize, convert, compress, watermark, strip, selftest), and the descriptions spell out the parameters and boundaries of each, including the four mutually exclusive resize modes. There is little chance of an agent picking the wrong tool, since resize (dimensions), compress (quality/size), and convert (format) are explicitly differentiated.
All tools use snake_case with a consistent 'image_' prefix, giving a predictable pattern. The only minor deviation is image_selftest, which is a noun-ish operation rather than the verb style of the other five, but it remains readable and on-pattern.
Six tools is well-scoped for a batch image-processing toolkit: five core operations plus one selftest, with no redundant or filler tools. Each tool earns its place and the surface stays easy to reason about.
The surface covers the main batch workflows (resize, convert, compress, watermark, EXIF strip) with consistent single-file-or-directory input, which is strong coverage. Minor gaps exist for common operations like crop/rotate or an image-info/inspect tool, but nothing that blocks typical pipelines.