Skip to main content
Glama
harezadmm

WinDirStat MCP Server

by harezadmm
README.md
# WinDirStat MCP Server ๐Ÿงน๐Ÿ“Š

Model Context Protocol (MCP) Server for real-time Windows storage analysis, deep folder scanning, safety tiering, and protected cleanup operations.

## Features & Exposed Tools

1. **`scan_directory`**
   - Deep scans a folder and returns all items with size (MB/GB), file counts, and last write dates.
2. **`get_largest_items`**
   - Ranks the top N largest files and subdirectories for any target path.
3. **`categorize_safety_tiers`**
   - Categorizes files/folders into **Tier 1 (100% Safe Cache/Temp)**, **Tier 2 (Reviewable Downloads/Media)**, and **Tier 3 (Protected Code/Projects)**.
4. **`clean_safe_targets`**
   - Cleans temporary caches and specified paths with built-in protection guards preventing accidental deletion of project repositories.

---

## Configuration / Installation

### 1. Claude Desktop Integration (`claude_desktop_config.json`)

Add the following entry to your `%APPDATA%\Claude\claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "windirstat": {
      "command": "node",
      "args": [
        "C:\\Users\\Hariz\\windirstat-mcp\\index.js"
      ]
    }
  }
}
```

### 2. Antigravity IDE / Cursor / VS Code Integration

Add to your MCP settings configuration:

```json
{
  "mcpServers": {
    "windirstat": {
      "command": "node",
      "args": [
        "C:/Users/Hariz/windirstat-mcp/index.js"
      ]
    }
  }
}
```

TDQS

A3.6/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: scanning, finding large items, categorizing by safety, and cleaning. No overlap or ambiguity.

Naming Consistency5/5

All tools use snake_case with a consistent verb_noun pattern (e.g., scan_directory, categorize_safety_tiers), making predictions easy.

Tool Count5/5

With only 4 tools, the server is well-scoped for disk cleanup. Each tool adds essential functionality without redundancy or bloat.

Completeness4/5

The tools cover a logical workflow from scanning to cleaning. Minor gap: no tool to view or manage individual files beyond the clean operation, but the surface is sufficient for the domain.

Maintenance

ActivitySlowing
ResponsivenessNo issues