Claude Desktop Commander

v0.2.41Developer Toolsstable

Allows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.

agentaicode-analysiscode-generationgemini-cli-extension
Share:
6,067
Stars
0
Downloads
0
Weekly
0/5

What is Claude Desktop Commander?

Claude Desktop Commander is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to allows claude desktop app to execute terminal commands and edit files on your computer through mcp, with features including command execution, process management, and diff-based file editing.

Allows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Allows Claude desktop app to execute terminal commands and e

Use Cases

Terminal command execution
File editing
Desktop automation
wonderwhy-er

Maintainer

LicenseMIT
Languagetypescript
Versionv0.2.41
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @wonderwhy-er/desktop-commander

Manual Installation

npx -y @wonderwhy-er/desktop-commander

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Claude Desktop Commander

Desktop Commander MCP gives Claude full control of your local machine through the Model Context Protocol — letting it execute terminal commands, manage interactive processes, search and edit files, and even read Excel, PDF, and DOCX documents. It exposes a rich set of tools covering terminal session management, diff-based file editing, fuzzy search, and in-memory code execution (Python, Node.js, R) without leaving traces on disk. Developers and power users install it to turn Claude Desktop or Claude Code into a hands-on coding assistant that can operate their entire filesystem and run long-lived processes.

Prerequisites

  • Node.js 18 or later installed
  • Claude Desktop or Claude Code as your MCP client
  • npx available on your PATH (comes with Node.js)
  • macOS, Windows, or Linux (Docker option available for isolation)
1

Run the automated setup

The recommended installation method runs a setup script that automatically configures your Claude Desktop config file.

npx @wonderwhy-er/desktop-commander@latest setup
2

Alternative: bash installer for macOS

If you prefer a single-line installer, use the provided curl script.

curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install.sh | bash
3

Alternative: Docker for full sandboxing

Run Desktop Commander inside Docker if you want complete isolation from your host system.

bash <(curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install-docker.sh)
4

Manual Claude Desktop configuration

If you prefer to edit the config yourself, add this block to claude_desktop_config.json. On macOS the file is at ~/Library/Application Support/Claude/claude_desktop_config.json.

{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": ["-y", "@wonderwhy-er/desktop-commander@latest"]
    }
  }
}
5

Add via Claude Code CLI

If using Claude Code rather than Claude Desktop, register the server at user scope.

claude mcp add --scope user desktop-commander -- npx -y @wonderwhy-er/desktop-commander@latest
6

Tune configuration via the set_config_value tool

After installation you can configure security and behaviour settings. Key options include blockedCommands, allowedDirectories, defaultShell, fileReadLineLimit, and telemetryEnabled.

# Example: ask Claude to restrict file operations to your project directory
# In Claude: "Set allowedDirectories to ["/Users/you/projects"]" 

Claude Desktop Commander Examples

Client configuration

Minimal claude_desktop_config.json entry to enable Desktop Commander MCP.

{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": ["-y", "@wonderwhy-er/desktop-commander@latest"]
    }
  }
}

Prompts to try

Desktop Commander enables Claude to act as a hands-on terminal and file agent.

- "Search all TypeScript files under src/ for usages of the deprecated API and show me a diff of the changes needed"
- "Start a dev server with npm run dev and watch the output for errors"
- "Read the Excel spreadsheet at ~/data/sales.xlsx and summarise Q4 figures"
- "Create a new React component file at src/components/Button.tsx with proper TypeScript types"

Troubleshooting Claude Desktop Commander

Claude cannot find or execute commands after installation

Restart Claude Desktop after running the setup script so the updated claude_desktop_config.json is reloaded. Verify the config at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) contains the desktop-commander entry.

File edits fail with 'text not found' or fuzzy match errors

Desktop Commander uses exact string matching with fuzzy fallback. Ensure the SEARCH block in your edit_block call contains the exact text from the file (including whitespace). Check ~/.claude-server-commander-logs/fuzzy-search.log for details.

Terminal commands run but allowedDirectories restriction is ignored

The allowedDirectories setting only restricts file operation tools (read_file, write_file, etc.). Terminal commands executed via start_process bypass this restriction by design. Use the blockedCommands config key to prevent specific dangerous shell commands.

Frequently Asked Questions about Claude Desktop Commander

What is Claude Desktop Commander?

Claude Desktop Commander is a Model Context Protocol (MCP) server that allows claude desktop app to execute terminal commands and edit files on your computer through mcp, with features including command execution, process management, and diff-based file editing. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Claude Desktop Commander?

Install via npm with the command: npx -y @wonderwhy-er/desktop-commander. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Claude Desktop Commander?

Claude Desktop Commander works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Claude Desktop Commander free to use?

Yes, Claude Desktop Commander is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "claude-desktop-commander-mcp": { "command": "npx", "args": ["-y", "@wonderwhy-er/desktop-commander"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Claude Desktop Commander?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides