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 Verified · npm:@tokor

Desktop Commander runs terminal commands, manages processes and edits files for AI assistants through MCP. It is built on the MCP Filesystem Server and adds search and replace file editing.

  • Score 91
  • 11k stars
  • 773 a week
  • MIT
  • Updated

Install Desktop Commander

Built from the published package, never by AI.

claude mcp add desktop-commander -- npx -y @tokor/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 that lets an AI assistant work with code and text on the user's computer. It can execute long-running terminal commands, stream their output, manage processes, and read or write files. Its code editing tools support surgical text replacements for small changes and full file rewrites for larger ones.

The project is built on top of the MCP Filesystem Server and adds search and replace editing, vscode-ripgrep based search, and support for Excel, PDF and DOCX files. Tool calls are logged locally with bounded previews. The source describes safety guardrails such as symlink traversal prevention and a command blocklist, and states that it is not a sandbox. It is aimed at developers and power users who want an AI assistant to run commands and edit files in Claude Desktop and other MCP clients.

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.
  • Code and text searchRuns vscode-ripgrep based recursive search of code or text in folders.
  • Office and PDF supportReads and edits Excel, PDF and DOCX files without external tools.
  • In-memory code executionRuns Python, Node.js and R code without saving files.

What you need

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

Try asking

  • Search my project folder for every TODO comment and list them.
  • Run the test command in the background and show me the output.
  • Show my recent tool calls from this session.

Good to know

  • Not a sandbox. Safety guardrails are described in SECURITY.md.
  • Option 5, the local checkout, requires manual updates.
  • Command blocklist protects against accidental execution only.

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 →
Agent Skills Search Server agentskills
100

Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.

BAA Remote 28k
Exa exa-labs
100

Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.

AAA Remote 5.3k
Apify apify
100

Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.

AAA Remote 19k
changedetection.io (official) dgtlmoon
100

Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.

AAA Remote 36k
brave brave
95

Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.

AAA Remote 1.6k
Scrapling MCP ServerD4Vinci
94

Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.

AAA Local 107k

Compare with Agent Skills Search Server, Exa or Apify

Desktop Commander: common questions

Does Desktop Commander work outside Claude Desktop?

The source says it works with any MCP-compatible client and gives a standard JSON configuration for other clients. It also mentions remote use from ChatGPT and Claude web through Remote MCP.

Is Desktop Commander a sandbox?

No. The source says its safety guardrails are not a sandbox, and it points to SECURITY.md for details. Docker isolation is offered as an optional installation method.

Does it update automatically?

The source says most install options update automatically when the client restarts or when the latest Docker tag is pulled. The local checkout option requires manual git updates.

How do I install Desktop Commander?

In Claude Code run claude mcp add desktop-commander -- npx -y @tokor/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 published by npm:@tokor from its verified domain in the official MCP Registry.

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 91 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: Agent Skills Search Server, Exa, Apify, changedetection.io (official).

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.