PTS security notes / MCP servers / Desktop Commander MCP

Is Desktop Commander MCP safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It runs shell commands on your computer and reads and writes files, so it carries the permissions of your user account. Its README calls its safeguards (symlink checks, a command blocklist) "not a sandbox". The documented way to isolate it is Docker. Run it in a container or a throwaway account.

What it is

DesktopCommanderMCP by Eduard Ruzga (wonderwhy-er) gives an agent terminal command execution with process control, file read, write and search, and surgical code edits.

Maintainer
Communitywonderwhy-er on GitHub (individual account, community project)
Source
wonderwhy-er/DesktopCommanderMCP10,538 GitHub stars · MIT licence
Transport
stdio, remote device launcher (optional)
Packages
@wonderwhy-er/desktop-commander npm · latest 0.3.5
Latest release
Release Notes - v0.3.5 2026-12-03
Public advisories
2GitHub and OSV, as of December 5, 2026

What it can do

Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.

Anything your user account can do in a terminal, the agent can do. The README says the blocklist is a guardrail against accidents.

ToolWhat it can doNotes
start_processRuns codeStarts a program or shell command.
interact_with_processRuns codeSends input to a running process.
read_process_outputReads
force_terminateRuns code
kill_processRuns code
list_processesReads
read_fileReads, NetworkReads a file or a URL.
write_fileWrites, DeletesWrites or appends a file.
edit_blockWritesReplaces text in a file.
move_fileWrites
create_directoryWrites
start_searchReads
get_configReads
set_config_valueWritesChanges server settings such as blockedCommands and allowedDirectories.
write_pdfWrites

25 tool names registered in src/server.ts. The list here is a subset. A config tool can change the safety settings itself.

Credentials and least privilege

No credential. It acts with your operating system user's permissions.

Public security advisories

Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range. One advisory shows no patched version in the public record as of December 5, 2026. Check the advisory page for status.

AdvisorySeveritySummaryAffectedFixed in
GHSA-5xx3-j724-wmx5 · CVE-2026-10690LowDesktopCommanderMCP is vulnerable to SSRFn/an/a
GHSA-r87g-78mx-3wg4 · CVE-2026-10691LowDesktopCommanderMCP is vulnerable to Uncontrolled Resource Consumptionn/a0.2.39

What stands out

Safe-install checklist

Install command from the project's docs: npx -y @wonderwhy-er/desktop-commander@latest.

  1. Pin the version. Use an exact version, not latest: npx -y @wonderwhy-er/desktop-commander@0.3.5. Prefer the Docker option from the README for isolation.
  2. Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
  3. Run it in the Docker setup from the README, with only the folders you mount.
  4. Do not rely on blockedCommands. Deny start_process and set_config_value unless you need them.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it desktop-commander:
    {
      "permissions": {
        "deny": [
          "mcp__desktop-commander__start_process",
          "mcp__desktop-commander__interact_with_process",
          "mcp__desktop-commander__force_terminate",
          "mcp__desktop-commander__kill_process",
          "mcp__desktop-commander__write_file",
          "mcp__desktop-commander__edit_block",
          "mcp__desktop-commander__move_file",
          "mcp__desktop-commander__create_directory"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas.
  7. Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.

For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?

Quick follow-ups

What can Desktop Commander MCP do on my machine or accounts?

Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data; runs commands, scripts or code; reaches the open web or a third-party service beyond the account you connect it to. Anything your user account can do in a terminal, the agent can do. The README says the blocklist is a guardrail against accidents.

Does Desktop Commander MCP need a token or API key?

No credential. It acts with your operating system user's permissions.

Has Desktop Commander MCP had public security advisories?

Yes. 2 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.

How do I keep Desktop Commander MCP from changing under me?

Pin the version, for example npx -y @wonderwhy-er/desktop-commander@0.3.5. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.

Sources

This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages