
A model context protocol server for image optimization. Process images from URLs or local files with advanced transformations powered by Sharp
概览
A Model Context Protocol server for image optimization. Process images from URLs or local files with advanced transformations powered by Sharp. - 🖼️ Process images from URLs or local files - 🔄 Resize, rotate, flip, blur, sharpen, and more - 📦 Batch process multiple images - 🎨 Convert between JPEG, PNG, WebP, AVIF, TIFF - ✂️ Auto-crop borders and whitespace - 🎯 Smart crop with attention detection - 🌫️ Generate low-quality placeholders (LQIP) - 💧 Add watermarks (image or text) with full control - 🌟 Generate favicons in all required sizes and formats Add to your Claude Desktop config file: - : ~/Library/Application Support/Claude/claude_desktop_config.json - : %APPDATA%\Claude\claude_desktop_config.json - : ~/.config/Claude/claude_desktop_config.
README
以下为原文 README 节选,完整内容请查看原文。
MCP Image Optimizer
A Model Context Protocol server for image optimization. Process images from URLs or local files with advanced transformations powered by Sharp.
Features
- 🖼️ Process images from URLs or local files
- 🔄 Resize, rotate, flip, blur, sharpen, and more
- 📦 Batch process multiple images
- 🎨 Convert between JPEG, PNG, WebP, AVIF, TIFF
- ✂️ Auto-crop borders and whitespace
- 🎯 Smart crop with attention detection
- 🌫️ Generate low-quality placeholders (LQIP)
- 💧 Add watermarks (image or text) with full control
- 🌟 Generate favicons in all required sizes and formats
Installation
Usage Examples
Ask your AI assistant:
- “Optimize ~/Desktop/photo.jpg to 800px width”
- “Convert https://images.pexels.com/photos/32206277/pexels-photo-32206277.jpeg to WebP”
- “Batch optimize all images in ~/Downloads/”
- “Create a 200x200 thumbnail with smart crop”
- “Generate a placeholder for lazy loading”
- “Add my company logo as watermark to product images”
- “Add ‘Copyright 2025’ text watermark”
- “Generate all favicon sizes from my logo”
Available Tools
Resize, convert, and transform images.
安装
npx mcp-image-optimizer配置
{
"mcpServers": {
"image-optimizer": {
"command": "npx",
"args": ["mcp-image-optimizer"]
}
}
}