Skip to main content
Glama

GIF Compressor MCP

Private local GIF inspection and compression tools for MCP clients. Files are processed on your device with Gifsicle and are never uploaded to a server.

Website: gifcompressor.cc/mcp

Tools

  • inspect_gif — return file size, dimensions, frame count, and animation status.

  • compress_gif — compress one GIF with a preset, custom settings, or a target size.

  • batch_compress_gifs — compress up to 20 GIF files into an output directory.

Related MCP server: easytiny-mcp

Run

npx -y gif-compressor-mcp

The server uses stdio. Do not run it as a normal interactive CLI.

MCP client configuration

{
  "mcpServers": {
    "gif-compressor": {
      "command": "npx",
      "args": ["-y", "gif-compressor-mcp"]
    }
  }
}

Example tool input

{
  "input_path": "/absolute/path/to/animation.gif",
  "output_path": "/absolute/path/to/animation-compressed.gif",
  "preset": "balanced",
  "target_mb": 8
}

output_path must not be the same as input_path. Relative paths are resolved against the MCP server process working directory.

Privacy and safety

  • GIF files stay on the local machine.

  • Input files are never overwritten.

  • Files are validated using the GIF87a/GIF89a signature.

  • Batch calls are limited to 20 files.

Development

npm install
npm run check
npm run build

Run the integration test with a local GIF fixture:

TEST_GIF=/absolute/path/to/test.gif npm test

Available Tools

3 tools
batch_compress_gifsBatch Compress GIFsC

Compress up to 20 local GIF files into an output directory.

Inputs: input_paths (required), output_directory (required), preset, overwrite, +1 more. Returns: errors, failed, results, succeeded, +1 more

compress_gifCompress GIFC

Compress a local GIF privately with Gifsicle. Supports presets, custom settings, and a target size.

Inputs: input_path (required), lossy, scale, colors, +5 more. Returns: width, height, size_mb, animated, +11 more

inspect_gifInspect GIFA

Inspect a local GIF file and return its size, dimensions, frame count, and animation status.

Inputs: input_path (required). Returns: width, height, size_mb, animated, +3 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a clearly distinct operation: inspection, single-file compression, and multi-file compression. There is no realistic path for an agent to confuse compress_gif with batch_compress_gifs, since the batch tool name and description make the input multiplicity explicit.

    Naming Consistency5/5

    All three tools follow a consistent snake_case verb_noun pattern (inspect_gif, compress_gif, batch_compress_gifs). The shared _gif suffix makes the domain obvious and the batch_ prefix is a predictable variant marker.

    Tool Count5/5

    Three tools is deliberately minimal but every tool earns its place: inspect, compress one, compress many. A batch variant is a legitimate separate operation rather than a redundant wrapper, so nothing feels padded or missing.

    Completeness4/5

    The surface covers the core lifecycle: inspect before, compress, and batch-process into an output directory, with presets and target size for control. Minor gaps exist (no result verification/comparison or post-compression report confirming achieved output size and ratio), but agents can work around these by re-running inspect_gif.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables visually lossless batch compression of JPEG, PNG, WebP, AVIF, GIF, and SVG files, writing results to a temporary preview directory with size, encoder, and quality-score details. Originals are only replaced atomically after the user confirms, with configurable effort levels and optional backups.
      3
      31 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to compress JPEG, PNG, and WebP images to a target byte size, split PDFs by page or ranges, and remove image metadata while processing local files without sending file bytes over the network.
      73
      MIT