Giving Claude a shell, a scalpel, and your Excel files
It turns Claude Desktop into a local agent with terminal access, file search, and surgical editing—no separate API tokens required.

What it does
DesktopCommanderMCP is a Model Context Protocol server that plugs into Claude Desktop and other MCP clients to expose your local machine. It runs shell commands with streaming output, manages long-lived processes, searches code via vscode-ripgrep, and edits files either by surgical text replacement or full rewrite. It also reads and writes Excel, PDF, and Word documents natively, and can execute Python, Node.js, or R code in memory without leaving temp files on disk.
The interesting bit
The project is essentially a hardened expansion pack built atop the standard MCP Filesystem Server. It adds guardrails like symlink traversal prevention, a command blocklist, and optional Docker sandboxing—acknowledging that letting an LLM run arbitrary shell commands is not a casual decision. Features like negative-offset file reading and paginated process output are thoughtful touches to keep context windows from choking on large logs or directories.
Key highlights
- Surgical file edits via pattern-based search-and-replace, plus full rewrites for larger changes
- Native office-document support: Excel, PDF, and DOCX manipulation without external tool dependencies
- Interactive process control: run commands, stream output, background tasks, and kill processes
- Security hardening: command blocklists, symlink blocking, and a Docker isolation path
- Runs locally against your existing Claude Desktop subscription—no separate API token costs
Verdict
Developers who want Claude to actually execute and iterate on code inside their local environment—rather than just suggest snippets—should look here. If you prefer your AI interactions strictly read-only and sandboxed in a browser, this will feel excessive.
Frequently asked
- What is wonderwhy-er/DesktopCommanderMCP?
- It turns Claude Desktop into a local agent with terminal access, file search, and surgical editing—no separate API tokens required.
- Is DesktopCommanderMCP open source?
- Yes — wonderwhy-er/DesktopCommanderMCP is open source, released under the MIT license.
- What language is DesktopCommanderMCP written in?
- wonderwhy-er/DesktopCommanderMCP is primarily written in TypeScript.
- How popular is DesktopCommanderMCP?
- wonderwhy-er/DesktopCommanderMCP has 8.7k stars on GitHub and is currently cooling off.
- Where can I find DesktopCommanderMCP?
- wonderwhy-er/DesktopCommanderMCP is on GitHub at https://github.com/wonderwhy-er/DesktopCommanderMCP.