Desktop Commander MCP is a Model Context Protocol (MCP)-based server tool designed specifically for the Claude Desktop application. It empowers Claude with terminal control, file system search, and differential file editing capabilities via the MCP protocol, transforming Claude into a powerful development assistant.
This project extends the functionality of the MCP file system server, enabling developers to directly interact with the local system through Claude, execute commands, manage files, and perform code editing, surpassing the capabilities of traditional AI editors.
npx @wonderwhy-er/desktop-commander@latest setup
curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install.sh | bash
npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
git clone https://github.com/wonderwhy-er/DesktopCommanderMCP.git
cd DesktopCommanderMCP
npm run setup
get_config
: Get the complete server configuration.set_config_value
: Set a specific configuration value.execute_command
: Execute a terminal command.read_output
: Read new output from a running session.force_terminate
: Forcefully terminate a running session.list_sessions
: List all active terminal sessions.list_processes
: List all running processes.kill_process
: Terminate a process by PID.read_file
: Read a local file or URL content.read_multiple_files
: Read multiple files simultaneously.write_file
: Completely replace file content.create_directory
: Create a directory.list_directory
: Get a detailed list of a directory.move_file
: Move or rename files and directories.search_files
: Find files by name.search_code
: Search for text/code patterns in file content.get_file_info
: Get detailed metadata for a file or directory.edit_block
: Apply surgical text replacement.