GIF Compressor

v0.1.0
cc.gifcompressor/gif-compressor Checked 1 day ago Published 2 days ago

Inspect and compress local GIF files privately without uploading them.

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. The server uses stdio. Do not run it as a normal interactive CLI. output_path must not be the same as input_path. Relative paths are resolved against the MCP server process working directory.

Summary extracted from the README.

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.

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