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

Switch it on and connect an agent

  1. Choose Pangalin Space Manager › Settings… (⌘,) and click Privacy.
  2. Under AI agents, switch on Let AI agents read the scan and propose a clean-up.
  3. Scan your Mac if you haven't today. The agent reads the latest scan.
  4. Under Connect an agent, find your AI app and click Connect… next to it.
  5. Read what the confirmation says it will change, then click Connect.
  6. 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.

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:

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.

Settings, Privacy, AI agents: Claude Code shows Connected with a Disconnect button and the note “Connected. Restart Claude Code if it's open.” Claude Desktop, Cursor and Codex show Not connected with Connect buttons.
Claude Code connected with one click. Restart Claude Code if it's open, then ask it something.

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.

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"
Settings, Privacy, AI agents: the Set up manually list, with Copy buttons and the setup lines for Claude Code, Claude Desktop or Cursor, and Codex.
The Set up manually lines, from Pangalin Space Manager 3.54.0, where they were the only way to connect. Its Claude Code line doesn't have --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:

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.

What the agent can't do

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

  1. Open Settings › Privacy.
  2. 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

Checked against Pangalin Space Manager 3.56.0, 1 November 2026.