DesktopCommanderMCP

DesktopCommanderMCP

4.3

Desktop Commander MCP is a tool that allows users to search, update, manage files, and run terminal commands using AI, without incurring API token costs.

Desktop Commander MCP is a powerful tool designed to enhance the capabilities of Claude Desktop by integrating Model Context Protocol (MCP) functionalities. It allows users to execute terminal commands, manage processes, and perform comprehensive file system operations directly from Claude Desktop. Built on top of the MCP Filesystem Server, it extends the functionality to include search and replace file editing capabilities. This tool is particularly useful for developers looking to automate tasks, manage codebases, and execute long-running terminal commands without incurring additional API token costs. With features like session management, server configuration management, and comprehensive audit logging, Desktop Commander MCP provides a robust environment for developers to streamline their workflows. It supports various installation methods, including npx, bash script, and manual configuration, ensuring flexibility across different platforms.

Features

  • Execute terminal commands with output streaming
  • Process management (list and kill processes)
  • Full filesystem operations (read/write files, create/list directories)
  • Code editing capabilities with search/replace blocks
  • Comprehensive audit logging with log rotation

Usage with Different Platforms

npx_installation

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

bash_script_installation

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

smithery_installation

npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude

manual_configuration


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

Frequently Asked Questions

What is Desktop Commander?

It's an MCP tool that enables Claude Desktop to access your file system and terminal, turning Claude into a versatile assistant for coding, automation, codebase exploration, and more.

How is this different from Cursor/Windsurf?

Unlike IDE-focused tools, Claude Desktop Commander provides a solution-centric approach that works with your entire OS, not just within a coding environment.

Do I need to pay for API credits?

No. This tool works with Claude Desktop's standard Pro subscription, not with API calls, so you won't incur additional costs beyond the subscription fee.

Does Desktop Commander automatically update?

Yes, when installed through npx or Smithery, Desktop Commander automatically updates to the latest version when you restart Claude.

What are the most common use cases?

Exploring and understanding complex codebases, generating diagrams and documentation, automating tasks across your system, and making surgical code changes with precise control.