Desktop Commander MCP 0.3.4 official local install leaves allowedDirectories empty, which the code treats as access to the entire filesystem, and the vendor documents the allow-list and command blocklist as advisory guardrails, not a security sandbox.
Published
Desktop Commander is a third-party Model Context Protocol server that lets a connected AI client read and write files, search, edit, and run terminal commands as the same operating-system user that launched the server. It is not the official reference Filesystem MCP server. The public repository is wonderwhy-er/DesktopCommanderMCP. The official site is desktopcommander.app. The npm package is @wonderwhy-er/desktop-commander. Publisher: Eduard Ruzga (wonderwhy-er) and contributors; the FAQ at this pin says it is "not an official Anthropic product." The license is MIT.
This is a static review, re-verified on 1 December 2026, Asia/Hong_Kong. The pin is unchanged: npm latest is still 0.3.4, matching git tag v0.3.4 at commit 9a101b17e44577f0baefa4c7120f087881c5cc56. We cloned that tag, read first-party source and docs, downloaded the official npm tarball, and checked hashes and provenance. We did not run the MCP server, the setup / remove / remote CLIs, npx, postinstall hooks, Docker, or any installer. Do not start this server against your real home directory to "try the default."
The useful fact is already in the official bits, and you can read it without launching anything. Official local install leaves allowedDirectories as an empty array. The code treats that empty list — or a list that includes '/' — as file-tool access to the entire filesystem. The same default turns telemetry on, registers a shell tool, and registers set_config_value, which can change those settings later with no server-side approval step. The vendor's own SECURITY.md calls the allow-list and command blocklist "safety guardrails that reduce accidental or unintended actions, not a security sandbox."
Inspect the official default without starting the server
Work in a scratch directory. These commands only download and read the published 0.3.4 tarball. They do not run npx, setup, or node dist/index.js.
- Download the official package (not a git clone of
main, and not@latestvianpx):
curl -fsSL -o desktop-commander-0.3.4.tgz \
https://registry.npmjs.org/@wonderwhy-er/desktop-commander/-/desktop-commander-0.3.4.tgz
shasum -a 1 desktop-commander-0.3.4.tgz
shasum -a 256 desktop-commander-0.3.4.tgz
mkdir -p dc034 && tar -xzf desktop-commander-0.3.4.tgz -C dc034
On this pin the SHA-1 is d9804c831c553ce72afa92e3d3b7c64592bf12b1 and the SHA-256 is 7e2e219b5f8c595832af6d63fe11e51bccf2623cbad2885c5becd0f000f0010a. Those still matched the npm registry dist.shasum and a hash we computed on a fresh download on 1 December 2026. If yours differ, stop; you do not have the 0.3.4 tarball this review pinned.
- Confirm the compiled default treats an empty allow-list as full access:
grep -n "allowedDirectories.length === 0" dc034/package/dist/tools/filesystem.js
At this pin that line is 266, inside the compiled isPathAllowed function:
if (allowedDirectories.includes('/') || allowedDirectories.length === 0) {
return true;
}
The TypeScript at the tag, src/tools/filesystem.ts line 293, is the same check. Official field copy in src/config-field-definitions.ts is equally direct: "If this list is empty, Desktop Commander can access your entire filesystem." The set_config_value tool description in src/server.ts repeats it: "Setting allowedDirectories to an empty array ([]) allows full access to the entire file system, regardless of the operating system."
- Confirm official first-run config writes that empty list, and that setup does not put a directory allow-list on the MCP command line:
grep -n "allowedDirectories: []" dc034/package/dist/setup-claude-server.js
grep -n "telemetryEnabled: true" dc034/package/dist/setup-claude-server.js
At this pin those are lines 103–104 of the setup script. If the script creates ~/.claude-server-commander/config.json, it writes allowedDirectories: [] and telemetryEnabled: true. The Claude Desktop entry it writes is npx -y plus a package spec (falling back to @wonderwhy-er/desktop-commander@latest). The args are only the package. There is no directory flag. The README's manual Option 4 example is the same shape:
{
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": ["-y", "@wonderwhy-er/desktop-commander@latest"]
}
}
}
Server-side first-run is the same default: getDefaultConfig() in src/config-manager.ts sets allowedDirectories: [] and telemetryEnabled: true. One easy misread: getAllowedDirs() in src/tools/filesystem.ts falls back to os.homedir() and writes that into the config only when allowedDirectories is missing or is not an array. A normal first config does set an array — the empty one — so that home-only fallback does not apply. Empty means full file-tool access, not "home only." If getAllowedDirs() itself throws, it returns [], which isPathAllowed() also treats as allow-all.
- Read the vendor's own boundary table in SECURITY.md at the tag (last updated July 2026). Allowed directories, the command blocklist, and symlink traversal prevention are all marked not a security boundary. The only row marked yes is Docker / VM isolation. The known-limitations section states: "Directory restrictions are guardrails, not sandboxing — terminal commands can reach files outside
allowedDirectories." Official help, fetched again on 1 December 2026 from How do I use Desktop Commander safely and limit its access?, says the same in plainer language: "By default, Desktop Commander can open any file and run any command that your user account can," "Until you set allowed folders, it can work with files anywhere on your computer," and "Allowed folders and blocked commands prevent mistakes. They are not a wall: a command or script can get around them." Help pages are not a git pin; they can change without a package release.
If you already installed Desktop Commander, you can read the live file without starting the server. On macOS and Linux it is ~/.claude-server-commander/config.json; on Windows, %USERPROFILE%\.claude-server-commander\config.json. Print only the policy keys — the file can also hold a clientId, and the adjacent claude_tool_call.log can hold unsanitized tool arguments:
python3 -c '
import json, pathlib
p = pathlib.Path.home() / ".claude-server-commander" / "config.json"
c = json.loads(p.read_text())
for k in ("allowedDirectories", "blockedCommands", "telemetryEnabled", "defaultShell"):
print(k, "=", c.get(k, "<missing>"))
'
An empty allowedDirectories list here is the full-access default, not a safe default-deny. Do not paste the rest of that file, or the log, into a chat.
What the default actually grants
On a default local install, as the signed-in OS user:
- File tools can read and write anywhere that user can, because
allowedDirectoriesis empty. That includes the home directory, SSH keys, browser profiles, cloud-provider credentials, and Desktop Commander's own config and logs. start_processis a shell as that user. The defaultblockedCommandslist ingetDefaultConfig()includes disk and admin tools such asmkfs,dd,sudo,su,shutdown, and Windowsreg/net/sc. It does not includerm. Official help tells operators they can "Add rm and git" if they want those blocked. PrefergetDefaultConfig()and SECURITY.md over FAQ sentences at this pin that still say the system blocks "dangerous commands likerm,sudo,format" or that the project "doesn't have a pre-defined blocklist." The checker also has anunseenverdict — used when a program is chosen only at runtime (eval,Invoke-Expression,$tool) or lives in a script the checker does not open — and in the source we read,unseenis allowed through with a note, not refused. We did not run the checker.set_config_valueis a default tool. It can setallowedDirectories,blockedCommands,telemetryEnabled,defaultShell, and the line-limit fields. There is no confirmation prompt in the server. The README already warns that the client "may sometimes attempt to modify configuration settings (likeallowedDirectories) if it encounters filesystem access restrictions," and tells operators to change configuration in a separate chat.allowedDirectoriesdoes not apply to the terminal. The README states this twice: "TheallowedDirectoriessetting currently only restricts filesystem operations, not terminal commands. Terminal commands can still access files outside allowed directories." A shell that can runcat,python, ornodecan read or rewrite~/.claude-server-commander/config.jsonitself.- Telemetry is on by default. Runtime capture in
src/utils/capture.tsgoes tohttps://telemetry.desktopcommander.app/mp/collectwith fallbackhttps://dc-telemetry-proxy-83847352264.europe-west1.run.app/mp/collect. Runtime capture honorstelemetryEnabledand the environment kill-switchDESKTOP_COMMANDER_DISABLE_TELEMETRY(1/true/yes/on). Thepostinstallscriptdist/track-installation.js, as written, sends apackage_installedevent to those same URLs and does not checktelemetryEnabledor that environment variable. We did not run postinstall, so we did not observe a live request. - Local logs are not telemetry, but they are sensitive.
src/config.tsputsconfig.json,claude_tool_call.log(10 MB rotation, arguments not redacted), and related state under~/.claude-server-commander/. Official help uses that same path. Two first-party docs at this pin are wrong about it:PRIVACY.mdtells users to edit~/.desktop-commander/config.json, and the README Configuration section says the file is "saved toconfig.jsonin the server's working directory." - Remote is a different trust boundary. Do not run
desktop-commander remoteor sign a web client intomcp.desktopcommander.appunless you accept that path. Official help is explicit that Remote tool calls and results pass through Desktop Commander servers, and that "anyone who can use your ChatGPT or Claude account can use your connected computers." This review did not run Remote.
ListToolsRequestSchema in src/server.ts advertises 25 tools. shouldIncludeTool() returns true for all of them except that give_feedback_to_desktop_commander is hidden when the MCP client name is desktop-commander-app. There is no other default tool allow-list in the server. Client-side approval prompts are recommended in official help ("Keep approvals on") but are not implemented or enforced by this server.
This is a much wider default than the official Filesystem MCP server we reviewed separately (npm @modelcontextprotocol/server-filesystem@2.4.1). That reference server is a filesystem-only tool and requires explicit allowed-directory arguments. Desktop Commander adds terminal execution, process control, URL fetching, PDF/Office handling, and config tools, and its official local install examples do not pass a directory allow-list on the command line.
Tighten allowedDirectories before first use
These steps shrink accidental file-tool exposure. They do not turn Desktop Commander into a sandbox, and the vendor says so. Do not start the server against your real home directory with an empty or missing allowedDirectories list in order to "see what happens."
-
Pin the package in the client config, not
@latest. Usenpx -y @wonderwhy-er/desktop-commander@0.3.4, or a local checkout of tagv0.3.4/ commit9a101b17e44577f0baefa4c7120f087881c5cc56. Do not use the Option 2 curl installer, which is pulled fromrefs/heads/mainand then runs@latest setup. If you use Docker, pin an image digest yourself; do not assumemcp/desktop-commander:latestremains 0.3.4. -
Write the policy file first, in the path the server actually reads (
~/.claude-server-commander/config.json, or%USERPROFILE%\.claude-server-commander\config.jsonon Windows). Create the directory if needed. If a file already exists, change only the keys below; do not overwrite a storedclientId. If you are only learning the shape, write the sample in a scratch directory and copy it into place later — still without starting the server until the allow-list is a real project path, not[]and not/.
Replace the project path with a directory you actually intend to share. Keep blockedCommands as the 0.3.4 default unless you have reviewed a change (adding rm is the vendor's own example). Setting telemetryEnabled to false covers runtime capture; also set DESKTOP_COMMANDER_DISABLE_TELEMETRY=1 in the MCP server environment so runtime capture stays off even if the config flag is later flipped. Understand that postinstall tracking, as written, is a separate path and may already have run during an earlier npx.
{
"allowedDirectories": ["/absolute/path/to/one/project"],
"telemetryEnabled": false,
"blockedCommands": [
"mkfs", "format", "mount", "umount", "fdisk", "dd", "parted", "diskpart",
"sudo", "su", "passwd", "adduser", "useradd", "usermod", "groupadd", "chsh", "visudo",
"shutdown", "reboot", "halt", "poweroff", "init",
"iptables", "firewall", "netsh",
"sfc", "bcdedit", "reg", "net", "sc", "runas", "cipher", "takeown"
]
}
-
Treat that list as file-tool policy only. Keep the client's tool-approval prompts enabled, and refuse
set_config_valueunless you asked for the change, in a dedicated settings chat as the README recommends. After any change, re-read the file with the Python snippet above (or, once the server is already running for real work,get_config) and confirmallowedDirectoriesis still the project path, not[]. -
If the agent must not reach the rest of the machine, do not rely on this list or on the blocklist. Run the server in Docker with bind mounts limited to the work tree, or in a VM / separate OS user / separate computer, which is the only row SECURITY.md marks as a security boundary. Official help's "Stronger isolation" section is the same advice.
-
If you do not need Remote, do not enable it. If you do use it, enable MFA on the AI account, revoke unused devices, and read what official help says is logged locally and what briefly transits the vendor.
-
Review the local logs (
claude_tool_call.logandtool-history.jsonl) for secrets that were passed as tool arguments. They are not uploaded as telemetry, but they are on disk and they are readable by the same agent.
Do not assume 0.3.4 closed every Remote authentication issue discussed in the v0.3.3 notes. Do not assume a disabled telemetryEnabled flag stopped install-time tracking. Do not assume an empty or missing allow-list is "safe default deny." Do not assume a client's approval UI is a control this server invented.
Consider this server if you deliberately want a trusted MCP client, running as you, to operate a project machine or a dedicated throwaway account. Do not use the default local install on your daily-driver account if you need a guarantee that the agent cannot leave a project tree, cannot run a shell, cannot change its own allow-list, or cannot reach secrets in your home directory. The official Filesystem MCP server is the narrower tool if you only need confined file access and you are prepared to pass explicit roots and read-only flags; it is a different program, reviewed separately.
What we re-verified
- Git tag v0.3.4 is still a lightweight tag pointing at
9a101b17e44577f0baefa4c7120f087881c5cc56(Release v0.3.4, bodyAutomated release commit with version bump from 0.3.4-alpha.0 to 0.3.4). Commit date: 18 November 2026, 22:31:02 Asia/Hong_Kong (14:31:02 UTC). The GitHub Release of the same name was published 22:33:16 Asia/Hong_Kong (14:33:16 UTC). The tag is not annotated and carries no tag signature. The commit is authored and committed bygithub-actions[bot];git verify-commitstill reported no signature (%G?=N). - npm @wonderwhy-er/desktop-commander@0.3.4 remains the
latestdist-tag on 1 December 2026. Registry publish time is still 18 November 2026, 22:37:10 Asia/Hong_Kong (14:37:10.767 UTC). Fresh tarball hashes still match the original pin: SHA-1d9804c831c553ce72afa92e3d3b7c64592bf12b1, SHA-2567e2e219b5f8c595832af6d63fe11e51bccf2623cbad2885c5becd0f000f0010a, integritysha512-ie3aLGLqOJhMIsBMvWnB9PG88gXzNkcSCaDdnMTqKgNhsGxUFwdCw/A/Ktpguys7RbXjUQ+6O2bdu5dP+/kQbA==. The SHA-512 digest still matches the subject digest in the registry's npm publish and SLSA provenance attestations (89edda2c62ea38984c22c04cbd69c1f4f1bcf205f336471209a0dd9cc4ea2a0361b06c54170742c3f03f2ada60bb2b3b45b5e3510fba3b66ddbb974ffbf9106c). The publisher is a trusted GitHub Actions OIDC identity (GitHub Actions/npm-oidc-no-reply@github.com). Registry metadata includesgitHead9a101b17e44577f0baefa4c7120f087881c5cc56; the tarball's ownpackage.jsonhas nogitHeadfield.package.json,README.md, andLICENSEin the tarball remain byte-identical to the git pin. The tarball still ships compileddist/JavaScript (311 files) and does not include TypeScript sources.dist/version.jsexports0.3.4. We did not rebuilddist/from TypeScript. - The release workflow's npm provenance still names the parent of the version bump,
5b14ca7eddcb6e0fc12943c046354072d8895b3f, as the resolved source commit of.github/workflows/release.ymlonrefs/heads/main, eventworkflow_dispatch, GitHub Actions run44323003942. - HEAD is still newer than this release, and still not the default pin. On 1 December 2026,
origin/mainwas stillc747342f9d1cc42936ae054bd60959352a7f1f57(27 November 2026, 07:29:00 Asia/Hong_Kong, 26 November 2026, 23:29:00 UTC), the same commit noted when this article was first published. npm dist-tagalphais still 0.3.5-alpha.0, published 26 November 2026, 08:14:05 Asia/Hong_Kong, an annotated tag whose peeled commit is898247e736a9045d2a3ec03a65b844a027470752. This review does not treat unreleased HEAD or the alpha tag as the default pin. Users who follow official@latestinstall examples get 0.3.4 today; that can change on the next publish. - The previous stable release, v0.3.3, is still documented by the project as a "Security Fix: Remote MCP Authentication," credited to Blackfish Security. We read that release note. We did not independently reconstruct the vulnerability, and we did not run Remote MCP to test the fix.
- We did not audit npm dependency implementations, download the GitHub Release
.mcpbasset, pullmcp/desktop-commanderimages, or review the hosted services atmcp.desktopcommander.app, the telemetry endpoints, AWS IoT, or Supabase projects.
Limits of this review
This was a static review of wonderwhy-er/DesktopCommanderMCP at 9a101b17e44577f0baefa4c7120f087881c5cc56 (tag v0.3.4) and of the official npm package @wonderwhy-er/desktop-commander@0.3.4, re-verified on 1 December 2026. We read source, docs, official help, registry metadata, and attestations, and we compared the tarball to the commit.
We did not run the server, the bundled CLI, npx, npm install scripts, Docker, or docker compose. We did not rebuild dist/ from TypeScript. We did not connect to Remote MCP, and we used no vendor account or token. We did not runtime-test command-blocklist bypasses, symlink escapes, kill_process, or URL fetching through read_file.
No malware was found in the first-party scope we opened. Official local install leaves allowedDirectories empty, which the code treats as file-tool access to the entire filesystem, enables telemetry by default, and gives the connected agent a shell as the OS user plus a tool to change those same settings. The vendor documents the allow-list and command blocklist as advisory guardrails, not a security sandbox. Desktop Commander is not the official Filesystem MCP server. We did not run the server. This is not a clean bill of health.
More skill reviews
- Claude Security 0.13.1 can run pull request code — pin the GitHub Action the official sample leaves on mainAnthropic’s official Claude Security plugin, pinned here at v0.13.1, can review GitHub pull requests as a GitHub Action. Official docs warn that pull request text can steer the scan and that the scan can run the pull request’s code. The Action’s own limits tell you to pin a full commit SHA because it runs with sudo, but the official sample workflow still floats main, and the docs page still advertises the 0.13.0 merge commit. A green required check is not a hard security gate.
- Jupyter MCP Server 2.2.6 has CVE-2026-137189's Host-header bypass patched, but official uvx and Docker examples still use @latest, the image still binds 0.0.0.0, and execute_code can run kernel code with no server-side confirmationA static review, on 1 December 2026, of datalayer/jupyter-mcp-server at 526e80eda814fd8d98ae45ddbfccc765fa7490c6 (git tag v2.2.6) and PyPI jupyter-mcp-server 2.2.6, which remains the latest release: CVE-2026-137189's Host-header bypass of the earlier localhost management-route check is patched in this pin (the fix shipped in 2.1.3 on 1 September 2026; the CVE record was published 30 November 2026). Official uvx and Docker quick-start examples still use @latest / :latest. The pip CLI now binds Streamable HTTP to 127.0.0.1, but the official Docker image still sets HOST=0.0.0.0. execute_code and execute_cell can run kernel code; we found no server-side confirmation gate. We did not run the server. This is not a clean bill of health.
- Official Grafana MCP Server 2.4.0 leaves --disable-write off, so a GRAFANA_SERVICE_ACCOUNT_TOKEN unlocks write tools such as update_dashboard, create_folder, install_plugin, and grafana_api_request; the official Docker entrypoint binds --transport sse --address 0.0.0.0:8000 with --server-auth-token empty; CVE-2026-15583's token exfil is fixed, but official uvx examples remain unpinned while PyPI still serves 2.2.0Static review of grafana/mcp-grafana v2.4.0 (commit 7f717bceff42080b3eeb026506672e8ba4fbdce7). The default --enabled-tools list includes the api and plugin categories and --disable-write defaults to false, so write tools such as grafana_api_request and install_plugin are registered unless you turn them off. The official Docker image listens on 0.0.0.0:8000 over SSE with no caller token unless you override the entrypoint. CVE-2026-15583's environment-token exfil is not present in this pin; official uvx examples are unpinned, and PyPI's mcp-grafana was still 2.2.0 when we checked.