ankitpal181 avatar

Toon Parse Mcp

ankitpal181/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 tools

Public 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

MCP Registry PyPI version

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:

  1. Optimizing Code Context: Stripping comments and redundant spacing from code files while preserving functional structure and docstrings.
  2. Data Format Conversion: Converting JSON, XML, YAML, and CSV inputs into the compact TOON format to save tokens.
  3. Mandatory Efficiency Protocol: A built-in resource that instructs LLMs to prioritize token-saving tools.

Features


View the full README on GitHub

Details

Repository
github.com/ankitpal181/toon-parse-mcp
Categories
AI & LLM Tools, Data & Analytics
Package
toon-parse-mcp
Transport
STDIO
Registry
MCP registry, active

Related AI & LLM Tools MCP servers

View all
1anytine123 avatarCSV Contract Preflight MCPanytine123/csv-contract-preflight-mcpPreview: CSV contract templates, agent-assisted drafting, paid validation and report summaries.0stars
2toofi avatarToofi Dental Planning MCPapp.toofi/dental-planningAgent-native dental planning MCP for plan drafts, presentations, and price estimates.0stars
3ajantoniou avatarUploadcheckajantoniou/uploadcheck-mcpQC videos, podcasts, and clips before upload — timestamped flags with agent-ready repair prompts.0stars
4archimedes-market avatarMcp Archimedesarchimedes-market/mcp-archimedesDiscover verified deep-tech engineering bounties from any AI agent.0stars
5clawspan avatarClawSpan ShardLink MCPcloud.clawspan/shardlinkAgent-first task marketplace MCP — discover, claim, and deliver paid workspace tasks.0stars
6bch1212 avatarAgentvaultbch1212/agentvaultCredential vault for AI agents — Fernet-encrypted keys, per-agent budgets, audit logs.0stars