AUTOMATIONSWITCH
CommunityFilesystem

Desktop Commander MCP

by wonderwhy-er (community)

MCP server giving Claude terminal control, filesystem search, and code editing on the local machine. 6,007 GitHub stars and 14 commits on main in the last 30 days.

6,007·7 tools·Released APR 2025·MIT
npx -y @wonderwhy-er/desktop-commander
Share:

MCP server giving Claude terminal control, filesystem search, and code editing on the local machine. 6,007 stars and 14 commits on main in the last 30 days.

Reviewed by M. Nouriel · MAY 2026

INSTALL THIS SERVER

{ "mcpServers": { "desktop-commander": { "command": "npx", "args": [ "-y", "@wonderwhy-er/desktop-commander" ], "env": { "DESKTOP_COMMANDER_ALLOWED_PATHS": "/Users/me/projects" } } } }
PrereqNPM: `@wonderwhy-er/desktop-commander`. Set DESKTOP_COMMANDER_ALLOWED_PATHS to bound filesystem access. Path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS).
{ "mcpServers": { "desktop-commander": { "command": "npx", "args": [ "-y", "@wonderwhy-er/desktop-commander" ], "env": { "DESKTOP_COMMANDER_ALLOWED_PATHS": "/Users/me/projects" } } } }
{ "mcpServers": { "desktop-commander": { "command": "npx", "args": [ "-y", "@wonderwhy-er/desktop-commander" ], "env": { "DESKTOP_COMMANDER_ALLOWED_PATHS": "/Users/me/projects" } } } }
{ "mcpServers": { "desktop-commander": { "command": "npx", "args": [ "-y", "@wonderwhy-er/desktop-commander" ], "env": { "DESKTOP_COMMANDER_ALLOWED_PATHS": "/Users/me/projects" } } } }
{ "mcpServers": { "desktop-commander": { "command": "npx", "args": [ "-y", "@wonderwhy-er/desktop-commander" ], "env": { "DESKTOP_COMMANDER_ALLOWED_PATHS": "/Users/me/projects" } } } }

7 TOOLS AVAILABLE

execute_command
Execute a shell command on the host machine
Admin
read_file
Read a file from the local filesystem
Read
write_file
Write content to a file on the local filesystem
Admin
edit_file
Apply structured edits to a file (search/replace, regex)
Admin
search_code
Search across files for a pattern (ripgrep-style)
Read
list_directory
List a directory tree
Read

OUR ASSESSMENT

Strengths
  • 6,007 GitHub stars.
  • 14 commits on main in the last 30 days.
  • MIT license.
  • Combined terminal + filesystem + code-edit surface in one MCP.
  • execute_command supports any shell on the host.
Weaknesses
  • execute_command is full shell access; review the agent prompt path before mounting in production.
  • Without DESKTOP_COMMANDER_ALLOWED_PATHS, the server can read or write any path the host process can access.
  • Community-maintained.
Security Notes

execute_command is unrestricted shell access. Treat the agent flow as having full local-user privileges. Set DESKTOP_COMMANDER_ALLOWED_PATHS to bound filesystem access. For production agent flows, run inside a sandbox or container with minimum privileges.

Best For

Local agent development where the agent needs terminal access; refactoring flows that benefit from grep + edit + run; on-machine debugging where the agent inspects running processes.

TECHNICAL DETAILS

Language
typescript
Transport
stdio
Clients
Claude DesktopClaude CodeCursorVS CodeWindsurf
License
MIT
npm
@wonderwhy-er/desktop-commander
Last Release
@wonderwhy-er/desktop-commander (npm latest)MAY 7, 2026
First Released
APR 1, 2025

ADOPTION METRICS

// GitHub Stars
6,007

// Reading this6,007 stars on wonderwhy-er/DesktopCommanderMCP. 14 commits on main in the last 30 days.

// Popularity Rank
#2
Globally · #2 in Filesystem

// Reading thisPairs with filesystem (Anthropic reference), conduit-mcp, fast-filesystem-mcp, kreuzberg-mcp, google-drive-mcp. Desktop Commander adds shell+grep surface.

SOURCES & VERIFICATION

We don't take any single directory's word for it. Before scoring, we cross-reference 4 public MCP sources, install the server ourselves against the clients we cover, and record when we last re-verified.

01
Discovered
Manual submission
First indexed MAY 7, 2026
02
Cross-referenced
4 directories
PulseMCP, MCP.so, Glama, Smithery
03
Verified against
Claude Desktop, Cursor, Claude Code
Installed and tested across clients
04
Last re-checked
MAY 7, 2026
Weekly re-verification
// How other directories see it

The same server, 4 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.

SourceTheir ratingTheir star countTheir downloadsLast synced
AutomationSwitch This page4.5editorial6,007MAY 7, 2026
PulseMCP— unratedunavailableunavailableMAY 7, 2026
MCP.so— unratedunavailableunavailableMAY 7, 2026
Glama— unratedunavailableunavailableMAY 7, 2026
Smithery— unratedunavailableunavailableMAY 7, 2026

// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.

// Get in touch

DISCUSS YOUR
MCP REQUIREMENTS.

Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.

Discuss Your MCP Requirements →