mcpField
C
Compressfile.pro

Compressfile.pro

Local
github.com/lexusmarchukAI & Agents0Updated 26w ago

About Compressfile.pro

Compressfile.pro is a local image-processing MCP server for compatible AI agents. It supports batch compression, conversion, resizing, cropping, watermarking, and analysis without uploading images.

Key features

  1. 01Batch compression and format conversion
  2. 02Resize, crop, and rotate images
  3. 03Add text watermarks
  4. 04Inspect and remove metadata
  5. 05Find near-duplicate images
  6. 06Estimate compression savings

Use cases

  1. 01Convert and compress local image batches
  2. 02Remove image metadata before publishing
  3. 03Find duplicate images in a directory
  4. 04Estimate batch savings before writing files

MCP support

The local MCP server exposes image-processing and analysis tools to compatible AI agents, including batch operations on local files.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

mcp-compressfile

Official Model Context Protocol (MCP) server for compressfile.pro.
Give any MCP-compatible AI agent (Claude, Cursor, etc.) the ability to bulk compress, convert, resize, watermark, and analyse images — entirely on your local machine.


✨ Features

  • 15 AI tools covering the full image optimisation workflow
  • 4 modern formats — AVIF, WebP, JPEG, PNG
  • Lossy & lossless compression with per-format tuned parameters
  • Bulk operations via glob patterns (/data/**/*.png)
  • Transparency handling — alpha composited correctly for every format
  • EXIF auto-rotation applied before any transformation
  • Perceptual duplicate detection using average hashing
  • Dry-run estimation — predict savings before writing any files
  • Privacy first — your images never leave your machine

🌐 No Installation? Use the Web Version

Don't need AI integration? compressfile.pro offers the same compression and conversion directly in your browser — no upload, no account, no install required.

compressfile.promcp-compressfile
Works in browser✅—
No install needed✅—
AI agent integration—✅
Bulk via glob patterns—✅
Runs on local files—✅
Images leave your machine❌ Never❌ Never

🛠 Installation

Option A — Python (recommended)
pip install mcp[server] Pillow pillow-avif-plugin imagehash

Clone this repo and point Claude Desktop at server.py (see Configuration).

Option B — Docker
git clone https://github.com/yourname/mcp-compressfile
cd mcp-compressfile
docker build -t mcp-compressfile .

⚙️ Configuration

Open Claude Desktop → Settings → Developer → Edit Config and add one of the blocks below.

Python
{
  "mcpServers": {
    "mcp-compressfile": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"]
    }
  }
}
Docker
{
  "mcpServers": {
    "mcp-compressfile": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "/your/images/folder:/data",
        "mcp-compressfile"
      ]
    }
  }
}

Windows users: use forward slashes in paths (C:/Users/You/Pictures).
With Docker, pass /data/... paths to the tools — that is the mount point inside the container.

Restart Claude Desktop after editing the config. A 🔨 hammer icon in the chat input confirms the tools are loaded.


🤖 How to Use in Claude

Once configured, just describe what you want in plain English. Claude picks the right tools, chains them automatically, and reports back with a summary.

1. Type a prompt — Claude identifies the files and plans the job

Claude identifying JPEG files and planning compression

2. Claude executes the batch and returns a full summary

Claude compression results showing 7 files, 4.4 MB → 657 KB, ~85% savings

In this example, a single prompt converted 7 JPEGs to WebP at quality 80,
reducing total size from 4.4 MB to 657 KB — an 85% reduction.


🧰 Tools

File & Folder
ToolDescription
list_filesList all supported images in a directory with file sizes
find_large_imagesFind images above a KB threshold — ideal starting point for a compression job
compare_foldersDiff source vs output to see what's been processed and what's still pending
undo_last_batchDelete an output directory to retry with different settings (confirm=True required)
Analysis & Metadata
ToolDescription
get_image_infoFull metadata for a single file: dimensions, DPI, mode, and all EXIF fields
strip_metadataRemove all EXIF/IPTC/XMP data for privacy before publishing
find_duplicatesGroup near-identical images using perceptual hashing
Transformations
ToolDescription
bulk_compressCompress + convert + optional resize; EXIF orientation auto-corrected
bulk_resizeResize only, preserving format and aspect ratio
bulk_cropCrop a fixed pixel region from a batch; skips files where box exceeds bounds
bulk_rotateRotate by degrees and/or auto-correct EXIF orientation
bulk_watermarkStamp text onto images with configurable position, opacity, and font size
Reporting & Agent Helpers
ToolDescription
compression_reportAggregate stats after a job: total MB freed, per-format breakdown, per-file log
preview_settingsCompress one image at multiple quality levels to find the best trade-off
suggest_formatAnalyse images and recommend the best output format with reasoning
estimate_savingsDry-run prediction across a batch — no files written to disk

💬 Example Prompts

List all images in /data and tell me which ones are larger than 1 MB.
Suggest the best format for all files in /data/photos.
Estimate how much space I'd save converting /data/*.jpg to AVIF at quality 80.
Compress everything in /data/photos to WebP at quality 75, max 1920px wide,
and save to /data/output.
Find duplicate images in /data/vacation.
Add a "© compressfile.pro" watermark to all PNGs in /data, bottom-right, 50% opacity.
Show me a compression preview for /data/hero.jpg at quality 60, 75, 85, and 95.
Generate a full compression report comparing /data/originals and /data/output.

📦 Supported Formats

FormatLossyLosslessTransparencyNotes
AVIF✅—✅Best compression ratio for photos
WebP✅✅✅Best universal format
JPEG✅——Alpha composited onto white background
PNG—✅✅Best for graphics and flat illustrations

Supported input types: .png .jpg .jpeg .webp .tiff .bmp .avif


🔒 Privacy

All processing runs locally via Pillow. No image data is uploaded to any server.
This MCP server is a local companion to compressfile.pro, which provides the same functionality in-browser without any server upload.


📋 Requirements

mcp[server]
Pillow
pillow-avif-plugin
imagehash

Python 3.9 or later.


📄 License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.