Allows cleaning of Brave browser cached content.
Allows cleaning of Bun package manager cache.
Allows cleaning of CocoaPods specs and pods cache.
Allows cleaning of Docker virtual disk (images and containers).
Allows cleaning of shared Electron framework cache.
Allows cleaning of Gradle build cache.
Allows cleaning of Homebrew downloaded bottles and tarballs cache.
Allows cleaning of iOS simulator data and device debug symbols.
Allows cleaning of Next.js SWC cache (part of TypeScript cache).
Allows cleaning of Node.js native addon headers cache (node-gyp).
Allows cleaning of npm package cache.
Allows cleaning of pnpm content-addressable store.
Allows cleaning of Prisma ORM query engine binaries cache.
Allows cleaning of pip cache (Python packages from PyPI).
Allows cleaning of Python pip cache.
Allows cleaning of PyTorch model cache (torch hub).
Allows cleaning of SWC compiler cache (part of TypeScript cache).
Allows cleaning of Swift Package Manager cache.
Allows configuration of Telegram notifications for alerts.
Allows cleaning of TypeScript compiler cache.
Allows cleaning of Xcode derived data and device support caches.
Allows cleaning of Yarn package cache.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cacheout-mcpfree up 10GB of disk space"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cacheout-mcp
MCP server for macOS disk cache management — lets AI agents free disk space on demand.
Why
When you run AI agents (OpenClaw, Claude Code, etc.) on a Mac Mini or any macOS machine, disk pressure can silently degrade performance. Swap thrashing, failed builds, Docker OOM — all from running out of space that's locked up in developer caches.
cacheout-mcp gives your agent a set of tools to detect and fix disk pressure in real-time:
Agent detects 2 GB free → calls cacheout_smart_clean(target_gb=15) → 15 GB freed in 3 secondsRelated MCP server: FGD Fusion Stack Pro
Three Execution Modes
Mode | When | How it works |
Socket | Cacheout daemon running with Unix socket | Connects to daemon for real-time data, trend analysis, health scores |
App | Cacheout.app installed, no running daemon | Delegates to Cacheout CLI binary ( |
Standalone | No Cacheout.app (headless servers) | Cleans caches directly via Python, reads sysctl for memory stats |
Mode is auto-detected at startup (socket → app → standalone). Override with CACHEOUT_MODE=standalone or CACHEOUT_MODE=app.
Install
# From PyPI (when published)
pip install cacheout-mcp
# From source
cd cacheout-mcp
pip install -e .MCP Configuration
Claude Code / Claude Desktop
Add to ~/.claude/claude_desktop_config.json or your project's .mcp.json:
{
"mcpServers": {
"cacheout": {
"command": "cacheout-mcp",
"env": {}
}
}
}OpenClaw / Custom Agents
{
"mcpServers": {
"cacheout": {
"command": "python",
"args": ["-m", "cacheout_mcp.server"],
"env": {
"CACHEOUT_MODE": "standalone"
}
}
}
}With uv (no install needed)
{
"mcpServers": {
"cacheout": {
"command": "uvx",
"args": ["cacheout-mcp"]
}
}
}Tools
cacheout_get_disk_usage
Check current disk space. No parameters.
→ {"total": "500.1 GB", "free": "23.4 GB", "used_percent": 95.3}cacheout_scan_caches
Scan all cache directories and report sizes. Optional filters:
categories: List of slugs to scan (omit for all)min_size_mb: Only show categories above this size
→ {"total_cleanable": "45.2 GB", "categories": [{"slug": "xcode_derived_data", "size_human": "15.0 GB", ...}]}cacheout_clear_cache
Clear specific categories by slug. Requires explicit category list.
categories: Required list of slugsdry_run: Preview without deleting
← {"categories": ["xcode_derived_data", "homebrew_cache"], "dry_run": false}
→ {"total_freed": "18.2 GB", "results": [...]}cacheout_smart_clean
The primary tool for agents. Specify how much space you need; it clears safest caches first.
target_gb: Required — how many GB to freedry_run: Preview modeinclude_caution: Include Docker and other high-risk categoriesfree_memory: Also run memory purge after disk cleanup (addsmemory_freed,purge_resultto response)
← {"target_gb": 10.0}
→ {"target_met": true, "total_freed_human": "12.3 GB", "disk_after": {"free_gb": 17.5}}cacheout_status
Server status, mode, and available categories.
cacheout_get_memory_stats
Check RAM, swap, memory pressure, and memory tier. No parameters.
→ {"total_physical_mb": 16384.0, "memory_tier": "comfortable", "estimated_available_mb": 6096.0, ...}cacheout_get_process_memory
List top memory-consuming processes. Optional top_n and sort_by parameters.
Returns envelope: {mode, capabilities, data: {processes, count, sort_by_applied}, partial}.
cacheout_get_compressor_health
Check macOS memory compressor ratio, compression/decompression rates, and thrashing detection. No parameters.
Returns envelope: {mode, capabilities, data: {compressor_ratio, thrashing, ...}, partial}.
cacheout_memory_intervention
Run memory interventions. Required parameters:
intervention_name: Canonical name (e.g.,"purge")confirm:falsefor dry-run preview,trueto execute
Returns envelope: {mode, capabilities, data: {dry_run, intervention, ...}, partial}.
cacheout_system_health
Combined disk + memory + alert health check with a 0-100 score. No parameters. In socket mode, fetches from daemon. In standalone, computes locally.
cacheout_check_alerts
Read watchdog alerts (near-zero cost file read). Optional acknowledge parameter.
cacheout_get_recommendations
Get predictive memory/disk recommendations. Socket mode includes trend-based types
(exhaustion_imminent, compressor_degrading). Standalone returns snapshot types only.
cacheout_configure_autopilot
Validate and apply autopilot/watchdog configuration. Required config parameter (dict with
version, enabled, optional rules/webhook/telegram). This is a write/validate/apply tool.
Cache Categories (23 total)
Slug | Risk | What it cleans |
| Safe | Build artifacts, indexes |
| Safe | Fast Python installer cache |
| Safe | Downloaded bottles/tarballs |
| Safe | npm package cache |
| Safe | Yarn package cache |
| Safe | pnpm content-addressable store |
| Safe | Bun package manager cache |
| Safe | TypeScript compiler + Next.js SWC cache |
| Safe | Playwright browser binaries |
| Safe | CocoaPods specs and pods |
| Safe | Native Node.js addon headers |
| Safe | Prisma ORM query engine binaries |
| Safe | Swift Package Manager cache |
| Safe | Gradle build cache |
| Safe | Python pip cache |
| Safe | ChatGPT desktop app cache |
| Safe | VS Code updates and extensions |
| Safe | Shared Electron framework cache |
| Review | Brave/Chrome cached web content |
| Review | iOS device debug symbols |
| Review | iOS/watchOS simulator data (uses xcrun) |
| Review | PyTorch models (slow to re-download) |
| Caution | Docker virtual disk (all images/containers) |
Smart Clean Priority
When smart_clean is called, categories are cleaned in this order:
Safe categories, sorted by clean_priority (build artifacts first)
Review categories (browser caches, device support)
Caution categories (Docker) — only if
include_caution=true
Stops as soon as target_gb is freed.
Environment Variables
Variable | Default | Description |
| auto-detect | Force |
| auto-detect | Path to Cacheout binary |
Adding the CLI to Cacheout.app
If you maintain the Cacheout Swift app, add the CLIHandler.swift file to your Sources
and update CacheoutApp.swift to check CLIHandler.shouldHandleCLI() on init.
This enables Cacheout --cli scan, Cacheout --cli clean, etc. for app-mode integration.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cacheout-app/cacheout-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
