disk-space-monitor
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-space-monitorcheck if my disk is filling up"
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 Space Monitor ā MCP Server
A small Model Context Protocol server that lets an AI assistant inspect disk usage on the machine it is running on. Point Claude Desktop (or any MCP client) at it and you can ask "is my disk filling up?" and get a real answer instead of a guess.
Cross-platform (Windows / macOS / Linux), no configuration files, no network access, no telemetry.
Tools
Tool | Arguments | What it does |
|
| Scans every mounted partition and flags anything above the threshold. |
|
| Detailed report for one path or drive, plus advice. |
|
| One-line health verdict across all partitions. |
Status levels
Level | Trigger | Marker |
OK | below | š¢ |
WARNING | at or above | š |
CRITICAL | at or above 90% | š“ |
SKIPPED | unreadable or timed out | āŖ |
Related MCP server: Hardware Monitor MCP Server
Example output
disk_summary()
š¢ ALL GOOD ā All partitions below 50.0%. System is healthy.check_single_path("C:\\")
š½ DISK USAGE: C:\
Windows 11 ā 2026-08-17 19:08:44 ā Threshold: 50.0%
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Status : š WARNING
Usage : [āāāāāāāāāāāāāāāāāāāāāā] 63.4%
Used : 301.2 GB
Free : 173.8 GB
Total : 475.0 GB
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ļø Above 50.0%. Consider archiving old files or clearing caches.check_disk_space(threshold=70)
š½ DISK SPACE REPORT
Windows 11 ā 2026-08-17 19:08:44 ā Threshold: 70.0%
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š¢ OK C:\ [NTFS]
[āāāāāāāāāāāāāāāāāāāāāā] 63.4%
Used 301.2 GB ā Free 173.8 GB ā Total 475.0 GB
š“ CRITICAL D:\ [NTFS]
[āāāāāāāāāāāāāāāāāāāāāā] 92.7%
Used 927.0 GB ā Free 73.0 GB ā Total 1000.0 GB
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ļø 1 critical, 0 warning:
š“ D:\ (92.7%)Requirements
Installation
git clone https://github.com/<your-username>/disk-space-monitor.git
cd disk-space-monitor
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activate
pip install -r requirements.txtConnecting it to Claude Desktop
Add the server to your Claude Desktop config file:
Windows ā
%APPDATA%\Claude\claude_desktop_config.jsonmacOS ā
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"disk-monitor": {
"command": "/absolute/path/to/disk-space-monitor/.venv/bin/python",
"args": ["/absolute/path/to/disk-space-monitor/main.py"]
}
}
}On Windows the paths look like C:/path/to/disk-space-monitor/.venv/Scripts/python.exe and
C:/path/to/disk-space-monitor/main.py. Both paths must be absolute ā the server is launched
directly, not through a shell.
Restart Claude Desktop afterwards. The three tools appear automatically, and you can ask things like:
Is my disk filling up? Check drive D: and warn me if it's over 80%. Give me a one-line disk health summary.
Running it standalone
python main.pyThe server communicates over stdio using the MCP protocol, so running it directly just blocks waiting for a client ā that is expected, not a hang.
How it works
Partition discovery. psutil.disk_partitions(all=False) lists real mounted partitions, then
pseudo-filesystems that commonly hang or carry no meaningful usage data are skipped:
squashfs, tmpfs, devtmpfs, overlay, autofs, and entries with no filesystem type.
Timeout guard. Each partition is read inside a daemon thread with a 0.5 second deadline. A
disconnected network drive or a sleeping external disk can make shutil.disk_usage() block for a
long time; if the deadline passes the partition is reported as āŖ SKIPPED and the scan moves on.
This keeps a single bad mount from freezing the whole tool call.
Formatting. Sizes render as GB below 1000 GB and TB above it. The usage bar is 22 characters wide and clamped to that range, so malformed percentages cannot produce runaway output.
Project structure
disk-space-monitor/
āāā main.py # the entire server ā helpers + three tools
āāā requirements.txt # mcp, psutil
āāā .gitignore
āāā LICENSE
āāā README.mdPrivacy
The server reads only local disk-usage figures ā total, used, and free bytes per partition, plus the OS name and version for the report header. It makes no network requests, writes no files, reads no file contents, and stores nothing between calls.
License
MIT ā see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Live status and health checks for AI coding providers: Claude, Cursor, Copilot, Codex and more.
Monitors TLS/SSL certificate expiry, DNS resolution, and TCP port status for AI agents.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Live status, API pricing and rate limits for ChatGPT, Claude, Gemini, Cursor and 42+ AI tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceExposes Windows system information and control tools including hardware stats, network details, and process monitoring. It enables AI applications to retrieve real-time data about CPU, memory, drives, and active system processes.12GPL 3.0
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to query real-time system metrics like CPU, RAM, disk, and battery usage, and check performance thresholds.-
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to monitor real-time CPU, RAM, and disk usage on the local machine.-
- AlicenseAqualityAmaintenanceProvides Claude with read-only access to PC diagnostics including hardware specs, live performance metrics, disk usage, network checks, and more, enabling natural language queries about PC health and performance.151MIT