Directory / MCP server
DesktopCommanderMCP
MCP server for terminal operations and file editing
Review before installing. The result comes from: tells the AI to hide things from you, downloads and runs a script from the internet, package version not pinned, changes permissions or installs persistence and more.
Safety checklist
- Hidden instructionsPrompt injection, invisible text, fake system tags, planted memories. 11 checks.Review (3)
- Data theftSending your data out, reading keys and private files. 7 checks.Passed
- Exposed secretsAPI keys and tokens written into files. 2 checks.Passed
- Code executionShell commands, remote shells, destructive deletes, startup changes. 7 checks.Review (66)
- Supply chainUnpinned packages, remote servers, encoded blobs, plain http. 7 checks.Review (4)
- PermissionsAuto-approved tools, whole-disk access, privileged containers. 6 checks.Passed
Findings
Instructions to keep the user in the dark are a strong sign that the add-on wants the AI to do something you would not approve.
What to do: Treat as malicious unless you can see a clear, harmless reason.
- src/tools/prompts.ts, line 300
do not show to user
Piping a downloaded script straight into a shell runs whatever the server sends - today or after it changes.
What to do: Download, read and pin the script instead of piping it into a shell.
- README.md, line 122
curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install.sh | bash - README.md, line 208
iex ( - plugins/claude/skills/ai-tools-setup/references/hermes.md, line 26
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash - plugins/claude/skills/ai-tools-setup/references/hermes.md, line 31
iex ( Show 8 more
- plugins/claude/skills/terminal/SKILL.md, line 112
curl ... | sh - plugins/claude/skills/terminal/SKILL.md, line 166
curl ... | sh - plugins/cursor/skills/ai-tools-setup/references/hermes.md, line 26
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash - plugins/cursor/skills/ai-tools-setup/references/hermes.md, line 31
iex ( - plugins/cursor/skills/terminal/SKILL.md, line 112
curl ... | sh - plugins/cursor/skills/terminal/SKILL.md, line 166
curl ... | sh - scripts/remote/README.md, line 16
curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/scripts/remote/remote-macos.sh | sh - scripts/remote/README.md, line 22
curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/scripts/remote/remote-linux.sh | sh
- plugins/claude/skills/terminal/SKILL.md, line 112
- And 7 more places. Run the CLI on the repository to see them all.
This server is downloaded fresh each time without a fixed version. If the package is later hijacked or changes behaviour, you get the new version automatically - a 'rug pull'.
What to do: Pin an exact version, e.g. package@1.2.3.
- .mcp.json, line 3
npx @wonderwhy-er/desktop-commander@latestServer 'desktop-commander' runs '@wonderwhy-er/desktop-commander@latest' without a fixed version. - gemini-extension.json, line 2
npx @wonderwhy-er/desktop-commanderServer 'desktop-commander' runs '@wonderwhy-er/desktop-commander' without a fixed version. - plugins/claude/.claude-plugin/plugin.json, line 2
npx @wonderwhy-er/desktop-commander@latestServer 'desktop-commander' runs '@wonderwhy-er/desktop-commander@latest' without a fixed version. - plugins/cursor/.cursor-plugin/plugin.json, line 2
npx @wonderwhy-er/desktop-commander@latestServer 'desktop-commander' runs '@wonderwhy-er/desktop-commander@latest' without a fixed version.
Editing startup files, scheduled tasks or SSH authorized keys lets something keep running or keep access after you stop using it.
What to do: An add-on should not modify system startup or access settings.
Tags like <IMPORTANT> or <SYSTEM> inside a tool description are a known trick to make injected text look authoritative to the AI.
What to do: Read the text inside the tag. If it gives the AI orders unrelated to the tool's job, do not install.
- src/tools/prompts.ts, line 297
<INSTRUCTION> - src/tools/prompts.ts, line 298
</INSTRUCTION>
Running shell commands or dynamically built code means the add-on can do anything your user account can do.
What to do: Confirm the commands are fixed and safe, not built from untrusted input.
- scripts/build-mcpb.cjs, line 16
require('child_process') - scripts/count-tokens.js, line 13
from 'child_process' - scripts/download-all-ripgrep.cjs, line 124
require('child_process') - scripts/publish-release.cjs, line 23
require('child_process') Show 8 more
- scripts/publish-release.cjs, line 61
exec( - scripts/publish-release.cjs, line 71
exec( - scripts/publish-release.cjs, line 298
exec( - scripts/publish-release.cjs, line 336
exec( - scripts/publish-release.cjs, line 337
exec( - scripts/publish-release.cjs, line 421
exec( - scripts/publish-release.cjs, line 424
exec( - scripts/publish-release.cjs, line 470
exec(
- scripts/publish-release.cjs, line 61
- And 32 more places. Run the CLI on the repository to see them all.
About this result. Shield read 246 text files at commit 9a101b1 and skipped tests, examples, demos and docs. It never ran any code. A finding is a pattern worth looking at, not proof of bad intent. The code may have changed since then.
Maintainer? Request a re-check or tell us about a wrong finding.