# Claude Code cache and MCP logs

Source: https://diskcity.app/folders/agents-claude-code-cache

**Safe to delete.** Yes. Claude Code writes new cache files and logs as it runs.

## What it is

Claude Code cache and MCP logs is data your Mac or an app can rebuild. It lives at ~/Library/Caches/claude-cli-nodejs.

## Where it is

- `~/Library/Caches/claude-cli-nodejs`

## How big is it?

```sh
du -sh "$HOME/Library/Caches/claude-cli-nodejs"
```

## How to remove it

1. Quit claude first.
2. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
3. Leave anything opened or changed less than 7 days ago (for a folder, its newest file counts). DiskCity waits that long too.
4. Move only what passes these checks to the Trash.
5. 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.
