Free · Open source · MCP server and CLI
Dissect Mac for AI agents
dissectmac-mcp is a free, open source disk analyzer MCP server for macOS. It lets Claude, Cursor and other AI agents see what is filling your disk. Five of its six tools only read. The sixth moves files to the Trash, and only after you say yes. The server makes no network calls. Your AI client sees the results like any other tool output.
claude mcp add dissectmac -- npx -y dissectmac-mcpClaude Code. Other clients are below. macOS only, Node 22.12 or later.
What it does
Six tools and one prompt, free_up_space. The prompt walks the agent through a scan, a shortlist and your confirmation.
| Tool | What it does | Writes |
|---|---|---|
storage_overview | Free and used space, local Time Machine snapshots and known caches, each tagged safe or caution | No |
scan_folder | Largest subfolders and files under a path | No |
find_large_files | Large files with size, modified and last-used dates | No |
list_apps | Apps in /Applications and ~/Applications with size, version and last used | No |
find_app_leftovers | Support files, caches, preferences and launch agents an app left behind | No |
move_to_trash | Moves the paths you chose to the Trash | Trash, after confirm |
Install the MCP server
Claude Desktop
Open dissectmac-mcp.mcpb from the latest GitHub release, or add this to ~/Library/Application Support/Claude/claude_desktop_config.json and restart:
{"mcpServers":{"dissectmac":{"command":"npx","args":["-y","dissectmac-mcp"]}}}Claude Code
Run the first line. To install it as a plugin instead, run the last two lines.
claude mcp add dissectmac -- npx -y dissectmac-mcp claude plugin marketplace add nocodegeeks/dissectmac-mcp claude plugin install dissectmac@dissectmac
Cursor
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"]}}}From the terminal
The same tools run as a CLI. Add --json for the raw result. Exit codes: 0 complete; 3 partial; 2 path refused; 1 error, invalid input, or trash without --confirm.
npx dissectmac-mcp scan ~/Downloads --json npx dissectmac-mcp apps --json npx dissectmac-mcp leftovers "Google Chrome" --json npx dissectmac-mcp capabilities
Example conversation
Illustrative. Your files and sizes will differ.
- YouWhat is filling my disk?
- toolRuns storage_overview, then find_large_files on your home folder.
- AgentThree big candidates: Xcode-15.dmg (11.2 GB), old-project.zip (8.4 GB) and screen-recording.mov (3.1 GB).
- toolCalls move_to_trash without confirm. Reply: NEEDS_CONFIRM, 3 items, 22.7 GB would move to the Trash.
- AgentShould I move these three to the Trash?
- YouYes.
- toolCalls move_to_trash with confirm: true.
- AgentMoved 3 items, 22.7 GB. They are in the Trash if you want them back.
Safety and privacy
- Runs on your Mac. The server talks to your AI client over stdio and makes no network calls.
- No telemetry. It collects nothing and sends nothing.
- Trash only. It never deletes a file. Items go to the Trash and you can recover them there. Finder may not offer Put Back for them.
- You confirm every move. Without confirm: true, move_to_trash only returns a preview of what would move and how big it is.
- Protected paths are refused. It will not touch /System, Keychains, Mail, Messages, Photos, the iCloud Drive root or .git internals. Whole top-level folders like ~/Documents are refused too.
How it differs from the app
The server gives an agent the raw numbers, plus a confirm step before anything goes to the Trash. The Dissect Mac app shows the same disk as a treemap you can click through, with an app uninstaller and a preview before you empty the Trash.
Questions about dissectmac-mcp
- Is it free?
- Yes. dissectmac-mcp is free and open source under the MIT license. There is no account and no paid tier.
- Does it need Dissect Mac installed?
- No. It is a separate package that runs through npx. It needs macOS and Node 22.12 or later.
- Does it work with ChatGPT?
- Not yet. ChatGPT needs a hosted server, and this one runs locally on your Mac. A hosted version is planned.
- What does it never do?
- It never deletes a file permanently, never moves anything without confirm: true and never touches protected paths. It makes no network calls and sends no telemetry.
Source on GitHub. Package on npm. MCP registry: io.github.nocodegeeks/dissectmac-mcp.
Ask your agent what is filling your disk.
Add the server in one line. Prefer to click through the disk yourself? The app shows it as a treemap.
claude mcp add dissectmac -- npx -y dissectmac-mcpOne-time payment · Lifetime licence, no subscription