
Toon Parse Mcp
io.github.ankitpal181Published by GitHub account ankitpal181v1.0.3-betaUpdated Oct 24, 2026
MCP server that reduces LLM context by removing code comments and converting data formats to TOON
The publisher's own server: Parse
Overview
A local MCP server that shrinks context by converting JSON, XML, YAML and CSV to TOON and stripping comments from code files.
- What you can do
- Convert pasted JSON, XML, YAML or CSV text into compact TOON format to save tokens, via optimize_input_context. Read a local code file and return a version with inline comments and extra whitespace removed, via read_and_optimize_file. Expose a resource containing a strict prompt that tells the assistant to prefer these token-saving tools.
- When to use it
- Useful when long structured data or commented source files are eating the assistant's context window and you want a smaller, still functional representation before reasoning over them.
- Requirements
- Runs locally as a stdio process started with python3 -m toon_parse_mcp.server. Needs Python 3.10 or newer and the toon-parse-mcp package from PyPI, which pulls in mcp and toon-parse. No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open Toon Parse Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
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).
Resources
protocol://mandatory-efficiency: Provides a strict system instruction prompt for LLMs to ensure they use the optimization tools correctly.
Installation
Configuration
Cursor
- Open Cursor Settings -> MCP.
- Click "+ Add New MCP Server".
- Name:
toon-parse-mcp - Type:
command - Command:
python3 -m toon_parse_mcp.server(Ensure your environment is active or use absolute path to python)
Windsurf
- Click the hammer icon in the Cascade toolbar and select "Configure".
- Alternatively, edit
~/.codeium/windsurf/mcp_config.jsondirectly. - Add the following to the
mcpServersobject:
Antigravity
- Open the MCP store via the "..." menu at the top right of the agent panel.
- Select "Manage MCP Servers" -> "View raw config".
- Alternatively, edit
~/.gemini/antigravity/mcp_config.jsondirectly. - Add the following to the
mcpServersobject:
Claude Desktop
Add this to your claude_desktop_config.json:
Usage
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".
Testing
To run the test suite:
- Install test dependencies:
- Run tests:
Requirements
- Python >= 3.10
mcp>= 1.25.0toon-parse>= 2.4.3
License
MIT License - see LICENSE for details.
Source: README.md at commit 40e9b78
Tools
0Version history
1- v1.0.3-betaLatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Parse integrations

Parse
gl.parseOfficial publisher
Lets an assistant look up how AI engines mention, recommend and cite brands, topics and questions, and manage the resulting follow-up tasks.

PdfParse
Published by GitHub account PabloG6
Hosted MCP server that turns PDFs into structured tables, lets an assistant query the extracted records, and sets up document inbox workflows.

DocParse
Published by GitHub account mrsergeiluzhnov
DocParse is a remote MCP server that converts documents to Markdown and returns US financial data (SEC filings, Treasury yields, FRED macro, FX) plus small dev/
AILANG Parse
Published by GitHub account sunholo-data
Parses Office, PDF and image documents into structured blocks, Markdown or HTML, and converts or creates documents in nine formats.

SemVer numbers only
Published by GitHub account sadri-dridi
A remote MCP endpoint offering 31 small utility tools: SemVer parsing, time and timezone lookups, URL and hostname inspection, HTTP status checks, and simple…