Skip to content

Claude Desktop Setup

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json

{
"mcpServers": {
"filesystem-ultra": {
"command": "C:\\path\\to\\filesystem-ultra-v4.exe",
"args": [
"--compact-mode",
"--max-response-size", "5MB",
"--max-search-results", "50",
"--max-list-items", "100",
"--log-level", "error",
"--cache-size", "200MB",
"--parallel-ops", "8",
"C:\\your\\project\\path\\"
]
}
}
}

ParameterValueDescriptionToken Savings
--compact-mode-Enables minimal responsesshorter responses
--max-response-size5MBLimits response sizePrevents massive responses
--max-search-results50Limits search resultssmaller search output
--max-list-items100Limits directory listingssmaller listing output
ParameterValueDescription
--cache-size200MBMemory cache size (larger = better performance)
--parallel-ops8Concurrent operations (balance for most systems)
--log-levelerrorOnly log errors (reduces overhead)

The final positional arguments are allowed paths:

  • C:\\your\\project\\path\\ - Your project directory
  • Add multiple paths as needed

Section titled “Profile A: Minimal Token Usage (Recommended)”
{
"args": [
"--compact-mode",
"--max-response-size", "5MB",
"--max-search-results", "50",
"--max-list-items", "100",
"--log-level", "error",
"--cache-size", "200MB",
"--parallel-ops", "8"
]
}

Result:

  • Minimal token usage
  • Faster responses (less serialization overhead)
  • Compact responses
  • Less visual detail

{
"args": [
"--compact-mode",
"--max-response-size", "10MB",
"--max-search-results", "200",
"--max-list-items", "300",
"--log-level", "info",
"--cache-size", "200MB",
"--parallel-ops", "8"
]
}

Result:

  • Good token savings
  • More search results
  • Balance between detail and efficiency

{
"args": [
"--max-response-size", "20MB",
"--max-search-results", "1000",
"--max-list-items", "500",
"--log-level", "info",
"--cache-size", "200MB",
"--parallel-ops", "8"
]
}

Result:

  • Maximum visual detail
  • Complete responses
  • Higher token usage

Use: Profile A (Minimal Token Usage)

When performing many file operations, edits, and searches:

  • 100+ operations per session
  • Frequent searches
  • Large directory listings
  • Priority: Minimize tokens

Use: Profile C (Verbose)

When you need all details:

  • Debugging issues
  • Detailed file analysis
  • Full statistics
  • Priority: Maximum information

Use: Profile B (Balanced)

For typical daily work:

  • Mixed operations
  • Balance between tokens and detail
  • Priority: Balance

--compact-mode returns one-line summaries for directory listings, status checks, and search results. It is especially effective for large directories and broad searches, because it avoids rendering file URLs, full context blocks, and verbose headers. The exact savings depend on your project structure and query patterns, so measure with your own workload rather than assuming a fixed percentage.


After configuring, test these commands in Claude:

Show server_info with action stats

Expected (compact-mode):

ops/s:2016.0 hit:98.9% mem:40.3MB ops:2547

List the contents of [your folder]

Expected (compact-mode):

[path]: file1.txt, file2(5KB), folder/, ...

Write 'test' to C:\temp\test.txt

Expected (compact-mode):

OK: 4B written

Problem: Claude still shows long responses

Section titled “Problem: Claude still shows long responses”

Solution: Verify --compact-mode is in the args without JSON syntax errors.

Solution: Verify the full path in command. Use double backslashes \\ on Windows.

Solution: Add the necessary paths as individual arguments at the end of args.

Problem: Responses too short, missing information

Section titled “Problem: Responses too short, missing information”

Solution: Remove --compact-mode to return to verbose mode with full details.


To enable automatic backups, add the backup directory to allowed paths:

{
"mcpServers": {
"filesystem-ultra": {
"command": "C:\\path\\to\\filesystem-ultra-v4.exe",
"args": [
"--compact-mode",
"--max-response-size", "5MB",
"--backup-dir", "C:\\Backups\\MCP",
"C:\\your\\project\\",
"C:\\Backups\\MCP"
]
}
}
}

Important: The backup directory MUST be in allowed paths.

ParameterDefaultDescription
--backup-dir%TEMP%\mcp-batch-backupsDirectory for backups
--backup-max-age7Days to retain backups
--backup-max-count100Maximum backups to keep
--risk-threshold-medium20.0% change for MEDIUM risk
--risk-threshold-high75.0% change for HIGH risk
--risk-occurrences-medium50Occurrences for MEDIUM risk
--risk-occurrences-high100Occurrences for HIGH risk
{
"args": [
"--compact-mode",
"--backup-dir", "C:\\Backups\\MCP",
"--backup-max-age", "14",
"--backup-max-count", "200",
"--risk-threshold-medium", "40.0",
"--risk-threshold-high", "60.0",
"C:\\your\\project\\",
"C:\\Backups\\MCP"
]
}

Benefits:

  • Automatic protection against code loss
  • Risk validation before massive changes
  • Quick recovery with backup (action: “restore”)
  • Complete audit trail of changes

See Backups and Recovery Guide for more information.

When --backup-dir is configured, soft-deleted files (the default behaviour of delete_file without permanent:true) are stored under <backup-dir>/filesdelete/<sd-id>/<basename> with a metadata.json sidecar. You can recover them through the backup tool:

backup({action: "list_trash"})
backup({action: "restore_trash", sd_id: "sd-..."})
backup({action: "purge_trash", older_than_days: 30})

The Trash tab of the dashboard (v4.5.12+) shows the same entries through a web UI.


For Claude Desktop with high operation volume:

--compact-mode
--max-search-results 50
--max-list-items 100
--log-level error

This reduces token usage without losing essential functionality.


Last updated: 2026-07-11 Version: 4.5.29