micompress-mcp
An MCP server that lets AI agents compress images, PDFs, video, audio, documents & archives.
Powered by micompress.com.
Ask your assistant "compress the screenshots in ./assets" and it will — no manual
upload, no separate tool. Works with any Model Context Protocol
client: Claude Desktop, Claude Code, Cursor, and others.
Hosted server (no install)
MiCompress also runs as a remote MCP server at https://micompress.com/mcp
(Streamable HTTP, no sign-in). It compresses files by URL and returns a download
link, so it suits Claude.ai, ChatGPT and other clients that cannot run local
commands. Docs: micompress.com/mcp-server.
For files on your own disk, use the local server below.
Setup (local server)
Claude Code
Claude Desktop / Cursor
Add to your MCP config (claude_desktop_config.json on Desktop):
API key (optional)
Without a key the server works anonymously, within per-type size limits. For bigger
files, sign in (free) at https://micompress.com/account, copy your personal key
(mc_…) and pass it as the MICOMPRESS_API_KEY environment variable. The key stays in
the server's environment — it is never sent to the model.
With a key, files up to 100 MB are accepted. A free account includes 50
compressions/month through the API; Plus ($9.99/mo) includes 1,000/month and Pro
($19.99/mo) 5,000/month, shared with website usage. When the allowance runs out the tool
returns API_QUOTA_REACHED (free) or USAGE_LIMIT_REACHED (paid) — see
https://micompress.com/plans.
Tools
compress_file
Compresses a file and writes the smaller version to disk.
Returns the size before and after, plus the output path. The file bytes are never
returned to the model — only the summary, so a large file can't flood the context window.
list_supported_formats
Lists every accepted extension, grouped by category.
Supported formats
Full list: https://micompress.com/all-tools
How it works
Files are uploaded over HTTPS to micompress.com and compressed
with the same engine the website uses (mozjpeg, pngquant, gifski, Ghostscript, ffmpeg, …),
then written back to disk. Anonymous use works within per-type size limits
(images 20MB, video 50MB, …); set MICOMPRESS_API_KEY for files up to 100MB.
Point it at files you're comfortable sending to a third-party service. The agent
passes a path; the file's contents leave your machine.
Requirements
Node.js >= 18
License
MIT © MiCompress
Prefer a UI, or need bigger files?
Use micompress.com.