Skip to main content
ClaudeWave
ES, Spanish
wonderwhy-er / MCP Servers · Registry oficial

DesktopCommanderMCP

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

  • 10.1k estrellas
  • 1.3k forks
  • 280 issues abiertos
  • Lenguaje: JavaScript
  • Licencia: MIT
  • actualizado

Instalación

local · npx
Claude Code CLI
claude mcp add desktopcommandermcp -- npx -y @wonderwhy-er/desktop-commander
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Nota editorial

Desktop Commander MCP is a TypeScript-based MCP server that extends Claude Desktop with terminal control, filesystem management, and file editing capabilities. It connects to Claude via the Model Context Protocol and exposes tools for executing terminal commands with interactive process control, reading and writing files across formats including Excel (.xlsx/.xls/.xlsm), PDF, and DOCX, performing recursive directory listings, and running code in memory for Python, Node.js, and R without saving files to disk. Text editing works through surgical search-and-replace patches for small changes or full rewrites for larger ones, backed by vscode-ripgrep for recursive content search. A standout detail is the File Preview UI inside Claude Desktop, which renders markdown, displays inline images, and includes a built-in markdown editor. Security features include symlink traversal prevention, a command blocklist, and optional Docker sandboxing. A companion Desktop Commander App extends the same functionality to GPT-4.5 and Gemini 2.5, making the toolset accessible beyond Claude.

README

Resumen de MCP Servers

README completo en GitHub

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.

Table of Contents

All of your AI development tools in one place. Desktop Commander puts all dev tools in one chat. Execute long-running terminal commands on your computer and manage processes through Model Context Protocol (MCP). Built on top of MCP Filesystem Server to provide additional search and replace file editing capabilities.

Features

  • Remote AI Control - Use Desktop Commander from ChatGPT, Claude web, and other AI services via Remote MCP

  • File Preview UI - Visual file previews in Claude Desktop with rendered markdown, inline images, expandable content, built-in markdown editor, and quick "Open in folder" access

  • Enhanced terminal commands with interactive process control

  • Execute code in memory (Python, Node.js, R) without saving files

  • Instant data analysis - just ask to analyze CSV/JSON/Excel files

  • Native Excel file support - Read, write, edit, and search Excel files (.xlsx, .xls, .xlsm) without external tools

  • PDF support - Read PDFs with text extraction, create new PDFs from markdown, modify existing PDFs

  • DOCX support - Read, create, edit, and search Word documents (.docx) with surgical XML editing and markdown-to-DOCX conversion

  • Interact with running processes (SSH, databases, development servers)

  • Execute terminal commands with output streaming

  • Command timeout and background execution support

  • Process management (list and kill processes)

  • Session management for long-running commands

  • Process output pagination - Read terminal output with offset/length controls to prevent context overflow

  • Server configuration management:

    • Get/set configuration values

    • Update multiple settings at once

    • Dynamic configuration changes without server restart

  • Full filesystem operations:

    • Read/write files (text, Excel, PDF, DOCX)

    • Create/list directories

    • Recursive directory listing with configurable depth and context overflow protection for large folders

    • Move files/directories

    • Search files and content (including Excel content)

    • Get file metadata

    • Negative offset file reading: Read from end of files using negative offset values (like Unix tail)

  • Code editing capabilities:

    • Surgical text replacements for small changes

    • Full file rewrites for major changes

    • Multiple file support

    • Pattern-based replacements

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

  • Local tool-call history and audit logs:

    • Tool calls and arguments are recorded locally on the machine running Desktop Commander

    • Recent call history with bounded output previews is available through get_recent_tool_calls

    • Size-based rotation/trimming keeps the active history files bounded

  • Safety guardrails (not a sandbox — see SECURITY.md):

    • Symlink traversal prevention on file operations

    • Command blocklist for accidental execution

    • Docker isolation for complete isolation

How to install

Install in Claude Desktop

Desktop Commander offers multiple installation methods for Claude Desktop.

📋 Update & Uninstall Information: Options 1, 2, 3, 4, and 6 have automatic updates. Option 5 requires manual updates. See below for details.

Option 1: Install through npx ⭐ Auto-Updates (Requires Node.js)

Just run this in terminal:

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

For debugging mode (allows Node.js inspector connection):

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

Command line options during setup:

  • --debug: Enable debugging mode for Node.js inspector

  • --no-onboarding: Disable onboarding prompts for new users

Restart Claude if running.

✅ Auto-Updates: Yes - automatically updates when you restart Claude
🔄 Manual Update: Run the setup command again
🗑️ Uninstall: Run npx @wonderwhy-er/desktop-commander@latest remove

Option 2: Using bash script installer (macOS) ⭐ Auto-Updates (Installs Node.js if needed)

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

This script handles all dependencies and configuration automatically.

✅ Auto-Updates: Yes
🔄 Manual Update: Re-run the bash installer command above
🗑️ Uninstall: Run npx @wonderwhy-er/desktop-commander@latest remove

Option 3: Installing via Smithery ⭐ Auto-Updates (Requires Node.js)

  1. Visit: https://smithery.ai/server/@wonderwhy-er/desktop-commander

  2. Login to Smithery if you haven't already

  3. Select your client (Claude Desktop) on the right side

  4. Install with the provided key that appears after selecting your client

  5. Restart Claude Desktop

✅ Auto-Updates: Yes - automatically updates when you restart Claude
🔄 Manual Update: Visit the Smithery page and reinstall

Option 4: Add to claude_desktop_config manually ⭐ Auto-Updates (Requires Node.js)

Add this entry to your claude_desktop_config.json:

  • On Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

  • On Windows: %APPDATA%\Claude\claude_desktop_config.json

  • On Linux: ~/.config/Claude/claude_desktop_config.json

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

Restart Claude if running.

✅ Auto-Updates: Yes - automatically updates when you restart Claude
🔄 Manual Update: Run the setup command again
🗑️ Uninstall: Run npx @wonderwhy-er/desktop-commander@latest remove or remove the entry from your claude_desktop_config.json

Option 5: Checkout locally ❌ Manual Updates (Requires Node.js)

git clone https://github.com/wonderwhy-er/DesktopCommanderMCP.git
cd DesktopCommanderMCP
npm run setup

Restart Claude if running.

The setup command will install dependencies, build the server, and configure Claude's desktop app.

❌ Auto-Updates: No - requires manual git updates
🔄 Manual Update: cd DesktopCommanderMCP && git pull && npm run setup
🗑️ Uninstall: Run npx @wonderwhy-er/desktop-commander@latest remove or remove the cloned directory and MCP server entry from Claude config

Option 6: Docker Installation 🐳 ⭐ Auto-Updates (No Node.js Required)

Perfect for users who want isolation or don't have Node.js installed. Runs in a sandboxed Docker container with a persistent work environment.

Prerequisites: 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'))

The installer will check Docker, pull the image, prompt for folder mounting, and configure Claude Desktop.

Docker persistence: Your tools, configs, work files, and package caches all survive restarts.

Manual Docker Configuration

Basic setup (no file access):

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

With folder mounting:

{
  "mcpServers": {
    "desktop-commander-in-docker": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "/Users/username/Desktop:/mnt/desktop",
        "-v", "/Users/username/Documents:/mnt/documents",
        "mcp/desktop-commander:latest"
Topics
agentaicode-analysiscode-generationgemini-cli-extensionmcpterminal-aiterminal-automationvibe-coding
Preguntas frecuentes

Lo que la gente pregunta sobre DesktopCommanderMCP

¿Qué es wonderwhy-er/DesktopCommanderMCP?

wonderwhy-er/DesktopCommanderMCP es mcp servers para el ecosistema de Claude AI. This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities Tiene 10.1k estrellas en GitHub y su última actualización registrada es del 2026-10-22.

¿Cómo se instala DesktopCommanderMCP?

Puedes instalar DesktopCommanderMCP clonando el repositorio (https://github.com/wonderwhy-er/DesktopCommanderMCP) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar wonderwhy-er/DesktopCommanderMCP?

Nuestro agente de seguridad ha analizado wonderwhy-er/DesktopCommanderMCP y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene wonderwhy-er/DesktopCommanderMCP?

wonderwhy-er/DesktopCommanderMCP es mantenido por wonderwhy-er. La última actividad registrada en GitHub es del 2026-10-22, con 280 issues abiertos.

¿Hay alternativas a DesktopCommanderMCP?

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

¿Mantienes este repo? Muestra su Trust Score en tu README

La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.

ClaudeWave Trust Score for wonderwhy-er/DesktopCommanderMCP
Markdown (README)
[![ClaudeWave Trust Score for wonderwhy-er/DesktopCommanderMCP](https://claudewave.com/api/badge/wonderwhy-er-desktopcommandermcp)](https://claudewave.com/en/repo/wonderwhy-er-desktopcommandermcp)
HTML
<a href="https://claudewave.com/en/repo/wonderwhy-er-desktopcommandermcp"><img src="https://claudewave.com/api/badge/wonderwhy-er-desktopcommandermcp" alt="ClaudeWave Trust Score for wonderwhy-er/DesktopCommanderMCP" width="320" height="64"></a>

Qué significa la insignia y cómo se calcula la puntuación

Alternativas

Ver todas