
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 状态检查以及简单的格式校验。