Skip to main content
Glama
disk-cleanup

disk-cleanup

by tjws

mcp-disk-cleanup

Local disk cleanup scanning MCP Server (stdio transport, zero API keys, zero networking, read-only scanning).

Let MCP-compatible clients such as Qoder / Qodo / Claude / Cursor scan your disk directly, find large files, duplicate files, junk extensions, and files not accessed for a long time, and generate a cleanup list—list only, delete nothing.

Provided tools

Tool

Status

Description

scan_large

✅ Available

Lists files larger than the threshold, sorted by size descending

scan_duplicates

✅ Available

Finds duplicate files by content hash

scan_by_ext

✅ Available

Scans by extension (.tmp/.log/.cache…)

scan_old

✅ Available

Scans files not modified for a long time

summarize

✅ Available

Directory health check: total size / file count / type ratio

Related MCP server: SpaceLens MCP Server

Local integration (development)

Add an entry to the client's mcp.json, pointing to the local venv interpreter:

{
  "mcpServers": {
    "disk-cleanup": {
      "command": "E:/pycharm/mcp-disk-cleanup/.venv/Scripts/python.exe",
      "args": ["E:/pycharm/mcp-disk-cleanup/server.py"]
    }
  }
}

Post-release integration (PyPI / uvx)

{
  "mcpServers": {
    "disk-cleanup": {
      "command": "uvx",
      "args": ["mcp-disk-cleanup"]
    }
  }
}

Local run / debug

.venv/Scripts/python.exe server.py
# 或用官方 Inspector 可视化调试:
npx @modelcontextprotocol/inspector .venv/Scripts/python.exe server.py

Security

  • All tools perform read-only scans; they do not delete, move, or modify any files.

  • Deletion is disabled by default; if cleanup is needed, manually confirm and act based on the scan list.

Available Tools

5 tools
scan_by_extB

按文件后缀扫描(默认扫常见垃圾后缀 .tmp/.log/.cache/.bak/.old)。

Inputs: dirs (required), exts. Returns: result

scan_duplicatesA

按内容 hash 找出重复文件,按重复组返回(含可释放空间估算)。

先按文件大小初筛,仅对"大小相同"的文件做内容 hash,性能更友好。

Inputs: dirs (required), min_size_mb. Returns: result

scan_largeA

列出指定目录下体积大于 min_mb MB 的文件,按大小降序返回前 top_n 个。

Inputs: dir (required), top_n, min_mb. Returns: result

scan_oldB

扫描多久未修改过的文件(默认 90 天)。

Inputs: dirs (required), days. Returns: result

summarizeB

目录体检:总大小、文件数、按类型(后缀)占比 Top10。

Inputs: dir (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a uniquely identifiable scan dimension: large files, duplicates, extension-based, old files, and summary. Even the four scan_* tools are clearly distinct by their filtering criteria, leaving no real ambiguity for an agent.

    Naming Consistency4/5

    The scan_* prefix creates a predictable pattern for the four scanning tools, and the criterion is clear in each name. summarize deviates from the prefix pattern but is still a sensible, readable action name rather than a random inconsistency.

    Tool Count5/5

    Five tools is well-scoped for a disk cleanup helper: the main scan dimensions are covered, and there is no redundant bloat. The set feels complete enough to be useful without overwhelming an agent.

    Completeness2/5

    The server can identify cleanup candidates but offers no cleanup action such as delete or move-to-trash, so an agent cannot complete an actual disk cleanup workflow. This is a significant functional gap given the server name and stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables local AI assistants to inspect Windows disk usage with treemap and folder X-ray views, retrieve cleanup previews, and receive application removal guidance, while exposing only non-destructive commands through MCP.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to scan a developer machine for disk space hogs, audit git worktrees for stale or orphaned ones, re-check individual findings, and run allowlisted cleanup actions as dry runs unless explicitly confirmed. Risky items are reported with warnings and refused by default.
      58 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI clients to inspect local RAM, commit, page file, disk usage, top processes, disk scans, duplicate files, startup apps, recent changes, and reports. It also generates approval-gated plans for cleanup, file moves, and startup disabling without changing the PC.
      MIT