disk-space-monitor
Enables AI assistants to check disk usage on the host machine, providing real-time reports on partition health, warnings, and critical alerts across Windows, macOS, and Linux.
README
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 |
|---|---|---|
check_disk_space |
threshold: float = 50.0 |
Scans every mounted partition and flags anything above the threshold. |
check_single_path |
path: str, threshold: float = 50.0 |
Detailed report for one path or drive, plus advice. |
disk_summary |
threshold: float = 50.0 |
One-line health verdict across all partitions. |
Status levels
| Level | Trigger | Marker |
|---|---|---|
| OK | below threshold |
🟢 |
| WARNING | at or above threshold (default 50%) |
🟠 |
| CRITICAL | at or above 90% | 🔴 |
| SKIPPED | unreadable or timed out | ⚪ |
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.txt
Connecting it to Claude Desktop
Add the server to your Claude Desktop config file:
- Windows —
%APPDATA%\Claude\claude_desktop_config.json - macOS —
~/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.py
The 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.md
Privacy
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。