Skip to content
MCP server

Desktop Commander

Local MCP server for terminal commands, file editing and process control in one chat

Runs locallyActively maintained

The repository was last updated 2 days ago and is published under MIT.

Desktop Commander is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
macOS, Windows, Linux
Runs
Locally
What it can do
Read-only
GitHub stars
10.5K
Last commit

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commander

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commander

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.desktop-commander]
command = "npx"
args = ["-y", "@wonderwhy-er/desktop-commander"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": [
        "-y",
        "@wonderwhy-er/desktop-commander"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

    Or run: gemini mcp add -s user desktop-commander npx -- -y @wonderwhy-er/desktop-commander

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

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

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Desktop Commander

Desktop Commander runs on your own machine and lets an assistant execute terminal commands, stream their output and manage long-running processes such as SSH sessions, databases and dev servers. It builds on the MCP Filesystem Server and adds search and replace editing, recursive directory listings and tail-style reading with negative offsets.

Beyond text files it reads and edits Excel, PDF and Word documents, runs Python, Node.js or R in memory for quick CSV and JSON analysis, and keeps a local history of tool calls with size-based rotation. A remote mode lets ChatGPT and Claude on the web reach the same machine, and Claude Desktop gets a file preview with a markdown editor.

The README describes safeguards, symlink traversal prevention and a command blocklist, but says they are not a sandbox. Docker isolation is available for a contained setup. It installs with npx, a macOS script, Smithery or Docker.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, all 1 tool only read data.

From the server's own tool labels and tool names; not verified by us.

get_recent_tool_callsName suggests: reads
Recent tool-call history with bounded output previews.

What it does

Terminal control
Run commands with streaming output, timeouts and background runs.
Interactive processes
Work with SSH, databases and dev servers.
File editing
Surgical replacements, full rewrites and ripgrep search.
Office formats
Read and edit Excel, PDF and DOCX files.
In-memory code
Execute Python, Node.js or R without saving files.
Local audit history
Tool calls recorded on the machine.

Good for

  • Run builds and long commands from chat
  • Edit code across several files
  • Analyse a CSV or Excel file
  • Convert markdown to PDF or Word
  • Drive an SSH session from an assistant

Pricing

Open source

Free to use; sponsorship link in the README

Prices change. Check desktopcommander.app before you buy.

Desktop Commander FAQ

Is Desktop Commander a sandbox?

No. The README says the guardrails are not a sandbox; Docker gives isolation.

How is Desktop Commander installed?

With npx setup, a macOS script, Smithery, manual config or Docker.

Can ChatGPT use Desktop Commander?

Yes, through the Remote MCP option.

Which file types does Desktop Commander handle?

Text, Excel, PDF and DOCX.

Is Desktop Commander free?

Yes. Desktop Commander is open source, so you can use and self-host it for free.

How do I add Desktop Commander to Claude Code?

Run this command in your terminal: claude mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commander

What are the best alternatives to Desktop Commander?

The closest alternatives to Desktop Commander are REA, Codebase Memory, Serena MCP: the IDE for your agent, XERJ and Context7.

Where this comes from

  • Description: written from the project's README and the project's website.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers