Skip to main content
Glama

Toonify MCP

English | 繁體中文 | 日本語 | Español | Français | Deutsch | 한국어 | Русский | Português | Tiếng Việt | Bahasa Indonesia

Toonify MCP — context compression for Claude Code

Context compression plugin for Claude Code. Automatically trims large tool output—JSON, YAML, stack traces, and logs—before it enters the context window.

Works as a Claude Code plugin (automatic, zero-config) or as an MCP server (on-demand).

Features

  • Compresses large JSON, YAML, and API responses

  • Reduces long test failures and stack traces

  • Runs automatically in the background—no change to your Claude Code workflow required

Related MCP server: token-saver-mcp

Limitations

Skipped for short text, very small files, and content where exact original formatting must be preserved.

Installation

git clone https://github.com/PCIRCLE-AI/toonify-mcp.git
cd toonify-mcp
npm install
npm run build
npm install -g .
toonify-mcp setup
toonify-mcp doctor

toonify-mcp setup adds the local marketplace and installs, updates, or re-enables the plugin automatically.

Check status

toonify-mcp status

MCP mode (optional)

toonify-mcp setup mcp
claude mcp list

claude mcp list should show toonify: toonify-mcp - ✓ Connected.

Pipe filter (any agent CLI)

toonify-mcp compress reads stdin, compresses what's safe to compress (JSON/YAML → TOON, repetitive logs collapsed; source code, prose, and precision-sensitive numbers pass through untouched), and writes to stdout. It never breaks a pipe — when compression doesn't apply, the input comes out byte-for-byte.

curl -s https://api.example.com/users | toonify-mcp compress

This works with any agent CLI, because output is compressed before it enters the model's context. To have an agent adopt it, add a rule to your project's agent instructions (e.g. AGENTS.md):

When a command is likely to print large JSON/YAML or long logs,
pipe it through `toonify-mcp compress` (e.g. `curl ... | toonify-mcp compress`).
It only rewrites output it can compress losslessly; everything else passes through.

OpenAI Codex CLI (on-demand)

toonify-mcp setup codex

Registers toonify as an MCP server in ~/.codex/config.toml (a timestamped backup of the file is made first). Codex can then call the optimize_content tool on demand.

Note: on Codex this is on-demand, not automatic — Codex's hooks cannot yet replace tool output the way Claude Code's updatedToolOutput does, and appending a compressed copy would grow context instead of shrinking it. For automatic compression on Codex, use the pipe filter above.

Docs

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
9dResponse time
4wRelease cycle
9Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    2-5x longer Claude Code sessions before compaction. Saves 30-40% on input token costs. Remembers your rules and corrections so Claude stops repeating mistakes after compaction. Auto-runs in the background, just install once and forget about it.
    369
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Automatically reduces token usage in Claude Code sessions using algorithmic optimizations like code compression, smart file reading, output summarization, and prompt rewriting, with no extra API calls or cost.
    23
    1
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    Reduces context window usage by 60-90% through intelligent caching, compression, and smart tool replacements for Claude Code and Claude Desktop.
    2,756
    487
    MIT

View all related MCP servers

Related MCP Connectors

  • Persistent context for Claude. Your AI always knows your projects and next actions across sessions.

  • A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log

  • Live SEO workflow tools for Claude Code, Codex, and AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PCIRCLE-AI/toonify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server