image-toolkit-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@image-toolkit-mcp Resize every image in ./photos to 1200px long edge, output to ./resized"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Batch resize by long edge / explicit width-height / percent (shrink-only) |
| Convert between jpg / png / webp / bmp / tiff |
| Quality-based compression (1-100) |
| Semi-transparent corner text watermark |
| Remove EXIF metadata (camera, GPS, timestamp) for privacy |
| Run the built-in engine self-test |
Each tool takes a local file or a whole folder and writes to an output directory.
Related MCP server: obrobka-mcp
Run (stdio)
pip install -e .
python -m image_toolkit_mcp.serverRun (Docker)
docker run -i --rm -v /path/to/images:/data ghcr.io/diyaluo/image-toolkit-mcp:v0.1.0License
MIT
Available Tools
6 toolsimage_compressC
批量按质量压缩(quality 1-100,越小文件越小,常用 60-85)。
Inputs: input_path (required), output_dir (required), quality.
image_convertC
批量格式转换,fmt 取 jpg/png/webp/bmp/tiff(不带点也行)。input_path 可为单文件或目录。
Inputs: input_path (required), output_dir (required), fmt.
image_resizeA
批量调整图片尺寸。input_path 可为单文件或目录;输出到 output_dir。四选一:long_side(按长边等比缩,只缩不放)、width+height(精确)、width(定宽等比)、percent(百分比,如 50 表示缩到一半)。返回处理张数与输出目录。
Inputs: input_path (required), output_dir (required), width, height, +2 more.
image_selftestB
运行核心引擎自检(resize/convert/strip/watermark/compress 五项)。
Inputs: no named parameters.
image_stripC
批量清除 EXIF 元数据(拍摄地点、设备、时间等隐私信息),重写图片。
Inputs: input_path (required), output_dir (required).
image_watermarkB
批量加右下角半透明文字水印。text 为水印文字;size_ratio 为字号占图宽比例(默认 0.05);opacity 0-255(默认 160)。
Inputs: text (required), input_path (required), output_dir (required), opacity, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
AI-cull, edit and export RAW photos locally with the imagic desktop app, from any MCP client.
Convert images to PNG, JPEG, WebP, or AVIF through one public remote MCP tool.
Compress, convert, resize, crop, upscale, OCR and remove backgrounds from images.
Image and PDF toolkit: convert to AVIF/WebP/JXL, resize, crop, remove backgrounds, optimize PDFs.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables local batch image preparation for the web via MCP, including compression, resizing, metadata stripping, thumbnails, and favicon generation.28 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to process images locally via file paths—converting, resizing, removing backgrounds, smart cropping, upscaling, reading or stripping metadata, and batch processing—without files ever leaving the device.MIT
- AlicenseAqualityBmaintenanceEnables local, CPU-only image and video manipulation—such as background removal, resizing, format conversion, thumbnails, GIF creation, and trimming—through an MCP server without API keys, GPU, or paid dependencies.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as Claude, Cursor, and VS Code to compress, merge, split, rotate, protect, unlock, watermark, number pages, OCR, extract text, and convert PDFs and images locally without uploading files.84 npmMIT