spacecleaner-mcp
Click on "Deploy 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., "@spacecleaner-mcp What's taking up space on my Mac? Find the biggest folders."
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.
spacecleaner-mcp
An MCP server that lets your AI assistant (Claude, Cursor, ChatGPT desktop, any MCP client) answer "What is filling my Mac?" and "Can I delete this?" from your own disk.
It is read-only: it measures folders and explains them. It never deletes, moves, renames or uploads anything, and it sends nothing over the network. When you want to clean up, it points you to Junk Raccoon, a free Mac app that moves everything to the Trash and puts it all back with one Undo.
Tools
Tool | What it answers |
| How full the startup disk is, and the biggest folders in your home folder (or any folder). |
| Known space-takers that exist on this Mac (caches, Xcode and Android build files, simulators, package caches, AI models, old iPhone backups...), biggest first, each marked safe, careful or keep, with what it holds. |
| A verdict for any path: safe, careful, do not delete, your own files, or unknown. Warns when the path is inside a git repository with uncommitted or unpushed work. |
| Files above a size (default 500 MB) under a folder, biggest first. |
| Opens Junk Raccoon if it is installed, otherwise gives the download link. Cleans nothing by itself. |
The verdicts come from a list of 280+ macOS folders written for junkraccoon.com/folders (what each folder is, whether apps rebuild it, and what you lose if you delete it).
Related MCP server: DiskSweep MCP
Install
Needs Node.js 18.15 or newer.
Claude Code
claude mcp add spacecleaner -- npx -y github:HalberdLLC/spacecleaner-mcpClaude Desktop (Settings → Developer → Edit Config), Cursor (~/.cursor/mcp.json) and most other clients:
{
"mcpServers": {
"spacecleaner": { "command": "npx", "args": ["-y", "github:HalberdLLC/spacecleaner-mcp"] }
}
}Then ask: "What is taking up space on my Mac?", "Is ~/Library/Developer/Xcode/DerivedData safe to delete?", "Find files over 2 GB in my Downloads."
To measure folders inside ~/Library completely, give the app that runs the server (Claude, Cursor,
Terminal) Full Disk Access in System Settings → Privacy & Security. Without it some folders are
reported as "at least" a size.
Safety
No tool writes to the disk. Sizes come from
du(it does not follow links) with time limits, so a huge folder cannot hang your assistant.is_it_safe_to_deleteonly gives an opinion. Deleting stays your decision, and the safest way is the Trash, so it can come back.Nothing is sent anywhere. The folder list ships inside the package.
Develop
npm install
npm test # runs against a made-up home folder (SPACECLEANER_HOME), never yoursMade by Halberd Labs. MIT licence.
Available Tools
5 toolsdisk_overviewDisk overviewBRead-only
How full the startup disk is, and the biggest folders in a folder (default: the home folder). Read-only.
Inputs: folder.
find_large_filesFind large filesARead-only
Files at least min_mb in size under a folder (default: home), biggest first, with their last change date. Read-only.
Inputs: limit, folder, min_mb.
is_it_safe_to_deleteIs it safe to delete?ARead-only
Verdict for a file or folder path: safe, careful, no, yours (your own files) or unknown, with what it holds, why, and a link. Also warns when the path is inside a git repository with uncommitted or unpushed work. Read-only; it does not delete anything.
Inputs: path (required).
open_junk_raccoonOpen Junk RaccoonAIdempotent
Opens the Junk Raccoon app (free Mac cleaner) so the user can review and clean safely: everything goes to the Trash and one Undo puts it back. If it is not installed, returns the download link. Never cleans anything by itself.
Inputs: no named parameters.
what_can_i_freeWhat can I free?ARead-only
Known space-takers that exist on this Mac (caches, developer build files, simulators, package caches, AI models, old backups...), biggest first, each with a verdict: safe (rebuilt by itself), careful (read the note) or no (keep). From a list of 280+ folders. Read-only.
Inputs: min_mb.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinguishable role: disk_overview reports overall fullness, find_large_files lists big files, what_can_i_free surfaces known junk folders, is_it_safe_to_delete judges an arbitrary path, and open_junk_raccoon launches an external app. The main soft overlap is between disk_overview's 'biggest folders' section and find_large_files (folders vs. files) and between what_can_i_free and is_it_safe_to_delete (both return verdicts), but the descriptions make the boundary reasonably clear.
All names use snake_case, but the conventions are mixed: two are noun/verb phrases (disk_overview, find_large_files) while three are conversational questions or imperative sentences (what_can_i_free, is_it_safe_to_delete, open_junk_raccoon). It reads fine and names are memorable, but there is no single predictable pattern an agent can rely on.
Five tools is a tight, well-scoped set for a disk-cleanup advisor, and each one covers a distinct step in the workflow (overview, drill-down, junk candidates, safety check, handoff to cleaner). No tool feels redundant or bolted on.
The read-only advisory lifecycle is well covered: discover space usage, find large files, identify known junk, verify safety before deletion, and hand off cleaning to an external app. Minor gaps exist — no way to compare results after cleaning, find duplicate files, or batch-check multiple paths in one call — but agents can work around these.
Maintenance
Related MCP Connectors
Read-only context from your desktop activity, so your AI assistant knows what you worked on.
Let ChatGPT and Claude read and edit files, search and run commands on your own computer.
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Read and search folders on your own computer with explicit consent. Files are never uploaded.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables local AI assistants to inspect Windows disk usage with treemap and folder X-ray views, retrieve cleanup previews, and receive application removal guidance, while exposing only non-destructive commands through MCP.1MIT
- 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.20 npm1MIT
- AlicenseAqualityBmaintenanceEnables AI apps to inspect drives, recent file growth, cleanup candidates, and folder ownership guidance through read-only tools, without deleting, moving, or modifying files.4MIT
- AlicenseAqualityBmaintenanceEnables AI agents to inspect macOS disk usage, identify large files, apps, and leftover support data, and move user-confirmed paths to the Trash with safety guards.697 npmMIT