unix-disk-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
unix-disk-mcp
AI-assisted disk cleanup for Unix systems (macOS and Linux). Let an LLM explore your filesystem, identify unused files, and suggest what to delete. You stay in control — the AI can only suggest and stage items, never delete them.
Why?
Traditional disk cleaners use fixed rules. This tool lets AI reason about your actual usage:
"3 Node.js installations via different methods"
"40GB VM untouched for 14 months"
"Docker images for deleted projects"
"Homebrew packages nothing depends on"
Related MCP server: sweep-mcp
Security
The AI cannot delete files. Ever. This is architectural:
What AI can do:
Explore filesystem
Suggest items to delete
Stage items for deletion
What AI cannot do:
Execute deletion
Run delete script
You run unix-disk-mcp delete manually to review and confirm.
Install
npm install -g unix-disk-mcp
unix-disk-mcp setupThe setup wizard configures everything. Or manually:
1. Add to MCP client config:
VS Code: ~/Library/Application Support/Code/User/mcp.json (macOS) or ~/.config/Code/User/mcp.json (Linux)
{
"servers": {
"unix-disk-mcp": {
"type": "stdio",
"command": "unix-disk-mcp"
}
}
}Cursor: ~/.cursor/mcp.json
{
"mcpServers": {
"unix-disk-mcp": {
"command": "unix-disk-mcp",
"args": []
}
}
}Claude: ~/.claude.json
{
"servers": {
"unix-disk-mcp": {
"type": "stdio",
"command": "unix-disk-mcp"
}
}
}2. Configure protected paths:
Run unix-disk-mcp config to see config location, then edit:
{
"protected_paths": ["/System", "/Library", "~/.ssh", "~/.gnupg"]
}Usage
1. Ask AI to explore:
"What's using disk space?"
"Find large files I don't need"
"Check for old Docker images"
2. AI stages items:
Staged for deletion:
1. ~/.cache/pip (2.3 GB)
2. ~/Downloads/old-installer.dmg (1.5 GB)
Total: 3.8 GB3. You delete manually:
unix-disk-mcp delete
# Reviews staged items, requires typing HUMAN, then y/N confirmationTools Available to AI
Exploration:
list_directory- Browse foldersget_disk_usage- Disk space overviewfind_large_items- Find big files/folders (supports progressive depth exploration)get_item_info- Details on specific pathssearch_files- Find files/directories by name pattern
Discovery:
list_applications- Installed apps with last-opened dates (macOS); app list only on Linuxlist_packages- Installed packages (Homebrew, apt, dnf, yum, pacman)list_docker- Docker images, containers, volumes
Staging:
stage_for_deletion- Mark for deletionunstage- Remove from stagingget_staged- View staged items
Platform Support
macOS:
Trash via AppleScript
Accurate APFS disk usage (diskutil)
App discovery via Spotlight with last-opened dates
Homebrew package listing
Linux:
Trash via gio/trash-cli/freedesktop spec
Disk usage via df
App discovery via .desktop files (no last-opened dates)
System package manager support (apt, dnf, yum, pacman) + Homebrew if installed
Safety Features
AI cannot delete (architecturally separated)
Terminal check (blocks piped input)
Human verification required (type "HUMAN")
Protected paths cannot be staged
Items go to Trash (recoverable)
Deletion requires manual terminal command
Confirmation prompt before deletion
Deletion history logged
Commands
unix-disk-mcp # Start MCP server (default)
unix-disk-mcp setup # Setup wizard
unix-disk-mcp delete # Delete staged items (manual only)
unix-disk-mcp config # Show config location
unix-disk-mcp help # Show helpConfig & Data
Config:
~/.config/unix-disk-mcp/config.jsonStaged items:
~/.local/share/unix-disk-mcp/staged.jsonHistory:
~/.local/share/unix-disk-mcp/history.json
License
GPL-3.0-or-later
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your own computer's files from ChatGPT or Claude: folder rules, confirmations and undo.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to intelligently search and explore local file systems using native Unix commands (ripgrep, find, ls) with token-optimized output, automatic pagination, and multi-layer security validation.164 npm2-
- AlicenseNot gradedqualityCmaintenanceEnables LLM agents to safely reclaim disk space by deleting build artifact directories like node_modules, .venv, and target, with strong guardrails to prevent accidental or malicious deletion.MIT

@shieldfive/mcpofficial
AlicenseNot gradedqualityBmaintenanceOfficial server for the ShieldFive end-to-end encrypted vault. Moves files off your computer into the vault, reading each copy back and verifying it before the original goes to a local trash folder (nothing deleted). Also finds duplicates by content and tidies folders. Decrypts on your machine; access is scoped, expiring, revocable and undoable.86 npmMIT- AlicenseNot gradedqualityBmaintenanceEnables AI agents to scan a developer machine for disk space hogs, audit git worktrees for stale or orphaned ones, re-check individual findings, and run allowlisted cleanup actions as dry runs unless explicitly confirmed. Risky items are reported with warnings and refused by default.58 npm2MIT