Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-image-compression

MCP.Pizza Chef: InhiblabCore

mcp-image-compression is a high-performance MCP server providing fast, high-quality image compression for multiple formats like JPEG, PNG, WebP, and AVIF. It supports offline usage, smart compression parameter selection, batch processing, and customizable quality control, enabling developers to optimize images efficiently for better website and app performance.

Use This MCP server To

Compress JPEG, PNG, WebP, and AVIF images efficiently Batch compress multiple images in parallel for speed Optimize website images to improve page load times Adjust compression quality to balance size and clarity Use offline image compression without internet dependency Automatically select best compression settings per image

README

mcp-image-compression

Project Overview

mcp-image-compression is a high-performance image compression microservice based on MCP (Modal Context Protocol) architecture. This service focuses on providing fast and high-quality image compression capabilities to help developers optimize image resources for websites and applications, improving loading speed and user experience.

Features

  • Multi-format support: Compress mainstream image formats including JPEG, PNG, WebP, AVIF
  • Offline Usage: No need to connect to the internet to use
  • Smart compression: Automatically select optimal compression parameters based on image content
  • Batch processing: Support parallel compression of multiple images for improved efficiency
  • Quality control: Customizable compression quality to balance file size and visual quality

TOOLS

  1. image_compression
    • Image compression
    • Inputs:
      • urls (strings): URLs of images to compress
      • quality (int): Quality of compression (0-100)
      • format (string): Format of compressed image (e.g. "jpeg", "png", "webp", "avif")
    • Returns: Compressed images url

Setup

NPX

{
  "mcpServers": {
    "Image compression": {
      "command": "npx",
      "args": [
        "-y",
        "@inhiblab-core/mcp-image-compression"
      ],
      "env": {
        "IMAGE_COMPRESSION_DOWNLOAD_DIR": "<YOUR_DIR>"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Build

docker build -t mcp-image-compression .

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

mcp-image-compression FAQ

How does mcp-image-compression handle different image formats?
It supports mainstream formats including JPEG, PNG, WebP, and AVIF for versatile compression needs.
Can I compress multiple images at once?
Yes, it supports batch processing to compress multiple images in parallel efficiently.
Is an internet connection required to use this server?
No, mcp-image-compression works offline, so no internet connection is needed.
How does the server decide compression quality?
It uses smart compression to automatically select optimal parameters based on image content, with options for manual quality control.
Can I customize the compression quality?
Yes, you can specify the desired quality level to balance file size and visual fidelity.
What benefits does using this MCP server provide?
It improves image loading speed and user experience by optimizing image sizes without sacrificing quality.
Is this server suitable for web and mobile app development?
Absolutely, it helps developers optimize images for faster loading on websites and mobile applications.
How does batch processing improve efficiency?
By compressing multiple images in parallel, it significantly reduces total processing time.