Claude Desktop Commander MCP
by StrawHatAI
This server allows the Claude desktop app to execute terminal commands and manage processes on your computer through Model Context Protocol (MCP). It extends the MCP Filesystem Server to provide search and replace file editing capabilities.
Last updated: N/A
What is Claude Desktop Commander MCP?
Claude Desktop Commander MCP is a server that enables the Claude desktop application to interact with your computer's terminal and file system. It provides tools for executing commands, managing processes, and editing files using search and replace functionality.
How to use Claude Desktop Commander MCP?
The server can be installed using Smithery, npx, manual configuration, or by cloning the repository locally. Once installed and configured with the Claude desktop app, you can use the provided tool categories (Terminal Tools, Filesystem Tools, Edit Tools) within Claude to interact with your system.
Key features of Claude Desktop Commander MCP
Execute terminal commands with output streaming
Process management (list and kill processes)
Full filesystem operations (read/write, create/list, move, search, metadata)
Surgical text replacements for small code changes
Full file rewrites for major code changes
Session management for long-running commands
Use cases of Claude Desktop Commander MCP
Automating tasks on your computer through Claude
Editing code files directly from Claude
Running long-running processes and monitoring their output
Managing system processes from within Claude
Searching for files on your system using Claude
FAQ from Claude Desktop Commander MCP
How do I install Claude Desktop Commander?
How do I install Claude Desktop Commander?
You can install it via Smithery, npx, manual configuration of claude_desktop_config.json, or by cloning the repository and running the setup script.
How do I execute a terminal command?
How do I execute a terminal command?
Use the execute_command
tool with the desired command and optional timeout.
How do I get the output of a long-running command?
How do I get the output of a long-running command?
Use the read_output
tool with the PID of the command session.
How do I edit a file?
How do I edit a file?
Use the edit_block
tool for small changes or the write_file
tool for full file rewrites. Provide the filepath and the search/replace block.
Where can I find the claude_desktop_config.json file?
Where can I find the claude_desktop_config.json file?
On Mac, it's typically located at ~/Library/Application\ Support/Claude/claude_desktop_config.json