Description

MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities.

Installation

npx -y desktop-commander-mcp
npm install desktop-commander-mcp
git clone https://github.com/wonderwhy-er/DesktopCommanderMCP

Claude Desktop Configuration

Add this configuration to your Claude Desktop config file to enable this MCP server:

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json

Config file location: %APPDATA%\Claude\claude_desktop_config.json

Config file location: ~/.config/Claude/claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "desktop-commander-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "desktop-commander-mcp"
      ]
    }
  }
}