Desktop Commander
by wonderwhy-er
Desktop Commander gives AI agents full control over your local machine — terminal commands, file operations, code editing, and process management, all through the Model Context Protocol. Built on top of the official MCP Filesystem Server, it adds surgical text replacement, ripgrep-powered code search, long-running command sessions with output pagination, and interactive process control (SSH, databases, dev servers). It handles Excel, PDF, and DOCX files natively, executes Python/Node.js/R code in memory without saving files, and includes security hardening with symlink traversal prevention and command blocklists. With 5,700+ GitHub stars and auto-updating npm installs, it's one of the most adopted MCP servers in the ecosystem. A companion Desktop Commander App (beta) extends the experience with multi-model support, live file previews, and custom MCP integration.
Installation
Key Features
- ✓Execute terminal commands with output streaming, timeouts, and background execution
- ✓Interactive process control — manage SSH sessions, databases, and dev servers
- ✓Surgical text replacements and pattern-based code editing across multiple files
- ✓ripgrep-powered recursive code and content search
- ✓Full filesystem operations: read, write, move, search files and directories
- ✓Native Excel (.xlsx), PDF, and DOCX file support without external tools
- ✓Execute Python, Node.js, and R code in memory without saving files
- ✓Process output pagination with offset/length controls to prevent context overflow
- ✓Security hardening: symlink traversal prevention, command blocklist, Docker isolation
- ✓Remote AI control via ChatGPT, Claude web, and other services through Remote MCP
Use Cases
- →Run build commands, tests, and linters from AI chat without leaving the conversation
- →Edit code surgically across large codebases using pattern-based text replacement
- →Manage long-running dev servers and monitor their output with pagination
- →Analyze CSV, JSON, and Excel data files directly through AI conversation
- →Automate multi-step development workflows: git operations, deployments, database queries