Imagician - MCP Image Editor
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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
From source
Usage with Claude Code
Add to your Claude Code configuration (~/.config/claude/config/settings/mcp-servers.json):
Usage with Cursor
Add to your Cursor configuration (~/.cursor/mcp_settings.json):
Usage with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
Quick setup with npx (recommended):
If installed globally via npm:
If installed from source:
Available Tools
resize_image
Resize an image to specified dimensions with various fit options.
convert_format
Convert between image formats with quality control.
crop_image
Extract a specific region from an image.
compress_image
Reduce image file size with quality settings.
rotate_image
Rotate an image by any angle.
flip_image
Mirror an image horizontally or vertically.
get_image_info
Extract metadata and information about an image.
batch_resize
Generate multiple sizes from one image (perfect for responsive images).
Example Usage in Claude
Development
License
MIT