mcp-image-compression

mcp-image-compression

High-performance image compression microservice based on MCP architecture.

28
Stars
6
Forks
28
Watchers
2
Issues
mcp-image-compression is a microservice designed for fast and efficient compression of images, supporting multiple mainstream formats such as JPEG, PNG, WebP, and AVIF. Built with the Model Context Protocol (MCP) architecture, it enables developers to optimize image resources for better web and app performance. The service features smart compression, batch processing, and customizable quality control, suitable for both offline and online workflows.

Key Features

Supports multiple image formats including JPEG, PNG, WebP, and AVIF
Works offline without internet connection
Smart compression with automatic parameter selection
Batch processing for parallel compression
Customizable compression quality
Easy deployment via NPX and Docker
Returns compressed image URLs
High-performance architecture
MIT licensed for open use and modification
Environment variable for download directory configuration

Use Cases

Optimizing website images for faster loading speeds
Compressing images before uploading to mobile or web applications
Batch processing large sets of images for storage efficiency
Integrating image compression into continuous deployment pipelines
Providing image compression as a backend microservice
Reducing image sizes to save bandwidth in offline environments
Customizing image quality to balance file size and visual fidelity
Automating smart image optimization based on content
Supporting various clients with multi-format image requirements
Accelerating app startup or resource delivery with optimized images

README

MseeP.ai Security Assessment Badge

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

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

Build

bash
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.

Star History

Star History Chart

Repository Owner

InhiblabCore
InhiblabCore

Organization

Repository Details

Language TypeScript
Default Branch main
Size 19,013 KB
Contributors 2
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
87.53%
JavaScript
7.44%
Dockerfile
5.03%

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • exif-mcp

    exif-mcp

    Offline MCP server for fast, flexible image metadata extraction.

    exif-mcp is an MCP server enabling on-demand reading of image metadata for LLMs or human users, operating fully offline. Built with TypeScript and utilizing the exifr library, it rapidly extracts multiple metadata segments from images without relying on external tools. The server exposes a standardized set of tools for accessing EXIF, GPS, XMP, ICC, IPTC, and other metadata. It supports various input formats and is designed for secure and efficient integration with Model Context Protocol workflows.

    • 24
    • MCP
    • stass/exif-mcp
  • AI Distiller (aid)

    AI Distiller (aid)

    Efficient codebase summarization and context extraction for AI code generation.

    AI Distiller enables efficient distillation of large codebases by extracting essential context, such as public interfaces and data types, discarding method implementations and non-public details by default. It helps AI agents like Claude, Cursor, and other MCP-compatible tools understand project architecture more accurately, reducing hallucinations and code errors. With configurable CLI options, it generates condensed contexts that fit within AI model limitations, improving code generation accuracy and integration with the Model Context Protocol.

    • 106
    • MCP
    • janreges/ai-distiller
  • Token Optimizer MCP

    Token Optimizer MCP

    Efficient token reduction for context window optimization in AI workflows

    Token Optimizer MCP is a server that reduces context window usage for AI tools by intelligently caching, compressing, and externally storing large content. It offers smart replacements for standard file and API operations, integrating seamlessly with tools such as Claude Desktop and other code assistants. The tool employs persistent caching with SQLite, high-ratio Brotli compression, and precise token counting to optimize both accuracy and efficiency. Production results indicate consistent 60-90% token usage reduction over tens of thousands of operations.

    • 6
    • MCP
    • ooples/token-optimizer-mcp
  • @just-every/mcp-screenshot-website-fast

    @just-every/mcp-screenshot-website-fast

    Fast screenshot capture and tiling optimized for AI model workflows.

    Provides a fast and efficient command-line tool for capturing high-quality screenshots of webpages, specifically optimized for integration with AI vision workflows via the Model Context Protocol (MCP). Automates image tiling to 1072x1072 pixel chunks for optimal processing and compatibility with tools like Claude Vision API. Includes advanced features such as full-page capture, screencast recording, support for JavaScript injection, configurable viewports, and resource-efficient browser management.

    • 89
    • MCP
    • just-every/mcp-screenshot-website-fast
  • GIF Creator MCP

    GIF Creator MCP

    Convert videos to high-quality GIF animations via MCP.

    GIF Creator MCP is a Model Context Protocol (MCP) server designed to convert video files into GIF animations. It allows users to customize output settings, such as frames per second, dimensions, and duration, and can extract specific portions of videos. The tool supports high-quality GIF generation and integrates with clients like Goose for easy extension. Video processing leverages FFmpeg and outputs GIFs with optimized palettes.

    • 11
    • MCP
    • ananddtyagi/gif-creator-mcp
  • Website Downloader MCP Server

    Website Downloader MCP Server

    Download and archive entire websites as local, browsable directories via MCP.

    Website Downloader MCP Server provides a Model Context Protocol (MCP) compatible server that enables users to download entire websites using wget. It preserves the website structure, rewrites internal links for local browsing, and allows for custom download depth and output directories. The server is intended for integration into larger systems or AI workflows that utilize MCP servers. Installation instructions and usage examples are provided for multiple platforms.

    • 144
    • MCP
    • pskill9/website-downloader
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results