mcptoon是一款开源MCP CLI客户端工具,通过采用TOON(Token-Optimized Object Notation)格式替代JSON,显著降低了工具发现阶段的token消耗[1]。该工具将工具发现的token成本从10,000多个降低至350个,削减比例达到97%[1]。在完整schema处理中,token削减比例为60%[1]。
mcptoon采用纯Python实现,代码量约1,700行,零第三方依赖,文件大小仅50KB,支持Python 3.10及以上版本[1]。该工具跨平台兼容Windows、macOS和Linux[1],可与Claude Code、Cursor等AI代理集成[1]。项目包含98个测试用例,执行时间为0.09秒,采用Apache 2.0许可证发布[1]。
An open-source MCP CLI client tool called mcptoon has been released, offering significant efficiency gains for AI agent integrations.[1] The tool achieves a dramatic reduction in token consumption by replacing JSON with TOON (Token-Optimized Object Notation) format, lowering tool discovery costs from over 10,000 tokens to just 350 tokens.[1] This represents a 97% reduction in token usage for tool discovery operations, with an additional 60% token savings when processing complete schemas.[1]
Mcptoon is implemented in approximately 1,700 lines of pure Python code with zero third-party dependencies, and supports Windows, macOS, and Linux platforms.[1] The entire package weighs just 50 kilobytes and requires Python 3.10 or later.[1] The tool is distributed under the Apache 2.0 license and includes 98 test cases that execute in 0.09 seconds, ensuring reliability and performance.[1] It is designed for seamless integration with AI agents such as Claude Code and Cursor.[1]