MCP Catalogs
Home

squeez

by claudioemmanuel·121·Score 49

squeez is an MCP server that provides token compression and optimization for AI CLI hosts via hooks.

ai-llmdeveloper-toolsproductivity
12
Forks
0
Open issues
this month
Last commit
2d ago
Indexed

Overview

squeez is a sophisticated token optimization tool that reduces context usage in AI CLI environments through multiple compression techniques. It implements hooks for major AI hosts including Claude Code, Copilot CLI, OpenCode, Gemini CLI, and Codex CLI, offering up to 95% bash compression, cross-call deduplication, and adaptive intensity based on session pressure. The project includes a built-in MCP server with 13 read-only tools that allow LLMs to query session memory directly, providing a rich context engine that tracks file access patterns and tool usage.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Reducing token consumption in AI coding assistants through bash output compression
you:Maintaining context window efficiency for long-running development sessions
you:Optimizing AI CLI performance by deduplicating redundant tool calls and outputs
you:Which AI CLI hosts does squeez support?
you:How much token compression can I expect?

When to choose this

Choose Squeez when working with multiple AI CLI hosts and need significant token compression, particularly for bash-heavy workflows.

When NOT to choose this

Avoid Squeez if you primarily use AI assistants that don't support hook-based integration or if you need write capabilities beyond compression.

Tools this server exposes

12 tools extracted from the README
  • squeez_filter

    Compress input from stdin using squeez's filtering algorithm

  • squeez_compress_md

    Compress markdown files in-place using squeez's algorithm

  • squeez_benchmark

    Run benchmarks to test squeez's compression effectiveness

  • squeez_protocol

    Print the auto-teach payload that helps LLMs learn squeez's protocol

  • squeez_calibrate

    Auto-tune squeez configuration based on benchmark results

  • squeez_budget_params

    Output JSON budget parameters for a specific tool

  • squeez_agent_costs

    Track and analyze sub-agent token costs

  • squeez_session_summary

    Get a structured summary of the previous session

  • squeez_token_tracking

    Track token usage across tool calls

  • squeez_cross_call_dedupe

    Check for and remove redundant content across tool calls

  • squeez_memory_file_stats

    Analyze memory files for compression opportunities

  • squeez_config_analyzer

    Analyze squeez configuration for optimization opportunities

Note: Tool names inferred from command examples and documentation. While the README mentions exposing 13 read-only tools via MCP server, specific tool names aren't clearly listed in a dedicated tools section. Tools were created based on the comma

Comparable tools

context-compressortoken-optimizerai-session-tools

Installation

Installation

Three methods — all produce the same result:

curl (recommended)

curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh

npm / npx

npm install -g squeez
npx squeez

cargo

cargo install squeez

MCP Server Setup

No special MCP setup is required as squeez includes its own MCP server. Run with:

squeez mcp

Claude Desktop Integration

Add to Claude Desktop config:

{
  "mcpServers": {
    "squeez": {
      "command": "squeez",
      "args": ["mcp"]
    }
  }
}

FAQ

Which AI CLI hosts does squeez support?
squeez supports Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and OpenAI Codex CLI, with additional support for Pi through a TypeScript extension.
How much token compression can I expect?
squeez can reduce bash output by up to 95%, with compression rates varying by scenario. Benchmarks show reductions between 99% for repetitive outputs to 22% for markdown files.

Compare squeez with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.