dissectmac-mcp
Scans macOS disk usage, large files, applications, and app leftovers, and moves selected paths to the Trash through macOS's file manager API.
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.
dissectmac-mcp
Let your AI agent find what is filling your Mac's disk, then move it to the Trash after you say yes.
It is an MCP server and a CLI for macOS. It needs Node 22.12 or later.
Install
Claude Desktop
Download dissectmac-mcp.mcpb from the latest release and open it. Claude Desktop installs it as an extension.
Or add this to ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop:
{"mcpServers":{"dissectmac":{"command":"npx","args":["-y","dissectmac-mcp"]}}}Claude Code
claude mcp add dissectmac -- npx -y dissectmac-mcpOr install it as a plugin. The plugin runs the npm package through npx, so Node 22.12 or later must be on your PATH.
claude plugin marketplace add nocodegeeks/dissectmac-mcp
claude plugin install dissectmac@dissectmacCursor
Add this to ~/.cursor/mcp.json:
{"mcpServers":{"dissectmac":{"command":"npx","args":["-y","dissectmac-mcp"]}}}Windsurf
Add this to ~/.codeium/windsurf/mcp_config.json:
{"mcpServers":{"dissectmac":{"command":"npx","args":["-y","dissectmac-mcp"]}}}Related MCP server: @shieldfive/mcp
Tools
Tool | What it does | Writes? |
| Free and used space (used is total minus free, so it covers the whole disk and not only the system volume), local Time Machine snapshots and known caches, each tagged safe or caution | No |
| Largest subfolders and files under a path | No |
| Large files with size, modified and last-used dates | No |
| Apps in | No |
| Support files, caches, preferences and launch agents an app left behind | No |
| Moves the paths you chose to the Trash | Yes, only with |
The server also ships a free_up_space prompt. It walks the agent through a scan, a shortlist and your confirmation.
Over MCP each tool call stops after 45 seconds, inside the 60 second limit most clients use. If a scan runs out of time you get what it measured so far, marked partial. The CLI allows longer scans.
Safety
Everything runs on your Mac. The server makes no network calls and sends no telemetry.
Five of the six tools only read. Only
move_to_trashchanges anything.move_to_trashnever deletes. Withoutconfirm: trueit returns a preview of what would move and how big it is.Items go to the Trash through macOS's file manager API. They stay recoverable in the Trash, but Finder's "Put Back" may not work for them.
A path guard refuses protected locations. It never touches
/System,~/Library/Keychains, Mail, Messages, Photos, Calendars, Contacts, Notes, Safari data, iCloud Drive, cloud storage folders under~/Library/CloudStorageor.gitinternals.Whole top-level folders such as
~/Documentscannot be trashed. Their contents can.External drives under
/Volumesare supported.If one path in a call is refused, nothing in that call is moved.
Some folders are protected by macOS. Give your AI client app Full Disk Access in System Settings > Privacy & Security so scans can include them.
DISSECTMAC_MCP_TIMEOUT_MSoverrides every tool timeout. It is a testing knob. A value below 2000 disables trashing.
CLI
The same tools work from the terminal. Add --json to any command for the raw result.
npx dissectmac-mcp overview
npx dissectmac-mcp scan ~/Library --depth 2 --min 100 --limit 20
npx dissectmac-mcp large ~ --min 500 --older 180
npx dissectmac-mcp apps
npx dissectmac-mcp leftovers "Google Chrome"
npx dissectmac-mcp trash ~/Downloads/old.dmg # preview only
npx dissectmac-mcp trash ~/Downloads/old.dmg --confirm # move to the Trash
npx dissectmac-mcp capabilities --jsoncapabilities lists every tool with its JSON Schema, the exit codes and the environment variables.
Exit code | Meaning |
0 | Complete |
1 | Error, invalid input, or |
2 | Path refused by the path guard |
3 | Partial result (a probe timed out or some items failed) |
Run with no arguments and it starts the MCP server on stdio.
Why not the app?
This server gives an agent the raw numbers and a confirm-first way to trash things. Dissect Mac shows the same disk as a treemap you can click through, with an uninstaller and a preview before you empty the Trash.
License
MIT. See LICENSE.
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
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Your own computer's files from ChatGPT or Claude: folder rules, confirmations and undo.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to clean disk space by scanning and removing temporary files, caches, and duplicates through natural language commands via MCP protocol.1-

@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 natural-language management of macOS disk cleanup by scanning large files, AI model weights, and caches, identifying duplicates, and safely moving files to Trash or permanently deleting them with confirmation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to measure macOS disk usage, investigate unfamiliar files and folders, identify cleanup candidates, and prepare numbered cleanup proposals that move approved items to the Trash only after server-side path checks.16 npm1MIT