经 AI Skill Hub 精选评估,开源MCP工具:Context Cooler 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
Context Cooler — eliminate token burn with the coolest MCP on the net。开源MCP工具,帮助开发者减少token烧毁。
开源MCP工具:Context Cooler 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Context Cooler — eliminate token burn with the coolest MCP on the net。开源MCP工具,帮助开发者减少token烧毁。
开源MCP工具:Context Cooler 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/Blackfrost-AI/context-cooler
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"--mcp---context-cooler": {
"command": "npx",
"args": ["-y", "context-cooler"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 开源MCP工具:Context Cooler 执行以下任务... Claude: [自动调用 开源MCP工具:Context Cooler MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"__mcp___context_cooler": {
"command": "npx",
"args": ["-y", "context-cooler"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Eliminate token burn with the coolest MCP on the net.
Burn fewer tokens. Ship cooler agents.
A standalone Model Context Protocol (MCP) server that gives any MCP-compatible coding agent — Claude Code, Cursor, OpenAI Codex CLI, Gemini CLI, OpenCode, Grok CLI — a sandboxed runtime, an FTS5 knowledge base, and a multi-messenger delivery channel. Built from scratch on the MCP spec. Zero outbound dependencies beyond the four pinned ones in package.json. MIT-licensed, audit-readable end-to-end.
---
pretzel-porter at install time; the adapter writes into ~/.pretzel-porter/agent.config.local.json.install.py --platform=grok (or interactive) now writes a native [mcp_servers.context-cooler] table to ~/.grok/config.toml (stdlib TOML, no extra deps). Works alongside the existing .claude.json compatibility layer; enables project .grok/config.toml too.$CONTEXT_COOLER_HOME or --data-dir.--data-dir flag sets where the SQLite databases live.ctx_execute now returns a structured status: success | runtime_error | timeout | sandbox_violation | language_unavailable. Agents can branch on the failure mode instead of parsing stderr.ctx_doctor reads ~/.context-cooler/last-upgrade.txt (purely local, no network call) and surfaces a "last upgraded N days ago" warning when it's older than 30 days.install.py now walks you through platform selection and install path interactively (stdlib input(), no new dependencies). Non-TTY runs default to all platforms.status, exit_code, duration_ms) are additive.---
---
python3 install.py # Interactive — asks which agents to register
python3 install.py --platform=claude-code # Register one platform, skip prompt
python3 install.py --platform=all # Register every supported agent
python3 install.py --non-interactive # Use defaults, no prompts (for CI)
python3 install.py --dry-run # Preview changes without writing
python3 install.py --verify # Check installation status
python3 install.py --uninstall # Show uninstall notes
python3 install.py --update # git pull + rebuild + re-register
python3 install.py --accept-disclaimer # Skip disclaimer prompt (CI/scripts)
python3 install.py --data-dir /custom/path # Custom data directory
Every install runs these four universal steps:
npm install + npx tsc).context-cooler with each selected platform adapter (Claude Code, Cursor, Codex, Gemini, OpenCode, Pretzel Porter, Grok CLI). Each adapter writes atomically (tmp file + rename) to that platform's MCP config file.stats.db + sessions.db) under the data directory (default: your home directory, override with $CONTEXT_COOLER_HOME or --data-dir). The directory is auto-created.<data-dir>/context/last-upgrade.txt so ctx_doctor can remind you to upgrade later."Across these 47 TypeScript files, find everyawaitthat's missing atry/catch."
| Approach | Bytes consumed | Tokens (rough) |
|---|---|---|
Read × 47 (/src/**/*.ts) | ~700 KB raw text in context | ~175,000 |
ctx_execute (one shell+grep call, prints summary) | ~3.6 KB summary | ~900 |
The 195× reduction isn't theoretical — it's what a real morning-brief pipeline measures every day. The agent's job is to write a script, not to memorise the repo.
ctx_execute runs that script in a sandboxed subprocess (11 supported runtimes), captures stdout, optionally filters with an intent keyword, indexes the full output in FTS5 (so the agent can search it later without re-reading), and returns only the compact summary to the context window.
---
Aggregate stats across both stats.db and sessions.db. Shows total runs, bytes saved, compression ratios, and session event counts.
```
install.py calls this CLI under the hood, one platform at a time.
---
| Variable | Default | Description |
|---|---|---|
CONTEXT_COOLER_HOME | your home directory | Root data directory (dbs live under <dir>/context/, optional .env) |
CTX_SNAPSHOT_BUDGET | 2048 | Max bytes for session snapshots (256-65536) |
CTX_FTS_ENABLED | 1 | Set to 0 to disable FTS5 indexing |
TELEGRAM_BOT_TOKEN | — | Telegram bot token for ctx_deliver |
TELEGRAM_CHAT_ID | — | Default Telegram chat ID |
SLACK_WEBHOOK_URL | — | Slack incoming webhook URL |
DISCORD_WEBHOOK_URL | — | Discord webhook URL |
---
Run multiple commands and/or search queries in a single MCP call. Each command is executed sequentially with its own intent filter.
ctx_batch(commands=[
{"language": "python", "code": "...", "intent": "summary"},
{"language": "shell", "code": "...", "intent": "top 5"}
], queries=["previous error rates"])
For deterministic tasks, bypass the LLM entirely. Schedule pipelines via launchd/cron:
launchd → python3 pipeline.py → ctx_execute → ctx_deliver → iMessage/Telegram
No agent. No model. No tokens.
---
Context Cooler是一个开源的MCP工具,帮助开发者减少token烧毁。虽然它是一个sandboxed的工具,但它的功能和性能仍然需要进一步优化。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:开源MCP工具:Context Cooler 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | context-cooler |
| 原始描述 | 开源MCP工具:Context Cooler — eliminate token burn with the coolest MCP on the net. Sandboxed。⭐10 · TypeScript |
| Topics | mcptypescript |
| GitHub | https://github.com/Blackfrost-AI/context-cooler |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-06 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端