AgentStack
MCP verified MIT Self-run

REX ContextCruncher

mcp-n-sig-rex-contextcruncher · by n-sig

AI-optimized clipboard manager with native screen OCR, image snipping, zero-trust token compression, and MCP server. Everything stays in RAM, no cloud, no admin.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add mcp-n-sig-rex-contextcruncher

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of REX ContextCruncher? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

REX-ContextCruncher

AI-optimized clipboard manager with screen OCR, token compression, and MCP server — no cloud, no admin, everything stays in RAM.

> 💡 v2.0.2 — Configurable image snip folder, Default Settings button, and Snipping Tool UI improvements. See the [Changelog](CHANGELOG.md).


✨ Features

  • Instant OCR — Select any area or capture the full screen; text recognized in \**By default.* Opt-in AI tools (ai_compress, optimize_prompt) make calls to the configured LLM provider when explicitly invoked. See [SECURITY.md](SECURITY.md).

📥 Installation

  1. Download ContextCruncher.exe from the [Releases](../../releases) page
  2. Run it — icon appears in your system tray
  3. Done. No Python needed.

📖 [GUI User Guide](docs/user-guide.md) — full walkthrough of all features

Build from Source

git clone https://github.com/n-sig/ContextCruncher.git
cd ContextCruncher
pip install -r requirements.txt
python src/contextcruncher/main.py

⌨️ Hotkeys

| Hotkey | Action | |---|---| | Ctrl+Shift+1 | Full-screen OCR | | Ctrl+Shift+2 | Region select → OCR → push to stack | | Ctrl+Shift+A | Compress clipboard with AI token optimizer | | Ctrl+Shift+PageUp/Down | Navigate stack entries | | Ctrl+Shift+Space | Search Overlay | | Ctrl+Shift+H | Token Heatmap | | Ctrl+Shift+S | Image Snipping (save + clipboard) |

All hotkeys fully customizable in Settings. Mouse side buttons supported.


🔌 MCP Server (23 Tools)

python setup_mcp.py --all      # Auto-register in Claude, Cursor, etc.
python setup_mcp.py --claude    # Claude Desktop only

Or manually add to your AI client config:

{
  "mcpServers": {
    "contextcruncher": {
      "command": ["python", "-m", "contextcruncher.mcp_server"]
    }
  }
}

📖 [MCP Setup Guide](docs/mcp-setup.md) · [All Tools Reference](docs/tools-reference.md)

Core Tools

| Tool | Description | |---|---| | ocr_scan_region | Interactive screen region OCR | | screenshot_full | Full-screen OCR | | read_clipboard | Read current clipboard | | crunch_text | Compress text with token stats | | crunch_file / crunch_directory | Compress file or entire directory | | crunch_code_skeleton / crunch_file_skeleton | Skeleton of code or data file | | count_text_tokens | Token count + per-model cost estimates | | get_brevity_prompt | Output-brevity system prompt | | search_stack | Search clipboard history | | ocr_get_current / ocr_push_text / ocr_clear_stack | Stack management |

AI Context Manager

| Tool | Description | |---|---| | smart_crunch | Content-type-aware intelligent compression | | explain_compression | Preview compression strategies (read-only) | | budget_loader | Load file into exactly N tokens | | diff_crunch | Delta-only updates since last load | | context_pack | Pack multiple files into one budget-constrained block |

AI Prompt Optimizer

| Tool | Description | |---|---| | optimize_prompt | Rewrite text into structured LLM prompt | | ai_compress | LLM-based semantic compression (opt-in) | | list_optimizer_profiles | List available profiles | | manage_optimizer_profile | Create/delete profiles, configure API keys |


🔒 Security & Privacy

  • ❌ No network access by default — all OCR and compression is local
  • ❌ No file I/O for scanned data — everything in RAM only
  • ❌ No admin privileges required
  • ✅ Automatic secret redaction (API keys, JWTs, webhooks, entropy catch-all)
  • ✅ Context-sensitive IP and UUID redaction (won't damage version strings or URLs)
  • ✅ Crash log (%APPDATA%\contextcruncher\app.log, max 2 MB) — never contains clipboard content
  • ✅ Open source — [MIT License](LICENSE)

🛠️ Development

Requirements: Python 3.11+ · Windows 10 (1903+) or 11 · OCR language pack installed

pip install -r requirements.txt          # Install dependencies
python src/contextcruncher/main.py       # Run
python -m pytest tests/ -v              # Run tests (507 passed)
python evals/run_eval.py                # Compression benchmarks
pyinstaller build.spec                  # Build .exe → dist/ContextCruncher.exe

⚠️ Known Limitations

  • Windows only — requires native Windows OCR engine (10 v1903+ / 11)
  • Language packs required — OCR quality depends on installed Windows language packs
  • No persistent history — stack clears on exit (by design); only 10 pinned entries are saved

📋 Changelog

See [CHANGELOG.md](CHANGELOG.md) for the full release history.

📄 License

[MIT](LICENSE) — free for personal and commercial use.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.