Github Ankitpal181 Toon Parse Mcp
MCP server that reduces LLM context by removing code comments and converting data formats to TOON
About This MCP Server
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.
Tools & Endpoints2
What Problems It Solves
- When the server is active
- the AI will have access to the optimize_input_context and read_and_optimize_file tools. You can also refer to the efficiency protocol by asking the AI to "check the mandatory efficiency protocol".
Specifications
Requirements
- Python >= 3.10
- mcp >= 1.25.0
- toon-parse >= 2.4.3
Hosting
Hosting Options
- Package
API
Integrate this server into your application. Choose a connection method below.
Install
pip install toon-parse-mcpConfigure
{
"mcpServers": {
"toon-parse-mcp": {
"command": "python3",
"args": ["-m", "toon_parse_mcp.server"]
}
}
}Performance
Usage
Quick Reference
- Name
- Github Ankitpal181 Toon Parse Mcp
- Function
- MCP server that reduces LLM context by removing code comments and converting data formats to TOON
- Available Tools
- optimize_input_context(raw_input: str): Processes raw text data (JSON/XML/CSV/YAML) and returns optimized TOON format., read_and_optimize_file(file_path: str): Reads a local code file and returns a token-optimized version (no inline comments, minimized whitespace).
- Transport
- Package
- Language
- Python
- Install
- pip install toon-parse-mcp
- Source
- External (Registry)
- License
- Open Source
Ready to integrate this MCP server?
Book a demo to see how this server fits your workflow, or explore the full catalog.