Skip to content
diskdiet logo
MCP server
Registry

diskdiet MCP Server

See what developer caches and old node_modules use disk space, and free it safely.

diskdiet scores 65 (Good), licensed MIT and written in Go. It installs as a local process. It does not declare tools yet. Filed under Developer tools. GitHub shows 2 stars. Package registries report about 103 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by roystondwork-devMITGo2 stars
Trust score
65Good
Trust score 65 of 100, Good

Good trust

65 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 65 comes from

22 + 20 + 2 + 10 + 4 + 7 = 65. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "roystondwork-dev-diskdiet": {      "command": "npx",      "args": [        "-y",        "diskdiet@0.7.1"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

📖 Documentation: https://roystondwork-dev.github.io/diskdiet/ (install · disk full? · what it cleans)

Why

Package managers never forget. After a year of npm install, the npm cache alone can pass 40 GB, and Docker images, the pnpm store and old projects' node_modules add more. Most cleaners either wipe everything, so your next installs crawl, or only handle one tool.

diskdiet shows the whole picture first, then removes only what you haven't used lately: by default, anything unchanged for 30 days.

Desktop app

Prefer clicking? The diskdiet app shows the same breakdown in a window: how much can be freed, a bar for every cache, and the node_modules of each project you haven't touched, which you can untick to keep. Pick an age (7, 30 or 90 days, or everything), review the list, and free it in one click.

It also stays in your menu bar (or system tray) after you close the window, checks every few hours, and notifies you when more than 10 GB could be freed. If you want, it can clean old package-cache entries automatically every day or week, but never node_modules or Docker (details).

Download it from the latest release:

OSFile
macOS (Apple silicon and Intel)diskdiet-app_<version>_macos_universal.dmg
Windowsdiskdiet-app_<version>_windows_amd64_setup.exe (installs for your user, no admin needed)
Linuxdiskdiet-app_<version>_linux_x86_64.AppImage

The app isn't signed by Apple or Microsoft yet, so the first launch needs one extra step (details):

  • macOS: open the app once, then go to System Settings → Privacy & Security and click Open Anyway.
  • Windows: on the SmartScreen warning, click More info → Run anyway.
  • Linux: chmod +x diskdiet-app_*.AppImage and run it.

VS Code

The diskdiet extension adds a Disk space view, a status bar item that appears when a lot can be freed, and a Free Disk Space… command. When a command in the terminal fails with "no space left on device", it offers to free space right there (details). Search diskdiet in the Extensions view, or install the .vsix from the latest release.

GitHub Action

Free disk space on CI runners in one step: package and Docker caches, and optionally the preinstalled SDKs your job doesn't use (20–30 GB on GitHub-hosted Linux runners). Your project's node_modules is never touched. On the GitHub Marketplace.

- uses: roystondwork-dev/diskdiet@v0.7.1 # x-release-please-version
  with:
    remove-preinstalled: android,dotnet,haskell,codeql

Inputs, outputs and self-hosted runners.

AI assistants (MCP)

Let Claude Code, Cursor, VS Code Copilot and other assistants see what is using disk space and free it when you ask:

claude mcp add diskdiet -- diskdiet mcp

scan_disk_usage changes nothing; free_disk_space removes only what the scan showed, for the sources you choose, and asks you to confirm (details).

Claude Code plugin

The plugin adds the MCP tools and a skill that tells Claude when to use them, so "my disk is full" or "no space left on device" gets diagnosed and fixed in the conversation, asking before anything is removed:

/plugin install diskdiet --marketplace roystondwork-dev/diskdiet

Usage

diskdiet                                  # scan: what's using space, what can go (changes nothing)
diskdiet clean                            # free what's older than 30 days, after showing the list
diskdiet clean --older-than 7d            # be more aggressive
diskdiet clean --only npm,docker          # just these
diskdiet clean --skip node_modules
diskdiet clean --all --dry-run            # what removing everything would free
diskdiet scan --projects ~/code           # look for node_modules only under ~/code
diskdiet scan --json                      # for scripts
Flag
--older-than 30dWhat counts as old: 12h, 7d, 2w…
--allEverything, whatever its age
--only, --skipnpm, yarn, pnpm, bun, pip, uv, cargo, go, gradle, maven, playwright, cypress, xcode, simulators, cocoapods, swiftpm, android, homebrew, docker, node_modules, target
--projects DIRWhere to look for node_modules (repeatable; default: your home folder)
-n, --dry-runShow what clean would remove, remove nothing
-y, --yesDon't ask (for scripts and CI)
--volumesAlso remove unused Docker volumes
--forceClean even while a package manager is installing
--keep DIRLeave this node_modules or target folder alone (repeatable)
--trashMove node_modules and target folders to the Trash instead of deleting them, so you can put them back (freed when you empty the Trash)
--jsonMachine-readable output

What it cleans, and how

WhereWhat clean removes
npm~/.npm (or npm config get cache)Cached packages and metadata older than the cutoff; old npx installs and logs. Content another, newer entry still uses is kept.
YarnYarn 1 cache, Yarn 2+ global cachePackage folders and zips older than the cutoff
pnpmpnpm store pathPackages no project uses, via pnpm store prune; old metadata
Bun~/.bun/install/cachePackage folders older than the cutoff
pippip cache (PIP_CACHE_DIR)Cached downloads and built wheels older than the cutoff
uvuv cache dirThe whole cache via uv cache clean, only with --all (uv's entries depend on each other)
Cargo~/.cargo (CARGO_HOME)Downloaded .crate files, unpacked sources and git checkouts older than the cutoff
GoGOCACHE, GOMODCACHEBuild cache entries not used for the cutoff (Go records their last use); module versions downloaded before it
Gradle~/.gradle (GRADLE_USER_HOME)Downloaded Gradle distributions and per-version caches and logs older than the cutoff; Gradle manages its shared dependency cache itself
Maven~/.m2/repositoryArtifact versions downloaded before the cutoff
Playwrightms-playwright cacheOlder browser revisions; the newest of each browser always stays
CypressCypress cacheOlder Cypress versions; the newest always stays
Xcode (macOS)~/Library/Developer/XcodeDerivedData and iOS/watchOS/tvOS DeviceSupport older than the cutoff; never Archives
Simulators (macOS)~/Library/Developer/CoreSimulatorSimulators for runtimes no longer installed (xcrun simctl delete unavailable), old simulator caches
CocoaPods, Swift PMtheir download cachesOld pod versions and cached Swift packages; never a project's Pods
Android SDKANDROID_HOMESystem images no emulator uses; older NDK and build-tools versions (the newest stay)
Homebrewbrew --cacheOld downloads; installed software stays
Dockeryour current docker contextUnused images, stopped containers and build cache older than the cutoff; volumes only with --volumes (details)
node_modulesprojects under your home foldernode_modules of projects where nothing has changed for the cutoff
targetRust (Cargo.toml) and Maven (pom.xml) projects under your home folderTheir target build folders, for projects where nothing has changed for the cutoff

Anything removed from a cache is downloaded again the next time a project needs it. A removed node_modules comes back with npm install (or yarn, pnpm i, bun i).

Safety

  • Scan first, always. clean shows exactly what it will remove and asks before removing anything. What it removes is what it showed you.
  • Never outside a cache. Every removal is checked to be inside the cache folder it belongs to; symlinks are never followed.
  • The tool's own command where there is one. pnpm and Docker decide what is unused, so nothing a project or a running container needs goes away.
  • Not under a running install or build. If npm install, pnpm add, yarn, cargo build, go test, a Gradle or Maven build or similar is running, diskdiet skips that cache (--force overrides). A running npm run dev or an idle Gradle daemon doesn't count.
  • Volumes stay unless you add --volumes.

Install

# npm (any OS): run it without installing
npx diskdiet

# PyPI (any OS)
pipx install diskdiet          # or: uv tool install diskdiet

# Go 1.26+
go install github.com/roystondwork-dev/diskdiet/cmd/diskdiet@latest

# Homebrew (macOS, Linux)
brew install roystondwork-dev/tap/diskdiet

# Scoop (Windows)
scoop bucket add roystondwork-dev https://github.com/roystondwork-dev/scoop-bucket
scoop install diskdiet

# winget (Windows)
winget install roystondwork-dev.diskdiet

Archives, .deb, .rpm and .apk packages for amd64 and arm64 are on the releases page. The checksum file is signed with cosign (keyless) and releases include SBOMs and build provenance (how to verify).

Demo mode

DISKDIET_DEMO=1 diskdiet (or the app started with DISKDIET_DEMO=1) shows made-up caches and removes nothing: for trying diskdiet, screenshots and recordings.

Exit codes

CodeMeaning
0Success (including "nothing to free" and answering no)
1Error
2Wrong usage, such as an unknown flag or source
3clean finished, but some items could not be removed

Roadmap

  • v0.2: a desktop app for macOS, Windows and Linux
  • v0.3: a menu bar / tray icon that warns when caches grow, with optional scheduled pruning
  • v0.4: pip, uv, Cargo, Go, Gradle, Maven, Playwright, Cypress, Xcode, target folders
  • v0.5: an MCP server for AI assistants
  • v0.6: a VS Code extension, npm and PyPI packages, the MCP Registry, a Claude Code plugin, winget, demo mode

Ideas and bug reports are welcome in issues.

Contributing

See CONTRIBUTING.md, GOVERNANCE.md and SUPPORT.md. Please follow the Code of Conduct and report vulnerabilities privately as described in SECURITY.md. diskdiet collects no data (privacy).

License

MIT © 2026 Royston D and diskdiet contributors

Frequently asked questions

What is diskdiet MCP Server?

See what developer caches and old node_modules use disk space, and free it safely.

How do I install diskdiet MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. diskdiet MCP Server runs locally from the npm package diskdiet with the command npx -y diskdiet@0.7.1.

Is diskdiet MCP Server free and open source?

Yes. diskdiet MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does diskdiet MCP Server support remote (HTTP) connections?

No remote endpoint is listed for diskdiet MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is diskdiet MCP Server's trust score calculated?

diskdiet MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server