
Toon Parse Mcp
io.github.ankitpal181由 GitHub 帳號 ankitpal181 發布v1.0.3-beta更新於 Oct 24, 2026
MCP server that reduces LLM context by removing code comments and converting data formats to TOON
發布方自己的服務:Parse
概覽
本機 MCP 伺服器,透過將 JSON、XML、YAML、CSV 轉為 TOON 格式並移除程式碼註解來壓縮上下文。
- 可以做什麼
- 將貼上的 JSON、XML、YAML 或 CSV 文字轉換為精簡的 TOON 格式以節省 token(optimize_input_context)。讀取本機程式碼檔案並回傳移除行內註解與多餘空白的版本(read_and_optimize_file)。提供一個資源,內含要求助理優先使用這些節省 token 工具的嚴格提示詞。
- 適用情境
- 當冗長的結構化資料或註解眾多的原始碼佔用助理的上下文視窗時,可在推理前先取得更小但仍保留功能的表示形式。
- 執行需求
- 以 stdio 本機程序執行,指令為 python3 -m toon_parse_mcp.server。需要 Python 3.10 或更新版本,以及來自 PyPI 的 toon-parse-mcp 套件(會引入 mcp 與 toon-parse)。未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Toon Parse Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 40e9b78
工具
0版本歷史
1- v1.0.3-beta最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Parse 整合

Parse
gl.parse官方發布者
讓助理查詢 AI 引擎如何提及、推薦與引用品牌、主題和問題,並管理隨之產生的後續任務。

PdfParse
由 GitHub 帳號 PabloG6 發布
託管型 MCP 伺服器,可將 PDF 轉成結構化表格、讓助理查詢擷取出的紀錄,並設定文件收件匣工作流程。

DocParse
由 GitHub 帳號 mrsergeiluzhnov 發布
DocParse 是遠端 MCP 伺服器,可將文件轉為 Markdown,並提供美國金融資料(SEC 申報、公債殖利率、FRED 總經、匯率)及若干開發小工具。
AILANG Parse
由 GitHub 帳號 sunholo-data 發布
將 Office、PDF 與圖片文件解析為結構化區塊、Markdown 或 HTML,並可在九種格式間轉換或建立文件。

SemVer numbers only
由 GitHub 帳號 sadri-dridi 發布
一個遠端 MCP 端點,提供 31 個小型工具:SemVer 解析、時間與時區查詢、URL 與主機名稱檢查、HTTP 狀態檢查以及簡單的格式驗證。