Model Context Protocol

GIF compression tools for your AI client

Inspect, compress, and batch optimize GIF files through MCP. Processing runs locally with Gifsicle, so your animations never need to leave your device.

Local processing
No file uploads
Gifsicle engine

Available tools

Useful GIF operations, ready for agents

Each tool returns human-readable text and structured JSON for reliable multi-step workflows.

inspect_gif

Read file size, dimensions, frame count, and animation status before making changes.

compress_gif

Compress one GIF using a quality preset, custom settings, or a target file size.

batch_compress_gifs

Process up to 20 local GIF files into a chosen output directory in one tool call.

Install with one command

Node.js 20 or newer is required. The npm package starts a local stdio MCP server and installs the appropriate Gifsicle binary for your platform.

  • Works on macOS, Windows, and Linux
  • No API key or account required
  • Input files are never overwritten
Run
npx -y gif-compressor-mcp
MCP client configuration
{
  "mcpServers": {
    "gif-compressor": {
      "command": "npx",
      "args": ["-y", "gif-compressor-mcp"]
    }
  }
}

Privacy by design

Your GIFs stay on your machine

The MCP client launches the server locally and passes file paths—not file uploads. Gifsicle reads and writes directly on your device.

View the npm package

Example request

Compress /Users/me/demo.gif to under 8 MB and save it beside the original file.

Your AI client can select compress_gif, request approval, and return the output path plus compression statistics.

FAQ

GIF Compressor MCP questions

Are GIF files uploaded?

No. The MCP server runs locally and passes file paths to a local Gifsicle process.

Which MCP clients can use it?

Any client that can launch a local stdio MCP server, including coding agents and desktop AI clients.

Can it overwrite my original GIF?

No. The server rejects an output path that matches the input path.

Does it support target file sizes?

Yes. Set target_mb and the tool progressively adjusts compression, palette, and scale.