1. Conduid
  2. Content
  3. Image Tools MCP Server
MCP server · Content

Image Tools MCP Server

MCP server for image processing and manipulation tools

Unclaimed MIT last commit 9 months ago content
56Fair

Scored 5 months ago · breakdown

About Image Tools MCP Server

Image Tools MCP Server is an MCP server published by jon-the-dev in the Content category: mCP server for image processing and manipulation tools.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/jon-the-dev/image-tools-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Image Tools MCP Server

Powered by Claude · Grounded in docs

I know everything about Image Tools MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

README

Image Tools MCP Server

A Model Context Protocol (MCP) server that provides powerful image processing capabilities using ImageMagick. This server enables AI assistants to perform image optimization, thumbnail generation, format conversion, and batch processing operations.

Quick Install

# Install globally
npm install -g image-tools-mcp-server

# Or run directly without installing (recommended)
npx image-tools-mcp-server

Then add to your Q CLI MCP configuration:

{
  "mcpServers": {
    "image-tools": {
      "command": "npx",
      "args": ["image-tools-mcp-server"],
      "env": {}
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "image-tools": {
      "command": "image-tools-mcp-server",
      "args": [],
      "env": {}
    }
  }
}

Note: The MCP server runs via stdio - Q CLI launches the server process and communicates with it through standard input/output.

Features

  • Image Optimization: Reduce file sizes while maintaining quality
  • Thumbnail Generation: Create thumbnails with flexible sizing options
  • Icon Creation: Generate icons in standard sizes (16x16, 32x32, 64x64, 128x128, 256x256)
  • Format Conversion: Convert between popular image formats (JPG, PNG, WebP, GIF, BMP, TIFF, ICO)
  • Image Information: Extract detailed metadata and properties
  • Batch Processing: Process multiple images in directories

Prerequisites

ImageMagick Installation

This server requires ImageMagick to be installed on your system.

macOS

# Using Homebrew
brew install imagemagick

# Using MacPorts
sudo port install ImageMagick

Ubuntu/Debian

sudo apt-get update
sudo apt-get install imagemagick

Windows

Download and install from: https://imagemagick.org/script/download.php#windows

Verify Installation

magick -version

Node.js

Requires Node.js 18.0.0 or higher.

Installation

Option 1: Install via npm (Recommended)

# Install globally
npm install -g image-tools-mcp-server

# Or run directly with npx (no installation required)
npx image-tools-mcp-server

Option 2: Install from source

  1. Clone the repository:
git clone https://github.com/jon-the-dev/image-tools-mcp-server.git
cd image-tools-mcp-server
  1. Install dependencies:
npm install
  1. Test the installation:
npm start

Configuration

Adding to Q CLI

To use this MCP server with Amazon Q CLI, add it to your MCP configuration:

If using npx (recommended - no installation required):

{
  "mcpServers": {
    "image-tools": {
      "command": "npx",
      "args": ["image-tools-mcp-server"],
      "env": {}
    }
  }
}

If installed globally:

{
  "mcpServers": {
    "image-tools": {
      "command": "image-tools-mcp-server",
      "args": [],
      "env": {}
    }
  }
}

If running from source:

{
  "mcpServers": {
    "image-tools": {
      "command": "node",
      "args": ["/path/to/image-tools-mcp-server/src/index.js"],
      "env": {}
    }
  }
}

Environment Variables

No environment variables are required for basic operation.

Available Tools

1. optimize_image

Optimize an image to reduce file size while maintaining quality.

Parameters:

  • inputPath (required): Path to the input image file
  • outputPath (required): Path for the optimized output image
  • quality (optional): Quality level (1-100, default: 85)
  • maxWidth (optional): Maximum width in pixels
  • maxHeight (optional): Maximum height in pixels

Example:

{
  "inputPath": "/path/to/image.jpg",
  "outputPath": "/path/to/optimized.jpg",
  "quality": 80,
  "maxWidth": 1920,
  "maxHeight": 1080
}

2. create_thumbnail

Create a thumbnail from an image with specified dimensions.

Parameters:

  • inputPath (required): Path to the input image file
  • outputPath (required): Path for the thumbnail output
  • width (required): Thumbnail width in pixels
  • height (required): Thumbnail height in pixels
  • maintainAspectRatio (optional): Whether to maintain aspect ratio (default: true)
  • cropToFit (optional): Whether to crop to fit exact dimensions (default: false)

Example:

{
  "inputPath": "/path/to/image.jpg",
  "outputPath": "/path/to/thumbnail.jpg",
  "width": 300,
  "height": 200,
  "maintainAspectRatio": true,
  "cropToFit": false
}

3. create_icon

Create icons in standard sizes from an image.

Parameters:

  • inputPath (required): Path to the input image file
  • outputDir (required): Directory to save icon files
  • sizes (optional): Array of icon sizes to generate (default: [16, 32, 64, 128, 256])
  • format (optional): Output format (png, ico, default: png)

Example:

{
  "inputPath": "/path/to/logo.png",
  "outputDir": "/path/to/icons/",
  "sizes": [16, 32, 64, 128, 256],
  "format": "png"
}

4. convert_format

Convert an image from one format to another.

Parameters:

  • inputPath (required): Path to the input image file
  • outputPath (required): Path for the converted output image
  • format (required): Target format (jpg, png, webp, gif, bmp, tiff)
  • quality (optional): Quality level for lossy formats (1-100, default: 90)

Example:

{
  "inputPath": "/path/to/image.png",
  "outputPath": "/path/to/image.webp",
  "format": "webp",
  "quality": 85
}

5. get_image_info

Get detailed information about an image file.

Parameters:

  • imagePath (required): Path to the image file

Example:

{
  "imagePath": "/path/to/image.jpg"
}

6. batch_optimize

Optimize multiple images in a directory.

Parameters:

  • inputDir (required): Directory containing images to optimize
  • outputDir (required): Directory to save optimized images
  • quality (optional): Quality level (1-100, default: 85)
  • maxWidth (optional): Maximum width in pixels
  • maxHeight (optional): Maximum height in pixels
  • extensions (optional): File extensions to process (default: [jpg, jpeg, png, webp])

Example:

{
  "inputDir": "/path/to/input/images/",
  "outputDir": "/path/to/output/images/",
  "quality": 80,
  "maxWidth": 1920,
  "extensions": ["jpg", "jpeg", "png", "webp"]
}

Usage Examples

Basic Image Optimization

# After installing and configuring with Q CLI
q chat "Optimize the image at /Users/jon/photos/vacation.jpg and save it to /Users/jon/photos/vacation-optimized.jpg with 80% quality"

Creating Thumbnails

q chat "Create a 300x200 thumbnail from /Users/jon/photos/landscape.jpg and save it to /Users/jon/photos/landscape-thumb.jpg"

Batch Processing

q chat "Optimize all images in /Users/jon/photos/raw/ and save them to /Users/jon/photos/optimized/ with 85% quality"

Getting Started

  1. Install: npm install -g image-tools-mcp-server
  2. Configure with Q CLI (see configuration section above)
  3. Start using: q chat "Get image info for any image file"

Development

Running in Development Mode

npm run dev

Project Structure

image-tools-mcp-server/
├── src/
│   ├── index.js           # Main MCP server
│   └── imageProcessor.js  # ImageMagick wrapper
├── docs/                  # Documentation
├── package.json
├── README.md
└── .gitignore

Adding New Features

  1. Add new tool definitions in src/index.js
  2. Implement the processing logic in src/imageProcessor.js
  3. Add corresponding handler methods in the main server class
  4. Update documentation

Error Handling

The server includes comprehensive error handling for:

  • Missing ImageMagick installation
  • Invalid file paths
  • Unsupported image formats
  • Processing failures
  • Directory creation issues

Performance Considerations

  • Large images may take significant time to process
  • Batch operations process files sequentially to avoid memory issues
  • Consider using appropriate quality settings to balance file size and image quality
  • Monitor disk space when processing large batches

Supported Image Formats

Input formats: JPG, JPEG, PNG, WebP, GIF, BMP, TIFF, ICO Output formats: JPG, JPEG, PNG, WebP, GIF, BMP, TIFF, ICO

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and feature requests, please create an issue in the GitHub repository.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Image Tools MCP Server

How do I install Image Tools MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Image Tools MCP Server safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Image Tools MCP Server still maintained?

The last commit was 9 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.