Skip to main content
Glama

Imagician

by flowy11

Imagician - MCP Image Editor

A Model Context Protocol (MCP) server for comprehensive image editing operations including resizing, format conversion, cropping, compression, and more.

Features

  • Resize: Change image dimensions with various fit options
  • Format Conversion: Convert between JPEG, PNG, WebP, and AVIF
  • Crop: Extract specific regions from images
  • Compress: Reduce file size with quality control
  • Rotate: Rotate images by any angle
  • Flip: Mirror images horizontally or vertically
  • Batch Processing: Generate multiple sizes from a single image
  • Metadata: Extract image information and properties

Installation

From npm

npm install -g @flowy11/imagician

From source

git clone https://github.com/flowy11/imagician.git cd imagician npm install npm run build

Usage with Claude Code

Add to your Claude Code configuration (~/.config/claude/config/settings/mcp-servers.json):

{ "imagician": { "command": "npx", "args": ["-y", "@flowy11/imagician"] } }

Usage with Cursor

Add to your Cursor configuration (~/.cursor/mcp_settings.json):

{ "mcpServers": { "imagician": { "command": "npx", "args": ["-y", "@flowy11/imagician"] } } }

Usage with Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{ "mcpServers": { "imagician": { "command": "npx", "args": ["-y", "@flowy11/imagician"] } } }

If installed globally via npm:

{ "mcpServers": { "imagician": { "command": "imagician" } } }

If installed from source:

{ "mcpServers": { "imagician": { "command": "node", "args": ["/path/to/imagician/dist/index.js"] } } }

Available Tools

resize_image

Resize an image to specified dimensions with various fit options.

Parameters: - inputPath: Path to input image - outputPath: Path to save resized image - width: Target width in pixels (optional) - height: Target height in pixels (optional) - fit: How to resize (cover, contain, fill, inside, outside) - preserveAspectRatio: Maintain aspect ratio (default: true)

convert_format

Convert between image formats with quality control.

Parameters: - inputPath: Path to input image - outputPath: Path to save converted image - format: Target format (jpeg, png, webp, avif) - quality: Quality for lossy formats (1-100, default: 80)

crop_image

Extract a specific region from an image.

Parameters: - inputPath: Path to input image - outputPath: Path to save cropped image - left: Left offset in pixels - top: Top offset in pixels - width: Width of crop area - height: Height of crop area

compress_image

Reduce image file size with quality settings.

Parameters: - inputPath: Path to input image - outputPath: Path to save compressed image - quality: Compression quality (1-100, default: 80) - progressive: Use progressive encoding for JPEG (default: true)

rotate_image

Rotate an image by any angle.

Parameters: - inputPath: Path to input image - outputPath: Path to save rotated image - angle: Rotation angle in degrees (positive = clockwise) - background: Background color for exposed areas (default: #000000)

flip_image

Mirror an image horizontally or vertically.

Parameters: - inputPath: Path to input image - outputPath: Path to save flipped image - direction: Flip direction (horizontal, vertical, both)

get_image_info

Extract metadata and information about an image.

Parameters: - inputPath: Path to image file Returns: format, dimensions, color space, file size, etc.

batch_resize

Generate multiple sizes from one image (perfect for responsive images).

Parameters: - inputPath: Path to input image - outputDir: Directory to save resized images - sizes: Array of {width, height?, suffix} - format: Output format for all sizes (optional)

Example Usage in Claude

"Please resize image.jpg to 800x600 pixels" "Convert photo.png to WebP format with 90% quality" "Crop avatar.jpg starting at (100, 100) with 200x200 size" "Generate thumbnail sizes: 150px, 300px, and 600px wide"

Development

# Install dependencies npm install # Build TypeScript npm run build # Run in development mode npm run dev

License

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Enables comprehensive image editing operations including resizing, format conversion, cropping, compression, rotation, flipping, and batch processing. Supports JPEG, PNG, WebP, and AVIF formats with quality control and metadata extraction.

  1. Features
    1. Installation
      1. From npm
      2. From source
    2. Usage with Claude Code
      1. Usage with Cursor
        1. Usage with Claude Desktop
          1. Quick setup with npx (recommended):
          2. If installed globally via npm:
          3. If installed from source:
        2. Available Tools
          1. resize_image
          2. convert_format
          3. crop_image
          4. compress_image
          5. rotate_image
          6. flip_image
          7. get_image_info
          8. batch_resize
        3. Example Usage in Claude
          1. Development
            1. License

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                Enables video editing using natural language commands powered by FFmpeg, supporting operations like trimming, merging, format conversion, and more with real-time progress tracking and error handling.
                Last updated -
                35
                Python
                • Apple
                • Linux
              • A
                security
                A
                license
                A
                quality
                Provides comprehensive document processing, including reading, converting, and manipulating various document formats with advanced text and HTML processing capabilities.
                Last updated -
                16
                41
                14
                TypeScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                Image Tools MCP is a Model Context Protocol (MCP) service that retrieves image dimensions and compresses images from URLs and local files using the TinyPNG API. It supports converting images to formats like webp, jpeg/jpg, and png, providing detailed information on width, height, type, and compressi
                Last updated -
                2
                29
                6
                JavaScript
                MIT License
                • Apple
              • A
                security
                A
                license
                A
                quality
                Provides powerful video and audio editing capabilities through FFmpeg, enabling AI assistants to perform professional-grade operations including format conversion, trimming, overlays, transitions, and advanced audio processing.
                Last updated -
                27
                19
                Python
                MIT License
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/flowy11/imagician'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server