Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Desktop Commander

MCP server by wonderwhy-er Community

Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.

  • Score 94
  • 11k stars
  • 1.4M a week
  • MIT
  • Updated

Install Desktop Commander

Built from the published package, never by AI.

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

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Desktop Commander in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the desktop-commander block.

About

Desktop Commander is an MCP server for terminal commands, file operations and process management. It is built on top of the MCP Filesystem Server and adds search and replace file editing. It can execute long-running terminal commands, manage processes, and run Python, Node.js and R code in memory without saving files. It also reads and writes Excel files, reads PDFs, and reads, creates and edits DOCX documents.

The server runs on the machine where it is installed and records tool calls and arguments in local logs. It includes safety guardrails such as symlink traversal prevention and a command blocklist, but the source says it is not a sandbox. A Docker installation option provides isolation. It is aimed at developers and users who want an AI assistant to automate tasks on their own computer, and it can also be used from ChatGPT and Claude web through Remote MCP.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_recent_tool_callsReturns recent tool call history with bounded output previews.
  • Terminal commandsExecutes terminal commands with output streaming, timeouts and background execution.
  • Process managementLists and kills processes, and manages sessions for long-running commands.
  • Filesystem operationsReads and writes files, creates and lists directories, moves files and gets metadata.
  • Code editingMakes surgical text replacements, full file rewrites and pattern-based replacements across files.
  • SearchSearches files and content using vscode-ripgrep, including Excel content.
  • Excel, PDF and DOCX supportReads and edits Excel files, extracts PDF text and converts markdown to DOCX.
  • In-memory code executionRuns Python, Node.js and R code without saving files.
  • Process output paginationReads terminal output with offset and length controls to limit context overflow.
  • Server configurationGets and sets configuration values without a server restart.

What you need

  • Node.js for the npx install
  • Claude Desktop or another MCP-compatible client
  • Docker Desktop for the Docker installation
  • macOS, Linux or Windows

Try asking

  • Analyze this CSV file and summarize the main trends.
  • Search my project folder for files that mention a specific function.
  • Show the recent tool calls the assistant made on this machine.

Good to know

  • The source states it is not a sandbox.
  • Command blocklist is meant for accidental execution only.
  • The local checkout install option requires manual updates.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install.sh | bash
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Desktop Commander

All alternatives →
MR Office XinaTian
98

Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.

ACA Local and remote 5.8k
kordocchrisryugj
94

Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.

AAA Local 129k/wk
MCP Linear tacticlaunch
94

Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.

AAB Local 69k/wk
Pptx Viewer MCP ChristopherVR
94

pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.

AAB Local 50k/wk
Dsh Plugin Reactive Resume amruthpillai
94

Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.

AAA Local 46k
PDF Craftoomol-lab
94

Converts scanned PDFs to editable Markdown or EPUB and translates PDF and EPUB books. It is offered as a Python library, a hosted online service and a remote MCP server. It suits people working with scanned books, research papers and technical documents.

AAA Remote 6.8k

Compare with MR Office, kordoc or MCP Linear

Desktop Commander: common questions

Is Desktop Commander a sandbox?

The source says it is not a sandbox and points to SECURITY.md for details. The Docker installation option offers isolation.

Can Desktop Commander work with Excel and PDF files?

Yes. The source says it reads, writes and edits Excel files (.xlsx, .xls, .xlsm), extracts text from PDFs and can create PDFs from markdown.

Does Desktop Commander keep a record of tool calls?

Tool calls and arguments are recorded locally on the machine running it. Size-based rotation keeps the history files bounded.

How do I install Desktop Commander?

In Claude Code run claude mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commander. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Desktop Commander the official server?

Desktop Commander is a community project by wonderwhy-er, not verified by a company domain.

Is Desktop Commander free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Desktop Commander safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Desktop Commander?

Similar MCP servers: MR Office, kordoc, MCP Linear, Pptx Viewer MCP.

Does Desktop Commander work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Desktop Commander Install

Add to stack

Loading.