GIF Compressor MCP
# 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](https://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
```bash
npx -y gif-compressor-mcp
```
The server uses stdio. Do not run it as a normal interactive CLI.
## MCP client configuration
```json
{
"mcpServers": {
"gif-compressor": {
"command": "npx",
"args": ["-y", "gif-compressor-mcp"]
}
}
}
```
## Example tool input
```json
{
"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
```bash
npm install
npm run check
npm run build
```
Run the integration test with a local GIF fixture:
```bash
TEST_GIF=/absolute/path/to/test.gif npm test
```
TDQS
Scored across 3 tools
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.
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.
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.
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.