📡 MCP Radar

alibaizhanov/densely

Lossless context compression for LLMs: 2x-8x fewer tokens, byte-exact reconstruction (sha256-verified). MCP server for Claude Code & Cursor.

6 stars
0 forks
Python
momentum ▲ 12.0
created 2026-08-07
on radar since 2026-08-11
star trend 5 → 6 since 2026-08-11
ai-agentsclaudeclaude-codecompressioncontext-windowcursorllmlossless-compressionmcpprompt-engineering
View on GitHub ↗Homepage ↗

About densely

Lossless context compression for LLMs. Pack any text into 2x–8x fewer tokens with guaranteed byte-exact reconstruction — verified by sha256 on every decompress.

An o200k token can carry up to ~17.6 bits of information, but typical code occupies tokens at only ~5–6 bits each. densely reclaims the difference:

Each carrier word (" the", " of", …) costs exactly 1 token — the o200k pre-tokenizer never merges across word boundaries — so every token in the payload carries 2 bytes of compressed data (16 of the ~17.6 theoretically available bits, 91% of channel capacity).

Reproduce with python3 bench.py (fixed seeds, stdlib code sample):

Scenario Backend Tokens (o200k) Ratio Saved ------------------------------------------------------------------------- Code (argparse.py + densely) lzma 21,659 → 10,726 2.02x 50.5% Code (same sample) neural 21,659 → 2,538 8.53x 88.3% Code never seen by the model neural 3,433 → 472 7.27x 86.3% JSON (code search, 100 hits) lzma 15,465 → 1,995 7.75x 87.1% Logs (SRE incident, ~1600 ln) lzma 117,766 → 16,962 6.94x 85.6%

The neural backend (--backend neural, python3 bench.py --neural) drives an integer arithmetic coder with next-token probabilities from Qwen2.5-Coder-0.5B, NNCP-style batched across segments. The 88.3% figure benefits from the model having seen Python's stdlib during training; the 86.3% row is this repo's own sources — code that did not exist before 2026-08-08 — and is the honest number for novel code (~0.56 bit/byte).

From the project README.

Maintaining this server?

Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:

[![On MCP Radar](https://mcp.liqiwa.com/badge.svg)](https://mcp.liqiwa.com/s/alibaizhanov--densely.html)

Related MCP servers

KernelLord/pickysteve

Skill router and context picker for Claude Code, Cursor, and Aider. Auto-picks the right skill for every prompt, with prompt-injection filtering for MCP.

⭐ 6Python
surendranb/writing-skills

Procedural writing-style skills for AI agents: official frameworks (plain language, business writing, GOV.UK, AP style, STE-100, developer docs) + character voices. Agent Plugins 1.0.0, works in openc

⭐ 19Python
thaildhe172591/pythia

PL/SQL development for AI agents on Oracle Database - expert queries, impact analysis, and a snapshot-verified write path with honest rollback

⭐ 3Python
tmolavi/mcp-agent-skills-hub

Molavi Agent Skills: Curated AI agent skills and MCP configs for Antigravity, Cursor, Codex & Claude — by Taghi Molavi

⭐ 5JavaScript
ismailsaoulaj/reddit-mcp-server

A production-grade Model Context Protocol (MCP) server. Empowers AI assistants (Claude, Cursor) to search, fetch, and analyze Reddit discussions with resilient rate-limiting and smart LLM noise filter

⭐ 22Python
rokbenko/quackd

🦆🧠 Give your Microduck a brain. Tell a small robot with two legs what you want in plain language. An LLM (Claude, OpenAI, Gemini, Grok) uses the skills it already has to do it. Includes a simulator, .

⭐ 21Python

📬 Get the weekly radar in your inbox

The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.