Toon Token Optimizer

Created By
elminson4 months ago
Reduce LLM token usage by 50-70% when sending structured data. TOON (Token-Oriented Object Notation) converts JSON, CSV, XML, YAML, and HTML tables to a compact header-based format. Save $489-$9,789 per 1M requests depending on model.
Overview

TOON - Token Optimizer

Reduce LLM token usage by 50-70% when sending structured data.

What it does

Converts verbose data formats to compact TOON format:

Before (JSON - 1041 tokens): [{"id":1,"name":"Product A","price":99.99},{"id":2,"name":"Product B","price":149.99}]

After (TOON - 389 tokens): [id,name,price] 1,Product A,99.99 2,Product B,149.99

Tools

  • toon_encode - Convert JSON/CSV/XML/YAML to TOON
  • toon_decode - Convert TOON back to JSON
  • toon_analyze - Show potential token/cost savings
  • toon_optimize_prompt - Auto-optimize prompts with data

Supported Formats

JSON, CSV, TSV, XML, HTML tables, YAML

Cost Savings

ModelSavings per 1M requests
GPT-4o-mini$489
GPT-4o$8,158
Claude Sonnet$9,789

Server Config

{
  "mcpServers": {
    "toon": {
      "command": "npx",
      "args": [
        "-y",
        "toon-mcp-server"
      ]
    }
  }
}
Project Info
Created At
4 months ago
Updated At
4 months ago
Author Name
elminson
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Shippo
@Shippo

20 hours ago
Mnemom

13 hours ago