
Toon Parse Mcp
This server tackles token bloat by converting verbose data formats into TOON (Token-Oriented Object Notation) and stripping comments from code files. It exposes two tools: optimize_input_context for converting JSON, XML, YAML, and CSV into compact TOON format, and read_and_optimize_file for removing inline comments and whitespace from local code while preserving docstrings and structure. It also provides a mandatory-efficiency resource that prompts the LLM to prioritize these optimization tools. Reach for this when you're bumping against context limits with large data payloads or verbose codebases, especially in token-constrained environments where every token counts toward API costs or context windows.
- tools
- 2
- transport
- STDIO
- last updated
- Jan 17, 2026
Tools
2 toolsPublic tool metadata for what this MCP can expose to an agent.
optimize_input_contextProcesses raw text data (JSON/XML/CSV/YAML) and returns optimized TOON format.
Processes raw text data (JSON/XML/CSV/YAML) and returns optimized TOON format.
No parameter schema in public metadata yet.
read_and_optimize_fileReads a local code file and returns a token-optimized version (no inline comments, minimized whitespace).
Reads a local code file and returns a token-optimized version (no inline comments, minimized whitespace).
No parameter schema in public metadata yet.
Sponsors
Readme
toon-parse MCP Server
mcp-name: io.github.ankitpal181/toon-parse-mcp
A specialized Model Context Protocol (MCP) server that optimizes token usage by converting data to TOON (Token-Oriented Object Notation) and stripping non-essential context from code files.
Overview
The toon-parse-mcp MCP server helps AI agents (like Cursor, Claude Desktop, etc.) operate more efficiently by:
- Optimizing Code Context: Stripping comments and redundant spacing from code files while preserving functional structure and docstrings.
- Data Format Conversion: Converting JSON, XML, YAML, and CSV inputs into the compact TOON format to save tokens.
- Mandatory Efficiency Protocol: A built-in resource that instructs LLMs to prioritize token-saving tools.
Features
Details
- Repository
- github.com/ankitpal181/toon-parse-mcp
- Categories
- AI & LLM Tools, Data & Analytics
- Package
toon-parse-mcp- Transport
- STDIO
- Registry
- MCP registry, active