image-toolkit-mcp

v0.1.0
io.github.diyaluo/image-toolkit-mcp Checked 4 days ago Published 27 days ago

Local batch image MCP: resize, convert, compress, watermark, strip EXIF.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

image_resize

批量调整图片尺寸。input_path 可为单文件或目录;输出到 output_dir。四选一:long_side(按长边等比缩,只缩不放)、width+height(精确)、width(定宽等比)、percent(百分比,如 50 表示缩到一半)。返回处理张数与输出目录。

ParameterTypeDescription
input_path *string
output_dir *string
heightinteger
long_sideinteger
percentnumber
widthinteger

image_convert

批量格式转换,fmt 取 jpg/png/webp/bmp/tiff(不带点也行)。input_path 可为单文件或目录。

ParameterTypeDescription
input_path *string
output_dir *string
fmtstring

image_compress

批量按质量压缩(quality 1-100,越小文件越小,常用 60-85)。

ParameterTypeDescription
input_path *string
output_dir *string
qualityinteger

image_watermark

批量加右下角半透明文字水印。text 为水印文字;size_ratio 为字号占图宽比例(默认 0.05);opacity 0-255(默认 160)。

ParameterTypeDescription
input_path *string
output_dir *string
text *string
opacityinteger
size_rationumber

image_strip

批量清除 EXIF 元数据(拍摄地点、设备、时间等隐私信息),重写图片。

ParameterTypeDescription
input_path *string
output_dir *string

image_selftest

运行核心引擎自检(resize/convert/strip/watermark/compress 五项)。