Desktop Commander MCP logo

Desktop Commander MCP

by wonderwhy-er

Desktop Commander MCP is a server that allows the Claude desktop app to execute terminal commands, manage processes, and perform filesystem operations with AI assistance. It extends Claude's capabilities to interact with your computer's operating system.

View on GitHub

Last updated: N/A

What is Desktop Commander MCP?

Desktop Commander MCP is a server that integrates with the Claude Desktop app, enabling it to execute terminal commands, manage processes, and perform file system operations. It leverages the Model Context Protocol (MCP) to provide Claude with access to your local computer.

How to use Desktop Commander MCP?

First, install the server using one of the provided methods (npx, bash script, Smithery, manual configuration). Then, interact with Claude using natural language to execute commands, manage files, and perform other tasks. Refer to the 'Usage' section in the README for specific tool commands and examples.

Key features of Desktop Commander MCP

  • Execute terminal commands with output streaming

  • Process management (list and kill processes)

  • Full filesystem operations (read/write files, create/list directories, move files/directories, search files)

  • Code editing capabilities (surgical text replacements, full file rewrites, multiple file support, pattern-based replacements)

  • vscode-ripgrep based recursive code or text search in folders

Use cases of Desktop Commander MCP

  • Exploring and understanding complex codebases

  • Generating diagrams and documentation

  • Automating tasks across your system

  • Working with multiple projects simultaneously

  • Making surgical code changes with precise control

FAQ from Desktop Commander MCP

What is DesktopCommanderMCP?

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. Claude reads files in full rather than chunking them, can work across multiple projects simultaneously, and executes changes in one go rather than requiring constant review.

Do I need to pay for API credits?

No. This tool works with Claude Desktop's standard Pro subscription ($20/month), 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. No manual update process is needed.

What are the most common use cases?

Exploring and understanding complex codebases, Generating diagrams and documentation, Automating tasks across your system, Working with multiple projects simultaneously, Making surgical code changes with precise control