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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 610408e55d91 · 采集于 2026-11-13 14:11:13 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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