Back to Home
wonderwhy-er icon

DesktopCommanderMCP

Verified Safe

by 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

Run Command
npx @wonderwhy-er/desktop-commander@latest setup

Environment 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

Stats

Interest Score100
Security Score6
Cost ClassMedium
Avg Tokens750
Stars5278
Forks582
Last Update2026-01-19

Tags

file managementterminal controlcode executiondata analysispdf processing