wonderwhy-er/DesktopCommanderMCP

This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities

What it solves

Desktop Commander MCP allows AI assistants (like Claude Desktop, Cursor, or ChatGPT) to interact directly with your local computer. It solves the problem of manually copying and pasting code or logs between an AI chat and your terminal or file system, enabling the AI to search, edit files, and execute terminal commands autonomously.

How it works

It is built as a Model Context Protocol (MCP) server. It extends the basic filesystem server to provide advanced file manipulation and process control. It can be run locally via Node.js or in a sandboxed Docker container. For web-based AI services, it provides a "Remote MCP" bridge that allows remote AI models to execute commands on your local machine via a secure encrypted channel.

Who it’s for

Developers and power users who want to automate their local development workflow, perform complex data analysis on local files (Excel, PDF, DOCX), and manage system processes directly through a chat interface.

Highlights

  • Advanced File Support: Native reading and writing for Excel (.xlsx), PDF, and Word (.docx) files.
  • Process Management: Execute long-running terminal commands with output streaming, pagination to prevent context overflow, and the ability to kill or list processes.
  • Surgical Editing: Supports pattern-based text replacements and full file rewrites for precise code changes.
  • In-Memory Execution: Run Python, Node.js, and R code in memory without needing to save files to disk.
  • Remote Access: Integration with ChatGPT and Claude web via a remote device bridge.
  • Safety Features: Includes symlink traversal prevention, command blocklists, and optional Docker isolation.

Related

  • Project
  • Project
  • Project
  • Project
  • Project