DesktopCommanderMCP
Verified Safeby wonderwhy-er
Overview
This server empowers AI agents to search, update, manage files, and execute terminal commands on a local or containerized desktop environment. It provides enhanced filesystem operations, process control, and data analysis capabilities with support for various file types like text, Excel, and PDF.
Installation
npx @wonderwhy-er/desktop-commander@latest setupEnvironment Variables
- DC_FLAG_URL
- DEBUG
Security Notes
The server's core functionality involves executing arbitrary shell commands (`start_process`) and Node.js code (`node:local`) on the host system, and performing extensive filesystem operations (`read_file`, `write_file`, etc.). While there are important built-in mitigations like command blocking (`blockedCommands` config) and path validation (`allowedDirectories` config defaulting to user's home directory), the inherent power of the tools means a compromised AI agent could potentially execute malicious commands or access/modify files outside intended scope if `allowedDirectories` is set permissively. The `node:local` tool, in particular, executes user-provided Node.js code via temporary files, which is safer than `eval` but still allows arbitrary code execution. Users are warned when setting `allowedDirectories` to an empty array, which grants full filesystem access. Network requests are used for fetching remote files and telemetry, with error sanitization for privacy.
Similar Servers
tmux-mcp
Enables AI assistants (like Claude Desktop) to interact with, control, and observe tmux terminal sessions by providing tools for session management and command execution.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.
claude-command-runner
Facilitates AI-driven command execution and terminal automation by bridging Claude Desktop with local macOS terminals, primarily Warp, enabling intelligent output capture, command pipelines, real-time streaming, and reusable templates for developers.
claude-code-buddy
An intelligent AI Agent orchestration system for Claude Code, focusing on smart task routing, prompt enhancement, project memory, workflow guidance, and planning, presented via a real-time terminal UI dashboard.