image-tools-mcp-server

v2.0.0
image-tools-mcp-server Checked 1 day ago Published 1 month ago

MCP server for image optimization, thumbnail generation, and format conversion using ImageMagick

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

optimize_image

Optimize an image to reduce file size while maintaining quality

ParameterTypeDescription
inputPath *stringPath to the input image file
outputPath *stringPath for the optimized output image
maxHeightnumberMaximum height in pixels (optional)
maxWidthnumberMaximum width in pixels (optional)
overwritebooleanReplace an existing output file (default: false); never the input
qualitynumberQuality level (1-100, default: 85)

list_images

List all image files in the current directory to help with file discovery

ParameterTypeDescription
directorystringDirectory to list images from (default: current directory)

create_thumbnail

Create a thumbnail from an image with specified dimensions

ParameterTypeDescription
height *numberThumbnail height in pixels
inputPath *stringPath to the input image file
outputPath *stringPath for the thumbnail output
width *numberThumbnail width in pixels
cropToFitbooleanWhether to crop to fit exact dimensions (default: false)
maintainAspectRatiobooleanWhether to maintain aspect ratio (default: true)
overwritebooleanReplace an existing output file (default: false); never the input

create_icon

Create icons in standard sizes (16x16, 32x32, 64x64, 128x128, 256x256)

ParameterTypeDescription
inputPath *stringPath to the input image file
outputDir *stringDirectory to save icon files
formatstringOutput format (png, ico, default: png)
overwritebooleanReplace existing outputs (default: false); never replaces inputs
sizesarrayArray of icon sizes to generate (default: [16, 32, 64, 128, 256])

convert_format

Convert an image from one format to another

ParameterTypeDescription
format *stringTarget format (png, jpg, jpeg, gif, webp, tif, tiff, bmp, ico)
inputPath *stringPath to the input image file
outputPath *stringPath for the converted output image
overwritebooleanReplace an existing output file (default: false); never the input
qualitynumberQuality level for lossy formats (1-100, default: 90)

get_image_info

Get detailed information about an image file

ParameterTypeDescription
imagePath *stringPath to the image file

batch_optimize

Optimize multiple images in a directory

ParameterTypeDescription
inputDir *stringDirectory containing images to optimize
outputDir *stringDirectory to save optimized images
extensionsarrayFile extensions to process (default: [jpg, jpeg, png, webp])
maxHeightnumberMaximum height in pixels (optional)
maxWidthnumberMaximum width in pixels (optional)
overwritebooleanReplace existing outputs (default: false); never replaces inputs
qualitynumberQuality level (1-100, default: 85)