PCIRCLE-AI/toonify-mcp

59 stars · Last commit 2026-04-04

Automatic token optimization for Claude Code and MCP workflows, including structured data and source code compression.

README preview

# 🎯 Toonify MCP

**[English](README.md) | [繁體中文](README.zh-TW.md) | [日本語](README.ja.md) | [Español](README.es.md) | [Français](README.fr.md) | [Deutsch](README.de.md) | [한국어](README.ko.md) | [Русский](README.ru.md) | [Português](README.pt.md) | [Tiếng Việt](README.vi.md) | [Bahasa Indonesia](README.id.md)**

Toonify MCP is an MCP server and Claude Code plugin for automatic token optimization in structured data and source-code workflows.

It is designed for teams that regularly send large JSON / CSV / YAML payloads or TypeScript / Python / Go source files into model context and want lower token usage without changing day-to-day workflow.

- **Structured data:** 25-66% token reduction (typically ~48%)
- **Source code:** 20-48% reduction on TypeScript / Python / Go
- **Docs and setup guides:** https://toonify.pcircle.ai/

## What's New in v0.6.0

✨ **Pipeline Architecture + Code Compression!**
- ✅ **Pipeline engine** — modular Detector → Router → Compressor → Evaluator architecture
- ✅ **Code compression** — TypeScript (37%), Python (48%), Go (32%) savings via heuristic-based comment/whitespace removal
- ✅ **6 compression layers** — from safe (blank lines, inline comments) to aggressive (import summarization, repetitive pattern collapse)
- ✅ **Hook upgraded** — PostToolUse hook now compresses source code in addition to structured data
- ✅ Extensible design — add new formats by implementing a single `Compressor` interface

View full repository on GitHub →