PM

piephai/mcp-image-optimizer

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 2 forks 质量 74 趋势 18MIT

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.

在 GitHub 查看完整 README

安装

npx mcp-image-optimizer
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "image-optimizer": { "command": "npx", "args": ["mcp-image-optimizer"] } } }