The Claude Desktop Commander MCP Server is a powerful tool that enables the Claude Desktop app to execute terminal commands, manage processes, and perform filesystem operations. Built on the Model Context Protocol (MCP), it extends the capabilities of the MCP Filesystem Server to provide advanced search, replace, and file editing functionalities.
npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
npx @wonderwhy-er/desktop-commander setup
Restart Claude if running.
Add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": ["-y", "@wonderwhy-er/desktop-commander"]
}
}
}
Restart Claude if running.
git clone https://github.com/wonderwhy-er/ClaudeComputerCommander.git
cd ClaudeComputerCommander
npm run setup
Restart Claude if running.
execute_command
: Run commands with configurable timeout.read_output
: Get output from long-running commands.force_terminate
: Stop running command sessions.list_sessions
: View active command sessions.list_processes
: View system processes.kill_process
: Terminate processes by PID.block_command
/unblock_command
: Manage command blacklist.read_file
/write_file
: File operations.create_directory
/list_directory
: Directory management.move_file
: Move/rename files.search_files
: Pattern-based file search.get_file_info
: File metadata.edit_block
: Apply surgical text replacements (best for changes <20% of file size).write_file
: Complete file rewrites (best for large changes >20% or when edit_block
fails).filepath.ext
<<<<<<< SEARCH
existing code to replace
=======
new code to insert
>>>>>>> REPLACE
execute_command
returns after timeout with initial output.read_output
with PID to get new output.force_terminate
to stop if needed.This project extends the MCP Filesystem Server to enable:
- Local server support in Claude Desktop.
- Full system command execution.
- Process management.
- File operations.
- Code editing with search/replace blocks.
We welcome contributions! Here’s how you can help:
- Report Bugs: Open an issue at ClaudeComputerCommander Issues.
- Request Features: Submit a feature request in the issues section.
- Contribute Code: Fork the repository, create a branch, and submit a pull request.
- Discuss: Start a discussion in the GitHub Discussions tab.
This project is licensed under the MIT License. See the LICENSE file for details.