Claude Code cache and MCP logs
Last updated 1 November 2026
What it is, where it lives on your Mac, and whether it’s safe to delete.
Safe to delete
Yes. Claude Code writes new cache files and logs as it runs.
Where it is
~/Library/Caches/claude-cli-nodejs
Is it safe to delete?
Yes. Claude Code writes new cache files and logs as it runs.
How big is it?
In Terminal, this shows its size without changing anything:
du -sh "$HOME/Library/Caches/claude-cli-nodejs"How to remove it
- Quit claude first.
- In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
- Leave anything opened or changed less than 7 days ago (for a folder, its newest file counts). DiskCity waits that long too.
- Move only what passes these checks to the Trash.
- Empty the Trash to get the space back. Until then, you can still put things back.
What DiskCity does with it
DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It only suggests it once it hasn't been used for 7 days. It waits until claude is closed.
