A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

MCP Image Optimizer
A Model Context Protocol server that optimizes images from URLs or local files with transformations powered by Sharp.
WHAT IT DOES
- •Processes images from URLs or local files with transformations such as resize, rotate, flip, blur, and sharpen.
- •Batch processes multiple images and converts between JPEG, PNG, WebP, AVIF, and TIFF.
- •Auto-crops borders and whitespace, and performs smart crops using attention or entropy strategies.
- •Adds image or text watermarks with positioning, opacity, scale, and blend options.
BEST FOR
- •Generating low-quality placeholders for lazy loading.
- •Creating favicons in all required sizes and formats for web apps and PWAs.
- •Optimizing or converting images via an AI assistant, such as resizing a photo to a target width or converting a URL image to WebP.
ABOUT MCP-IMAGE-OPTIMIZER
MCP Image Optimizer is cataloged as an MCP server attributed to piephai. A Model Context Protocol server that optimizes images from URLs or local files with transformations powered by Sharp. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability inspector
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
Tools (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Resources (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Prompts (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for MCP Image Optimizer are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Which image formats can be used as output?
JPEG, PNG, WebP, AVIF, and TIFF are supported output formats.
Can it generate everything needed for a PWA icon set?
Yes, it generates PNG favicons in all sizes, an apple-touch-icon, Android icons, a Microsoft tile, and a PWA manifest snippet.
Upstream README
README.md · 9f451ac3cf82 · Fetched 2026-11-13 13:38:56 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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
Install in Claude Code
Run this command to add the MCP server:
claude mcp add image-optimizer -- npx -y mcp-image-optimizer
See Claude Code MCP docs for more info.
Install in Claude Desktop
Add to your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"image-optimizer": {
"command": "npx",
"args": ["mcp-image-optimizer"]
}
}
}
Install in OpenAI Codex
Add the following configuration to your OpenAI Codex MCP server settings:
[mcp_servers.image-optimizer]
args = ["-y", "mcp-image-optimizer"]
command = "npx"
See OpenAI Codex for more information.
Install in VSCode
Add to your VS Code settings for MCP extensions like Cline or Continue:
{
"image-optimizer": {
"command": "npx",
"args": ["mcp-image-optimizer"]
}
}
Install in Cursor
Navigate to Settings → Cursor Settings → MCP → Add new global MCP server
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"image-optimizer": {
"command": "npx",
"args": ["mcp-image-optimizer"]
}
}
}
Alternative: Global Install
Install globally for faster startup:
npm install -g mcp-image-optimizer
Then use this simpler config in any client:
{
"command": "mcp-image-optimizer"
}
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
optimize_image
Resize, convert, and transform images.
Example:
"Optimize image.jpg to 800px width with 85% quality"
Parameters:
input- Image path or URLoutput- Output file pathwidth- Target width in pixelsheight- Target height in pixelsquality- Quality 1-100 for lossy formatsformat- Output format (jpeg, png, webp, avif, tiff)fit- Resize fit mode (cover, contain, fill, inside, outside)- Plus rotate, flip, grayscale, blur, sharpen, normalize
batch_optimize
Process multiple images at once.
Example:
"Optimize all images in ~/Pictures/ to 1200px width"
Parameters:
inputs- Array of image paths or URLsoutputDir- Output directorywidth,height,quality,format- Same as single imageprefix- Add to filename startsuffix- Add to filename end
get_image_info
Extract image metadata.
Example:
"Get info about image.jpg"
Returns:
- Dimensions, format, color space
- File size, DPI
- EXIF data presence
auto_crop
Remove borders and whitespace automatically.
Example:
"Auto-crop screenshot.png to remove white borders"
Parameters:
input- Image path or URLoutput- Output file paththreshold- Color similarity threshold 0-100backgroundColor- Background to detect
smart_crop
Intelligent cropping to specific dimensions.
Example:
"Smart crop portrait.jpg to 500x500 square"
Parameters:
input- Image path or URLoutput- Output file pathwidth,height- Target dimensionsstrategy- "attention" or "entropy"
create_placeholder
Generate low-quality image placeholders for lazy loading.
Example:
"Create a blurred placeholder for hero-image.jpg"
Parameters:
input- Image path or URLwidth- Placeholder width (default: 20)height- Placeholder height (auto if not set)quality- JPEG quality 1-100 (default: 40)blur- Blur amount 0.3-1000 (default: 5)format- "base64", "datauri", or "file"
add_watermark
Add image or text watermarks with positioning and styling.
Example:
"Add logo.png as watermark to photo.jpg in bottom-right corner"
"Add 'Copyright 2025' text watermark with 50% opacity"
"Add 'CONFIDENTIAL' diagonally across the document"
Parameters:
input- Image path or URLoutput- Output file pathwatermark- Path/URL to watermark image, base64 data, or textposition- Corner, center, diagonal, or tile patternopacity- Transparency 0-1scale- Size relative to base imagemargin- Distance from edgesblend- Blend mode for effects- Text options:
text,fontSize,fontColor,fontFamily
generate_favicon
Generate all favicon sizes and formats for modern web apps.
Example:
"Generate favicons from logo.png and save to ./public"
"Create all icon sizes for my PWA"
Parameters:
input- Source image (recommend 512x512 or larger)outputDir- Directory to save all favicon filessizes- Custom sizes array (default: all standard sizes)platforms- Target platforms: web, apple, android, microsoft, allgenerateManifest- Create manifest.json snippet for PWAs
Generated files:
- PNG favicons in all sizes (16x16 to 512x512)
- apple-touch-icon.png (180x180)
- android-chrome-192x192.png, android-chrome-512x512.png
- mstile-150x150.png (Microsoft tile)
- favicon-html.txt (ready-to-use HTML tags)
- manifest-icons.json (PWA configuration)
Path Support
- ✅ URLs:
https://example.com/image.jpg - ✅ Absolute paths:
/Users/name/Desktop/image.jpg - ✅ Home directory:
~/Desktop/image.jpg - ⚠️ Relative paths: Works with
cwdconfig setting
To use relative paths, add a working directory:
{
"command": "npx",
"args": ["mcp-image-optimizer"],
"cwd": "/Users/yourname/Desktop"
}
Requirements
- Node.js 22+ (npx handles this automatically)
- Compatible MCP client
Troubleshooting
"Command not found"
- Make sure Node.js is installed:
node --version - Try the global install method
"File not found"
- Use absolute paths:
/Users/name/Desktop/image.jpg - Check file permissions
"MCP tools not available"
- Restart your MCP client after configuration
- Check config file is valid JSON
License
MIT
Links
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Image Optimizer from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-image-optimizer)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Downloads and pulls
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
