WizTree MCP
A read-only MCP server that wraps WizTree's CSV export functionality to provide disk usage analysis tools on Windows.
Locate WizTree (
locate_wiztree): Automatically find the WizTree executable from environment variables, PATH, or common installation directories.Scan a Drive or Folder (
scan_path): Run WizTree to export a CSV snapshot of a drive or folder, with options for admin elevation, file/folder filters, sorting, timeout, and optional treemap PNG generation.List Snapshots (
list_snapshots): View available CSV snapshots in the export directory, ordered newest first.Analyze a CSV Snapshot (
analyze_csv): Summarize an existing WizTree CSV export, including top entries by size.List Top Entries (
top_entries): Retrieve the largest files, folders, or all entries from a snapshot, sortable by size or allocated space.Drill Down into Folders (
drill_down): Inspect the direct children of a specific folder within a snapshot, sorted by size.Search Entries (
search_entries): Find paths matching a substring or glob pattern, with total matched size and count.Find Old Large Files (
old_large_files): Identify large files that have not been modified recently, sorted by size.Summarize by Extension (
extension_summary): Aggregate and rank disk usage broken down by file extension.Compare Snapshots (
compare_csv): Diff two CSV exports to identify the largest growth or shrinkage by path.Get Treemap Image (
get_treemap): Retrieve a previously generated treemap PNG as an inline image.Clean Up Snapshots (
cleanup_snapshots): Delete older CSV and PNG exports, retaining only the most recent ones.
Click on "Install 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., "@WizTree MCPscan drive C and list top 20 files by size"
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.
WizTree MCP
Read-only MCP server that wraps WizTree's CSV export and adds disk-usage analysis tools.
Windows-only in practice, because it depends on WizTree.
Tools
locate_wiztree: Find a WizTree executable fromWIZTREE_PATH,PATH, and common install locations.scan_path: Run WizTree CSV export for a drive or folder. Writes CSV snapshots underexports/. Withtreemap: true, also exports a treemap PNG and returns it inline as an image.list_snapshots: List CSV snapshots in the export directory, newest first.analyze_csv: Summarize an existing WizTree CSV snapshot.top_entries: List the largest files or folders from a CSV snapshot.drill_down: List the direct children of a folder within a snapshot, sorted by size.search_entries: Search a snapshot for paths matching a substring or glob (*and?), with total matched size and count.old_large_files: Find large files not modified for a long time, sorted by size.extension_summary: Aggregate file usage by extension.compare_csv: Compare two CSV snapshots and report growth/shrinkage by path.get_treemap: Return a previously generated treemap PNG as an image.cleanup_snapshots: Delete older CSV/PNG exports from the export directory, keeping the most recent ones.
The server never touches scanned files. It only launches WizTree for export and reads generated CSVs; the one exception is cleanup_snapshots, which deletes only this server's own exports inside the export directory.
List-style tools return compact tab-separated tables instead of JSON to keep token usage low. Parsed snapshots are cached in memory, so repeated queries against the same CSV do not re-parse it.
Related MCP server: Docalyze
Setup
Clone the repo, enter the repo folder, install dependencies, and build the TypeScript output.
git clone https://github.com/onmokoworks/wiztree-mcp.git
cd wiztree-mcp
npm install
npm run buildThis produces dist/index.js, which is the file your MCP client should run.
MCP Config
Replace C:\\path\\to\\wiztree-mcp with the folder where you cloned this repo.
{
"mcpServers": {
"wiztree": {
"command": "node",
"args": ["C:\\path\\to\\wiztree-mcp\\dist\\index.js"],
"env": {
"WIZTREE_PATH": "C:\\Program Files\\WizTree\\WizTree64.exe"
}
}
}
}WIZTREE_PATH is optional if WizTree is installed in a common location or is on PATH.
For Codex, add the same server to C:\\Users\\<you>\\.codex\\config.toml:
[mcp_servers.wiztree]
command = 'node'
args = ['C:\path\to\wiztree-mcp\dist\index.js']
startup_timeout_sec = 120
[mcp_servers.wiztree.env]
WIZTREE_PATH = 'C:\Program Files\WizTree\WizTree64.exe'After changing MCP configuration, restart the MCP client or open a new session so it reloads the server list.
Smoke Test
You can verify that the compiled server starts with:
node .\dist\index.jsThe process waits for MCP JSON-RPC messages over stdio, so it will appear idle. Press Ctrl+C to stop it.
Privacy
WizTree CSV exports contain full local file and folder paths. This server writes exports to exports/ by default, and that directory is intentionally ignored by Git.
Before sharing logs, screenshots, or CSV files, check that they do not expose private project names, user names, or file paths.
Notes
This server does not delete, move, or modify scanned files. Only
cleanup_snapshotsdeletes files, and only inside the export directory.Running WizTree with
admin: truetriggers a Windows UAC elevation dialog; in an unattended environment the scan will hang until the configured timeout.The CSV parser supports both English and Japanese WizTree column headers.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/onmokoworks/wiztree-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server