Skip to main content
Glama

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.

Related MCP server: obrobka-mcp

Run (stdio)

pip install -e .
python -m image_toolkit_mcp.server

Run (Docker)

docker run -i --rm -v /path/to/images:/data ghcr.io/diyaluo/image-toolkit-mcp:v0.1.0

License

MIT

Available Tools

6 tools
image_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

    B3.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables local batch image preparation for the web via MCP, including compression, resizing, metadata stripping, thumbnails, and favicon generation.
      28 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 npm
      MIT