Help · Guides · Pangalin Space Manager
How to use Pangalin Space Manager with Claude, Codex or Cursor.
If you already work with an AI agent, you can let it read Pangalin Space Manager's latest scan and suggest what to clean up. The agent can read and propose. It can't remove or move anything. A proposal opens the review in Pangalin Space Manager, and nothing happens until you confirm there.
Before you start
- It needs a licence. Without one, the switch says Needs a licence.
- It's off until you switch it on.
- It works with apps that speak MCP (Model Context Protocol), such as Claude Code, Claude Desktop, Codex and Cursor. Pangalin Space Manager brings its own small MCP program inside the app, at
Contents/Helpers/space-manager-mcp. There's nothing else to install.
Switch it on and connect an agent
- Choose Pangalin Space Manager › Settings… (⌘,) and click Privacy.
- Under AI agents, switch on Let AI agents read the scan and propose a clean-up.
- Scan your Mac if you haven't today. The agent reads the latest scan.
- Under Connect an agent, find your AI app and click Connect… next to it.
- Read what the confirmation says it will change, then click Connect.
- Quit and reopen the AI app (or start a new session in Claude Code) so it sees the new connection.
You only do this once. After that, your AI app starts Pangalin Space Manager's helper by itself whenever it needs it.
What Connect changes
Before anything changes, the confirmation shows you the exact command or lines.
- Claude Code: it says This runs Claude Code's own command: and shows a
claude mcp add --scope user pangalin-space-manager …line. That's the same command you'd type in Terminal yourself. - Claude Desktop, Cursor and Codex: it says This adds one entry to the app's settings file and shows the entry. Nothing else in the file changes, and a copy of the file as it was is kept next to it, with
.pangalin-backupon the end of its name.
The files are ~/Library/Application Support/Claude/claude_desktop_config.json for Claude Desktop, ~/.cursor/mcp.json for Cursor and ~/.codex/config.toml for Codex. If a file can't be read safely or is read-only, Pangalin Space Manager leaves it alone and says so. Use Set up manually then.
If your AI app already has a different server called pangalin-space-manager (for example, one pointing at another copy of the app), the row says Set up for another copy of the app and the button is Replace…. Nothing is replaced until you confirm.
If Pangalin Space Manager isn't in your Applications folder, the panel warns you. Agents find it by its location, so if you move it later, connect again.
See whether it's connected
Each AI app in the list shows one of these:
- Connected, with a Disconnect button.
- Not connected, with a Connect… button.
- Not installed, when the app isn't on this Mac.
- Couldn't check whether it's connected. The check didn't finish in time. You can still click Connect….
Next to Connect an agent you'll see when an agent last asked, for example “Last used by Claude Code 2 minutes ago.”, or Not used yet.
The panel also says when an agent can't work yet: Needs a licence., Off. Agents can't read anything until you turn this on., or Scan first, then ask your agent.
Disconnect
Click Disconnect next to the app. For Claude Code, Pangalin Space Manager runs claude mcp remove --scope user pangalin-space-manager. For the others, it takes out only its own entry and leaves the rest of the file as it was. Disconnect works with or without a licence.
What your agent is told
When your AI app connects, Pangalin Space Manager tells it to use the scan for questions like “what's using space on my Mac?” rather than running its own commands, and never to delete, move or empty anything itself. If it wants something cleaned up, it has to send a proposal to Pangalin Space Manager's review.
Try it
Ask your AI app something like this. The same questions are under Try asking in the panel, each with a Copy button.
- “What's using the most space on my Mac?”
- “What's safe to clear right now?”
- “Suggest a clean-up of old caches and show me the review in Pangalin Space Manager.”
If it says agent access is off, switch it on in Settings › Privacy and scan again. The How to use this link in the panel opens this guide.
Set up manually
If you'd rather do it yourself, or Connect couldn't change a file, open Set up manually at the bottom of the panel. It has the lines for each app, with Copy buttons. The lines below assume Pangalin Space Manager is in your Applications folder. If it's somewhere else, copy them from the app instead, because they always have the right location.
Claude Code
Open Terminal (in Applications › Utilities), paste this line and press Return:
claude mcp add --scope user pangalin-space-manager -- "/Applications/Pangalin Space Manager.app/Contents/Helpers/space-manager-mcp"
The --scope user part makes it work wherever you use Claude Code. Without it, it only works in the folder Terminal was in. To check it's there, run claude mcp list. To remove it later, run claude mcp remove --scope user pangalin-space-manager.
Claude Desktop
In Claude, open Settings › Developer and click Edit Config. That opens a file called claude_desktop_config.json. Add this, save the file, then quit and reopen Claude:
{
"mcpServers": {
"pangalin-space-manager": { "command": "/Applications/Pangalin Space Manager.app/Contents/Helpers/space-manager-mcp" }
}
}
If the file already has an mcpServers section, add only the "pangalin-space-manager" line inside it, with a comma after the line before it.
Cursor
In Cursor's settings, find MCP and choose to add a new server. That opens a file called mcp.json. Add the same lines as for Claude Desktop above, and save.
Codex
Add these two lines to the file ~/.codex/config.toml (create it if it isn't there):
[mcp_servers.pangalin-space-manager]
command = "/Applications/Pangalin Space Manager.app/Contents/Helpers/space-manager-mcp"
--scope user yet, so use the line above for Claude Code.Ask for a clean-up
Ask the agent in your own words, for example “Look at my Pangalin Space Manager scan and suggest what I can clean up.” It can get a summary of the scan, list items, look at one item, and propose a plan.
When a proposal arrives, Pangalin Space Manager shows An AI agent proposed a clean-up, with the agent's reason and what the app will do:
- Items the app rates Safe are ticked in the review.
- Anything else the agent picked is named for you to judge, but not ticked.
- Anything protected, changed since the scan, or unknown is left out, and the alert says how many.
Click Review to open the ordinary review sheet, or Dismiss. Nothing is removed until you confirm in the review sheet, and then it goes to the Trash like any other clean-up, with Undo and History. Removals count toward your free 5 GB as usual, and a proposal older than an hour is ignored.
What the agent can see
Only the latest scan: item names, kinds, sizes, Pangalin Space Manager's rating and its notes, and your disk size and free space. Never what's inside your files.
- Protected items are hidden. Anything on your Never Clean list, and things Pangalin Space Manager always protects, such as wallets, keychains and Mail, are left out entirely. The agent sees only their total size.
- File locations are left out unless you switch on Include file locations, under the main switch. Without it, each item has an id that means nothing outside the app.
What the agent can't do
- Remove, move or rename anything. The MCP program has no code that can.
- Tick anything the app doesn't rate Safe.
- Go online. The MCP program opens no network connection and starts no other program. It reads one file Pangalin Space Manager writes, and leaves its proposal in one folder for the app to pick up.
Pangalin Space Manager sends nothing anywhere. The agent you connect may send what it reads to its own service, under that service's privacy terms. If that matters to you, leave Include file locations off.
Switch it off
- Open Settings › Privacy.
- Under AI agents, switch off Let AI agents read the scan and propose a clean-up.
Switching it off deletes the scan file and any unread proposals the app kept for agents, so there's nothing left to read. If your licence ends, it stops the same way. To take Pangalin Space Manager out of your AI app's settings too, click Disconnect next to it before you switch off, or remove pangalin-space-manager from its MCP settings yourself.
Related guides
- Use Ask Kala
- Free up space safely
- Protect files with Never Clean
- Undo, History and bringing moves back
- Your free 5 GB, explained
Checked against Pangalin Space Manager 3.56.0, 1 November 2026.