selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

DesktopCommanderMCP logo

Self-host DesktopCommanderMCP

v0.3.3

MCP server for AI file, terminal and process control

BetaOpen SourceMIT
Updatedyesterday
LanguageJavaScript
Setup difficultyEasy
Stars
10 299
Docker
mcp/desktop-commander
Install with Docker

What is DesktopCommanderMCP?

Desktop Commander is an open-source MCP server that plugs into AI chat clients so they can act on your real machine: running terminal commands, keeping long-running processes and REPL sessions interactive, reading and writing files, and editing code through search/replace blocks. It handles PDF, Word and Excel documents, can execute Python, Node.js and R code in memory for quick CSV/JSON analysis, and renders a visual file-preview panel with a built-in markdown editor inside Claude Desktop. On your own hardware it installs with a single npx command, a macOS/Linux bash script, a local git checkout, or the mcp/desktop-commander container image when you want the tool quarantined from the host; it needs Node.js 18 or newer plus an MCP client such as Claude Desktop, Cursor, Windsurf, VS Code, Codex or Gemini CLI, and the local server itself is free with no account or usage cap. An optional hosted relay lets web and mobile ChatGPT or Claude reach machines you connect, billed as a free 10,000-call monthly quota or an unlimited Pro plan at $20 per month. Directory allow-lists and the command blocklist only guard against mistakes rather than acting as a security sandbox, tool-call history is written to local log files, and anonymous telemetry is enabled by default but can be switched off.

DesktopCommanderMCP alternatives

All self-hosted alternatives to Cursor → All self-hosted alternatives to Windsurf →

Should you self-host DesktopCommanderMCP?

DesktopCommanderMCP scores 74/100 on selfhost.directory (how scoring works) and ranks #2 of 7 in LLM Integration. It has 10 299 GitHub stars, +313 in the last 30 days.

It shipped 18 stable releases in the past year. The latest, v0.3.3, came out on 12 November 2026. New versions land roughly every 2 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is Theia IDE (60/100, 617 stars). DesktopCommanderMCP scores higher overall. See DesktopCommanderMCP vs Theia IDE side by side.

Features

  • Data analysis of CSV/JSON/Excel
  • Diff-based surgical editing
  • DOCX support
  • File preview UI with markdown editorClaude Desktop only
  • Filesystem operations
  • In-memory code execution
  • Interactive process control
  • Local tool-call history and audit logs
  • Native Excel file support
  • PDF reading and creation
  • Recursive code and content search
  • Remote AI control of your machineRelay is a hosted service: free tier 10,000 tool calls per month, Pro $20/month for unlimited calls. The local MCP server is free with no limit.
  • Runtime configuration management
  • Terminal command execution with output streaming
  • Works with any MCP client

DesktopCommanderMCP README

Desktop Commander MCP

Search, update, manage files and run terminal commands with AI

npm downloads AgentAudit Verified Trust Score smithery badge Buy Me A Coffee

Discord

Work with code and text, run processes, and automate tasks, going far beyond other AI editors - while using host client subscriptions instead of API token costs.

How to install DesktopCommanderMCP

Install DesktopCommanderMCP with Docker

Docker Desktop installed and running, Claude Desktop app installed

macOS/Linux:

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

Windows PowerShell:

iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install-docker.ps1'))

Manual config:

{
  "mcpServers": {
    "desktop-commander-in-docker": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/desktop-commander:latest"]
    }
  }
}

Runs in a sandboxed container with persistent volumes; folders can be mounted at /mnt paths.

How to configure DesktopCommanderMCP

  • blockedCommandsArray of shell commands that cannot be executed (accident guardrail, not a sandbox).

    values: array of command names

  • defaultShellShell used for terminal commands.

    values: e.g. bash, zsh, powershell

  • allowedDirectoriesFilesystem paths the server may use for file operations; an empty array grants access to the whole filesystem, and terminal commands are not restricted by it.

    values: array of directory paths

  • fileReadLineLimit1000Maximum lines read at once by file reading tools.

    values: integer

  • fileWriteLineLimit50Maximum lines written in a single write_file operation (default 50; no technical maximum).

    values: integer

DesktopCommanderMCP releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

How do I report security vulnerabilities?

Open a GitHub issue with the details; the project's security policy document covers responsible disclosure.

I'm having trouble installing or using the tool. Where can I get help?

Ask in the Discord server, check GitHub issues, or read the project FAQ document and the FAQ section on the website.

What are the most common use cases?

Understanding complex codebases, generating documentation and diagrams, automating system tasks, working across several projects, and making precise code edits.

Does Desktop Commander automatically update?

Yes, when installed through npx or Smithery it pulls the newest version automatically when you restart Claude.

Do I need to pay for API credits?

No — it rides on the Claude Desktop subscription rather than per-token API billing, so there are no extra usage costs.

How is this different from Cursor/Windsurf?

It works across your whole operating system rather than inside an indexed coding IDE, reads files in full, can juggle several projects at once, and applies changes in one go.

What is Desktop Commander?

An MCP tool that gives Claude Desktop access to your file system and terminal, making it a general assistant for coding, automation and codebase exploration.

More in LLM Integration

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…