explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR — Desktop Commander (July 2026)
  • Why Desktop Commander exists
  • Install — all MCP clients
  • Tool categories (v0.2.45)
  • File Preview UI (Claude Desktop)
  • Quick workflows
  • Desktop Commander vs Cursor / Windsurf / Claude Code
  • Security — read before allowedDirectories: []
  • Desktop Commander App (Beta)
  • Remote MCP
  • v0.2.45 and recent releases
  • Setup checklist
  • Related on explainx.ai
← Back to blog

explainx / blog

Desktop Commander MCP: Terminal, Filesystem, and Surgical Edits for Claude

Desktop Commander MCP v0.2.45 — 7.8k-star wonderwhy-er server for terminal control, ripgrep search, edit_block diffs, Excel/PDF/DOCX, and Claude Desktop file preview UI. Install for Cursor, Claude Code, Codex.

Jul 12, 2026·7 min read·Yash Thakker
MCPDesktop CommanderClaude DesktopDeveloper ToolsAI Agents
go deep
Desktop Commander MCP: Terminal, Filesystem, and Surgical Edits for Claude

Desktop Commander MCP is the 7.8k-star open-source server that turns Claude into something closer to a human developer on your machine — terminal sessions, ripgrep search, surgical edit_block patches, Excel/PDF/DOCX, and a file preview UI in Claude Desktop. Latest release: v0.2.45 (July 11, 2026).

Creator @wonderwhy-er (Eduard Ruzga) built it on top of Anthropic's MCP Filesystem Server and extended it far beyond read/write — the README's pitch: "Work with code and text, run processes, and automate tasks… using host client subscriptions instead of API token costs."

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

TL;DR — Desktop Commander (July 2026)

FieldDetail
Repogithub.com/wonderwhy-er/DesktopCommanderMCP
npm@wonderwhy-er/desktop-commander@latest
Versionv0.2.45
Stars~7.8k · 966 forks · 38 contributors
LicenseMIT
Sitedesktopcommander.app
Installnpx -y @wonderwhy-er/desktop-commander@latest
HostsClaude Desktop · Cursor · Claude Code · Codex · Gemini CLI · Remote MCP

Why Desktop Commander exists

Before MCP, Claude could only see what you pasted. IDE agents like Cursor and Windsurf added filesystem + terminal — but burn fast-request quotas and chunk large files.

Desktop Commander's differentiation (from the README and community testimonials):

PainDesktop Commander answer
API/token burnRuns on Claude Pro subscription — not per-call API
IDE lock-inWorks across OS-wide projects, not one repo
Chunked file readsFull-file reads with pagination + negative offset (tail)
Cascade rewritesedit_block surgical patches + 50-line write cap by default
No terminal REPLstart_process + interact_with_process for SSH, Node, Python

YouTube commenters in the repo describe ditching Cursor + Claude duplicate subscriptions and fixing a Flutter null-safety migration in hours after days stuck in IDE cascades.


Install — all MCP clients

Standard JSON config (from README):

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

Where to put it

ClientConfig location
Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
Claude Code.claude/settings.json or --mcp-config — full guide
CursorCursor MCP settings (same JSON block)
Codex / Gemini CLIHost-specific MCP config per top directories list

Install options

MethodAuto-update
npx (recommended)✅ on restart
bash installer (macOS)✅
Smithery✅
Docker✅ — full host isolation
Local git checkout❌ manual git pull

Uninstall:

bash
npx @wonderwhy-er/desktop-commander@latest remove

Creates a config backup before removing the desktop-commander entry from Claude's config.


Tool categories (v0.2.45)

Desktop Commander exposes 30+ tools grouped in the README:

Terminal

ToolPurpose
start_processLaunch programs; detects readiness for input
interact_with_processSend commands to running REPL/SSH
read_process_outputPaginated output (offset/length — prevents context overflow)
list_sessions / force_terminateSession management
list_processes / kill_processOS process control

Long-running commands: execute with timeout → continues in background → read output by PID.

Filesystem

ToolPurpose
read_fileText, URLs, Excel, PDF — line/page pagination
write_file / write_pdfText append/rewrite; PDF from markdown
list_directoryRecursive tree with depth + overflow protection
start_searchRipgrep file/content search (streaming + pagination)
move_file / create_directory / get_file_infoStandard FS ops

Negative offset: read_file supports tail-style reads from file end (Unix tail semantics).

Code editing

edit_block — SEARCH/REPLACE format:

snippet
src/main.js
<<<<<<< SEARCH
console.log("old message");
=======
console.log("new message");
>>>>>>> REPLACE

Enhancements (v0.2.x):

  • Fuzzy fallback when exact match fails — similarity %, character diffs {-removed-}{+added+}
  • expected_replacements for multi-occurrence edits
  • Logs to ~/.claude-server-commander-logs/fuzzy-search.log

Configuration

ToolKeys
get_config / set_config_valueblockedCommands, defaultShell, allowedDirectories, fileReadLineLimit, fileWriteLineLimit, telemetryEnabled

Default fileWriteLineLimit: 50 lines — intentionally low to force small edits and survive Claude message limits without losing entire rewrites.

Analytics

  • get_usage_stats — your own usage insight
  • get_recent_tool_calls — debug / context recovery
  • Audit log: ~/.claude-server-commander/claude_tool_call.log (10MB rotation)

File Preview UI (Claude Desktop)

Desktop Commander ships a rich preview widget — not just raw tool JSON:

TypeUI
MarkdownRendered preview + built-in editor (fullscreen ⤢, live preview toggle, autosave)
ImagesInline display in Claude
CodeSyntax-highlighted
HTMLRendered + source toggle
DirectoriesInteractive tree — lazy load, click-to-preview, Open in Finder
PDF / Excel / DOCXNative extraction display

Directory browser: list_directory opens as expandable tree inside the panel — not a wall of paths in chat.

Pair with Claude Code desktop browser when you need web verification; Desktop Commander handles local disk + terminal.


Quick workflows

Data analysis (in-memory)

"Analyze sales.csv and show top customers"

Desktop Commander runs Python in memory — no temp script file on disk.

SSH + ops

"SSH to my server and check disk space"

start_process maintains the SSH session; interact_with_process sends follow-up commands.

Surgical refactor

"Replace deprecated API calls in src/api/.ts"*

start_search → ripgrep hits → multiple small edit_block patches (not one 2,000-line rewrite).

Onboarding

New users (<10 successful commands) get automatic tutorials. Anytime:

  • "Help me get started with Desktop Commander"
  • "Show me Desktop Commander examples"

Disable: --no-onboarding flag in npx args.


Desktop Commander vs Cursor / Windsurf / Claude Code

DimensionDesktop CommanderCursor / WindsurfClaude Code (native)
BillingHost subscriptionFast requests / creditsAnthropic plan quota
ScopeEntire OSSingle workspaceProject directory
TerminalInteractive sessions + paginationIntegrated terminalBash tool
Editsedit_block + fuzzy logsMulti-file agentWrite + native Edit
Preview UIClaude Desktop widgetIDE diff viewTerminal output
Excel/PDF/DOCXNative toolsLimited / extensionsNot built-in

explainx.ai read: Desktop Commander is not a Cursor replacement — it's the MCP layer that makes Claude Desktop (or any MCP host) competitive with IDE agents for subscription-priced automation. Many teams run Codex vs Claude Code for repo work and Desktop Commander for OS-wide scripts.


Security — read before allowedDirectories: []

From SECURITY.md and the README warnings:

ControlCoverage
Symlink blockingFilesystem tools
Command blocklistblockedCommands — bypass attempts logged
allowedDirectoriesFilesystem only — terminal can still reach other paths
Docker installFull host isolation — recommended for untrusted prompts

⚠️ Never change config in the same chat where you're doing real work — Claude may try to widen allowedDirectories when blocked.

For enterprise threat models: MCP security guide · context-mode sandboxing.

Telemetry: Limited pseudonymous data; no file contents or paths. Opt out: telemetryEnabled: false or ask Claude to disable telemetry.


Desktop Commander App (Beta)

Beyond the MCP server, wonderwhy-er ships a Desktop Commander App (macOS & Windows):

  • Any model — Claude, GPT-4.5, Gemini 2.5
  • Live file change previews as AI edits
  • Custom MCPs without config files
  • Roadmap: skills, dictation, scheduled background tasks

The MCP server remains the path for Claude Desktop / Cursor / Codex users who want the open-source integration.


Remote MCP

Desktop Commander supports Remote MCP — use from ChatGPT web and Claude web without local Claude Desktop. Same tool surface; latency and sandbox policy depend on the remote host.


v0.2.45 and recent releases

ReleaseHighlights
v0.2.45Jul 11, 2026 — latest tagged release
v0.2.44Tiptap round-trip safety, autosave scoping
PriorFile preview core, Gemini extension skills, Windows PATHEXT fix, telemetry proxy

Track: GitHub Releases · MCP directory entry


Setup checklist

  1. Add npx config to your MCP host
  2. Restart client (auto-pulls latest on npx)
  3. Run get_config({}) — verify allowedDirectories
  4. Set fileWriteLineLimit if 50 lines is too aggressive for your workflow
  5. Ask Claude: "Help me get started with Desktop Commander"
  6. Stage git commits before large edit sessions — community best practice from testimonials

Related on explainx.ai

  • What is MCP? — Model Context Protocol guide
  • Claude Code MCP servers — connect any tool
  • MCP security guide 2026
  • Top 10 MCP server directories
  • context-mode MCP sandboxing
  • Codex vs Claude Code comparison
  • Claude Code desktop in-app browser
  • MCP tool descriptions & selection reliability

Official: GitHub — wonderwhy-er/DesktopCommanderMCP · desktopcommander.app · Discord


Desktop Commander runs with your user permissions. Treat it like installing a global npm CLI with full disk and shell access — use Docker or tight allowedDirectories on shared machines.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jul 16, 2026

DoorDash dd-cli: Order Food From Your AI Agent in the Terminal

DoorDash opened a limited beta for dd-cli, a command-line interface that lets AI agents search restaurants, find deals, and complete real payments from the terminal. explainx.ai maps the apps-for-agents thesis, macOS-only waitlist constraints, Paul Graham memes vs skepticism, and checkout safety next to today's Codex $HOME news.

Jul 9, 2026

AI Skills Every Developer Needs in 2026: The Prompting → MCP → Agents Roadmap

Stanford's 2026 AI Index shows entry-level developer roles shrinking while agent benchmarks climb. Here's the six-stage AI skills roadmap — prompting to MCP to agents to RAG — that keeps engineers ahead of that curve instead of behind it.

Jul 7, 2026

Cloudflare Monetization Gateway: x402 Micropayments for APIs, MCP Tools, and the Agent Web

Cloudflare's Monetization Gateway uses the open x402 protocol to settle per-request stablecoin payments at the edge — no signup, no API key, no checkout redirect. explainx.ai breaks down the 402 flow, MCP monetization, Pay Per Crawl lineage, and what X discourse got right and wrong.