Basic information
About Mcp Image Optimizer Server
A Model Context Protocol server for image optimization. Process images from URLs or local files with advanced transformations powered by Sharp.
Mcp Image Optimizer is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by piephai. It exposes 8 tools, including optimize_image, batch_optimize, get_image_info, auto_crop and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 11 GitHub stars. Source code is hosted on github.com. Related topics: image, mcp, resize, sharp.
Setup
{
"mcpServers": {
"image-optimizer": {
"command": "npx",
"args": [
"mcp-image-optimizer"
]
}
}
}
{
"mcpServers": {
"image-optimizer": {
"command": "npx",
"args": [
"mcp-image-optimizer"
]
}
}
}
{
"servers": {
"image-optimizer": {
"command": "npx",
"args": [
"mcp-image-optimizer"
]
}
}
}
Mcp Image Optimizer config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"image-optimizer": {
"command": "npx",
"args": [
"mcp-image-optimizer"
]
}
}
}
Mcp Image Optimizer tools
-
optimize_image
— Optimize an image from a file path or URL with various transformation options
input:string*, output:string*, width:number, height:number, quality:number, format:string, fit:string, position:string, background:string, rotate:number, flip:boolean, flop:boolean, … -
batch_optimize
— Optimize multiple images at once
inputs:array*, outputDir:string*, width:number, height:number, quality:number, format:string, prefix:string, suffix:string -
get_image_info
— Get metadata and information about an image
input:string* -
auto_crop
— Automatically crop image to remove borders, whitespace, or solid color backgrounds
input:string*, output:string*, threshold:number, backgroundColor:string -
smart_crop
— Intelligently crop image to specified dimensions using entropy or attention detection
input:string*, output:string*, width:number*, height:number*, strategy:string -
create_placeholder
— Generate a low-quality image placeholder (LQIP) for lazy loading
input:string*, width:number, height:number, quality:number, blur:number, format:string, outputPath:string -
add_watermark
— Add a watermark image or text to an image
input:string*, output:string*, watermark:string*, position:string, opacity:number, scale:number, margin:number, blend:string, text:string, fontSize:number, fontColor:string, fontFamily:string, … -
generate_favicon
— Generate all favicon sizes and formats needed for modern web apps
input:string*, outputDir:string*, sizes:array, platforms:array, background:object, generateManifest:boolean
Overview
What is Mcp Image Optimizer?
Mcp Image Optimizer is an MCP server that lets AI assistants like Claude, OpenAI Codex, and Cursor resize, convert, and transform images. It is built for developers and content creators who want to process images programmatically through natural language commands.
How to use Mcp Image Optimizer?
Install via npx -y mcp-image-optimizer or globally with npm install -g mcp-image-optimizer. Add the server to your MCP client’s configuration (e.g., Claude Desktop, VS Code, Cursor) using the command npx with args ["mcp-image-optimizer"]. Then ask your AI assistant any of the supported image operations using file paths or URLs.
Key features of Mcp Image Optimizer
- Resize, convert, and transform images in multiple formats
- Batch process multiple images at once
- Intelligent cropping and auto-crop to remove borders
- Generate low-quality image placeholders for lazy loading
- Add image or text watermarks with positioning options
- Generate all favicon sizes and formats for web apps
Use cases of Mcp Image Optimizer
- Optimize a single image to a specific width and quality for web use
- Batch convert a folder of images to WebP or AVIF
- Create a 200x200 thumbnail with smart crop for a product catalog
- Add a copyright text watermark diagonally across documents
- Generate a full favicon set (16x16 to 512x512) plus PWA icons from a logo
Frequently asked questions
1 What are the system requirements?
Node.js 22+ is required. The server is compatible with any MCP client that supports npx or globally installed Node packages.
2 Can I use URLs instead of local file paths?
Yes, URLs like https://example.com/image.jpg are supported, as well as absolute paths and home directory paths. Relative paths require setting a cwd in the client config.
3 What image formats are supported for output?
JPEG, PNG, WebP, AVIF, and TIFF are supported as output formats. The server can read the same formats plus others via input.
4 How do I troubleshoot “command not found” errors?
Ensure Node.js is installed (node --version). If using npx, try the global install method (npm install -g mcp-image-optimizer) and restart your MCP client after updating the config with the global command.
5 What tools does the server provide?
Eight tools: optimize_image, batch_optimize, get_image_info, auto_crop, smart_crop, create_placeholder, add_watermark, and generate_favicon. Each has configurable parameters like width, height, quality, format, and fit mode.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In