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.
Install Desktop Commander
Built from the published package, never by AI.
claude mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commanderRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"desktop-commander": {
"args": [
"-y",
"@wonderwhy-er/desktop-commander"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"desktop-commander": {
"args": [
"-y",
"@wonderwhy-er/desktop-commander"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"desktop-commander": {
"args": [
"-y",
"@wonderwhy-er/desktop-commander"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commander{
"mcpServers": {
"desktop-commander": {
"args": [
"-y",
"@wonderwhy-er/desktop-commander"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add desktop-commander npx -y @wonderwhy-er/desktop-commanderGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →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.
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.
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.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
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.
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.
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.
