mcp-compress: an MCP server for data compression

mcp-compress: an MCP server for data compression

mcp-compress•byshipitandpray

A zero-dependency Node.js MCP server that exposes compression, decompression, analysis, and a compressed key-value store as tools for connected AI agents, speaking MCP over stdio.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Offers seven tools to connected agents, including compress, decompress, analyze, store, retrieve, list, and stats.
  • •Automatically tests gzip, brotli, and deflate on the data and selects the smallest result.
  • •Compression is lossless, returning the exact original bytes on decompression.
  • •Provides a persistent compressed key-value store for agents, with retrieval, listing, and storage statistics.

BEST FOR

  • •Agents that need to shrink large text, JSON, CSV, or log data before storing or passing it along.
  • •Agents that want to save research notes or other data in a compressed store and retrieve it later by key.
  • •Agents that want to check whether data is worth compressing before doing it.

ABOUT MCP-COMPRESS

mcp-compress: an MCP server for data compression is cataloged as an MCP server attributed to shipitandpray. A zero-dependency Node.js MCP server that exposes compression, decompression, analysis, and a compressed key-value store as tools for connected AI agents, speaking MCP over stdio. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for mcp-compress: an MCP server for data compression are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which compression algorithm does the server choose by default?

In auto mode it tests gzip, brotli, and deflate and picks the smallest result; the README notes brotli wins most of the time.

Is decompression guaranteed to return the original data exactly?

Yes; the README states every compression is lossless and decompress returns the exact original byte-for-byte.

Where does the compressed key-value store keep data?

Stored items are persisted under ~/.mcp-compress/ and can be retrieved by key.

Upstream README

View this exact version on GitHub

README.md · 610408e55d91 · Fetched 2026-11-13 14:11:13 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mcp-compress

The first MCP server for data compression. Gives any AI agent the ability to compress, decompress, analyze, and store data.

10,000+ MCP servers exist. Zero for compression. This is the first.

Zero dependencies. Pure Node.js. Lossless round-trip. Auto-picks the best algorithm.

Benchmarks

Real results on real data types:

Data TypeOriginalCompressedRatioSaved
Markdown docs (15KB)31.2 KB0.5 KB60.7x98.4%
Repeated config (2KB)5.4 KB0.1 KB51.9x98.1%
SQL query results (8KB)18.9 KB0.6 KB30.4x96.7%
Log files (20KB)33.3 KB1.7 KB19.9x95.0%
JSON API response (10KB)26.7 KB2.6 KB10.2x90.2%
Time-series prices (4KB)20.5 KB3.0 KB6.9x85.5%
CSV data (5KB)8.1 KB2.4 KB3.4x70.5%

Every compression is lossless — decompress returns the exact original, byte-for-byte.

Install

Claude Code

Add to ~/.claude/settings.json:

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

OpenClaw / Any MCP Client

npx mcp-compress

Speaks MCP protocol over stdio. Works with any MCP-compatible AI agent.

From Source

git clone https://github.com/ShipItAndPray/mcp-compress.git
cd mcp-compress
node index.js

Tools

7 tools available to any connected agent:

ToolWhat it does
compressCompress text/JSON/CSV. Auto-picks best algorithm (gzip, brotli, deflate). Returns base64 + ratio.
decompressDecompress back to original. Lossless round-trip verified.
analyzeShannon entropy, compressibility rating, all algorithms compared, recommendation.
storeCompress and persist to disk with a key. Compressed key-value store for agents.
retrieveDecompress and return stored data by key.
listList all stored items with sizes and compression ratios.
statsTotal items stored, bytes saved, overall compression ratio.

Usage Examples

Compress a large API response:

compress(data: "<10KB JSON>", algorithm: "auto")
→ { ratio: "10.2x", saved_percent: "90.2%", algorithm: "brotli" }

Analyze before compressing:

analyze(data: "<your data>")
→ { compressibility: "HIGH", best_ratio: "30.4x", recommendation: "compress everything" }

Store data for later retrieval:

store(data: "<research notes>", name: "market-analysis")
→ { key: "market-analysis", ratio: "8.3x", saved: "12,450 bytes" }

retrieve(key: "market-analysis")
→ { data: "<original research notes>" }

Check what you've stored:

stats()
→ { stored_items: 14, total_saved_bytes: 284102, overall_ratio: "11.2x" }

Why This Exists

  • AI agents generate and consume massive amounts of text — API responses, code, docs, data
  • Context windows are expensive. Compressed storage = more data in less space = lower cost.
  • MCP is the standard protocol for AI agent tools. 10,000+ servers, none for compression.
  • Auto-algorithm selection means the agent doesn't need to know anything about compression — it just works.

How It Works

  1. Auto-algorithm selection — tests gzip, brotli, and deflate on your data, picks the smallest result
  2. Brotli wins 90% of the time — purpose-built for text, consistently 20-40% smaller than gzip
  3. Compressed key-value store — store/retrieve gives agents persistent compressed storage at ~/.mcp-compress/
  4. Shannon entropy analysis — analyze tells you if compression is even worth it before you do it

Test Results

10/10 evals passing:
  ✓ Initialize returns protocol version
  ✓ Lists all 7 tools
  ✓ Compress returns valid base64 and ratio > 1x
  ✓ Round-trip is lossless
  ✓ Analyze returns compressibility recommendation
  ✓ Store and retrieve preserves data
  ✓ Stats returns valid counts
  ✓ List shows stored items
  ✓ Auto picks smallest algorithm
  ✓ Handles 100KB+ data

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for mcp-compress: an MCP server for data compression from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-compress)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools