Disk Usage MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Disk Usage MCP show the 20 largest files under /var/log"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Disk Usage MCP
Find what is using disk space and how healthy the filesystems are.
Tools
Tool | Description |
| Mounted partitions with capacity, usage, and free space |
| Usage for a specific path |
| Disk read/write counters, optionally per disk |
| Largest files under a path, with a minimum-size filter |
| Largest immediate subdirectories under a path |
Related MCP server: disk-clean-mcp
Requirements
Python 3.10+
pip install -e .
Install
git clone https://github.com/Ahmad-1276/disk-usage-mcp.git
cd disk-usage-mcp
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .Run
disk-usage-mcp
# or
python -m disk_usage_mcp.serverThe server speaks the MCP stdio protocol and waits for a client.
Connect an MCP client
Add this to your client's MCP config (Claude Desktop, Cursor, VS Code, etc.):
{
"mcpServers": {
"disk-usage": {
"command": "/absolute/path/to/.venv/bin/disk-usage-mcp",
"args": []
}
}
}Use the absolute path to the executable inside your virtual environment. On Windows the path is .venv\Scripts\disk-usage-mcp.exe.
Example prompts
Which partitions are nearly full?
What are the 20 largest files under /var/log?
How much space is /home using?
Show disk I/O totals.
Notes
Read-only. Scans skip permission errors, do not follow symlinks, and cap the number of files inspected so a huge tree cannot run forever.
Development
pip install -e ".[dev]"
pytest -qLicense
MIT — see LICENSE.
Available Tools
5 toolsfind_largest_directoriesC
Return the largest immediate subdirectories under a path.
Inputs: path, limit. Returns: object
find_largest_filesB
Return the largest files under a path.
Args: path: Directory to scan. limit: Number of results to return (1-100). min_size_mb: Ignore files smaller than this size in MB.
Inputs: path, limit, min_size_mb. Returns: object
get_disk_ioB
Return disk read/write counters, optionally for each disk.
Inputs: per_disk. Returns: object
get_disk_usageC
Return disk usage for a specific path.
Inputs: path. Returns: object
list_partitionsA
Return mounted partitions with capacity, usage, and free space.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct focus: partition inventory, path-level usage, I/O counters, largest files, and largest directories. The only mild overlap is between list_partitions (which already reports usage/capacity per mount) and get_disk_usage (scoped to a specific path), but the path argument and descriptions make the boundary clear enough.
All five tools follow a consistent snake_case verb_noun pattern (list_partitions, get_disk_usage, get_disk_io, find_largest_files, find_largest_directories). Verbs are used predictably: list/get for retrieval of known resources, find for searches.
Five tools is a well-scoped surface for a read-only disk diagnostics server. Each tool covers a distinct inspection angle (partitions, path usage, I/O, files, directories) with no filler.
The core disk-inspection workflows (capacity, usage by path, I/O, space hogs) are all covered. Minor gaps exist for edge diagnostics such as inode usage or filesystem type/health, but agents can generally work around these.
Maintenance
Related MCP Connectors
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Read-only local AI advice, shared reports and website audits. No PC scan or local actions.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables read-only Linux system diagnostics and troubleshooting on local and remote RHEL-based systems via SSH, including services, processes, logs, network, and storage analysis.20MIT
- AlicenseBqualityDmaintenanceEnables read-only analysis of local disk usage to identify cleanup targets by size, type, recency, and duplicates.613 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseBqualityBmaintenanceEnables AI assistants to scan and analyze disk usage through tools for top entries, folder drill-down, searches, old large files, extension summaries, comparisons, and treemaps, with Windows CSV export support and macOS native metadata scanning, including corrected Simplified Chinese exports.12MIT