Skip to main content
Glama
InhiblabCore

mcp-image-compression

by InhiblabCore
README.md
[![MseeP.ai Security Assessment Badge](https://mseep.net/pr/inhiblabcore-mcp-image-compression-badge.png)](https://mseep.ai/app/inhiblabcore-mcp-image-compression)

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

TDQS

C2.8/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool exists, so there is no ambiguity with other tools.

Naming Consistency5/5

With a single tool, naming consistency is not applicable; the name is clear and follows a verb_noun pattern.

Tool Count4/5

One tool for image compression is slightly below the typical range but reasonable given the narrow focus.

Completeness2/5

The single tool only compresses images without apparent options for quality, dimensions, or format conversion, leaving many image operations uncovered.

Maintenance

ActivityInactive
ResponsivenessNo issues