image-tools-mcp-server
v2.0.0MCP 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
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Path to the input image file |
outputPath * | string | Path for the optimized output image |
maxHeight | number | Maximum height in pixels (optional) |
maxWidth | number | Maximum width in pixels (optional) |
overwrite | boolean | Replace an existing output file (default: false); never the input |
quality | number | Quality level (1-100, default: 85) |
list_images
List all image files in the current directory to help with file discovery
| Parameter | Type | Description |
|---|---|---|
directory | string | Directory to list images from (default: current directory) |
create_thumbnail
Create a thumbnail from an image with specified dimensions
| Parameter | Type | Description |
|---|---|---|
height * | number | Thumbnail height in pixels |
inputPath * | string | Path to the input image file |
outputPath * | string | Path for the thumbnail output |
width * | number | Thumbnail width in pixels |
cropToFit | boolean | Whether to crop to fit exact dimensions (default: false) |
maintainAspectRatio | boolean | Whether to maintain aspect ratio (default: true) |
overwrite | boolean | Replace an existing output file (default: false); never the input |
create_icon
Create icons in standard sizes (16x16, 32x32, 64x64, 128x128, 256x256)
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Path to the input image file |
outputDir * | string | Directory to save icon files |
format | string | Output format (png, ico, default: png) |
overwrite | boolean | Replace existing outputs (default: false); never replaces inputs |
sizes | array | Array of icon sizes to generate (default: [16, 32, 64, 128, 256]) |
convert_format
Convert an image from one format to another
| Parameter | Type | Description |
|---|---|---|
format * | string | Target format (png, jpg, jpeg, gif, webp, tif, tiff, bmp, ico) |
inputPath * | string | Path to the input image file |
outputPath * | string | Path for the converted output image |
overwrite | boolean | Replace an existing output file (default: false); never the input |
quality | number | Quality level for lossy formats (1-100, default: 90) |
get_image_info
Get detailed information about an image file
| Parameter | Type | Description |
|---|---|---|
imagePath * | string | Path to the image file |
batch_optimize
Optimize multiple images in a directory
| Parameter | Type | Description |
|---|---|---|
inputDir * | string | Directory containing images to optimize |
outputDir * | string | Directory to save optimized images |
extensions | array | File extensions to process (default: [jpg, jpeg, png, webp]) |
maxHeight | number | Maximum height in pixels (optional) |
maxWidth | number | Maximum width in pixels (optional) |
overwrite | boolean | Replace existing outputs (default: false); never replaces inputs |
quality | number | Quality level (1-100, default: 85) |