Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

Desktop Commander

Lets your AI agent run terminal commands, search and edit files, and manage processes on your computer.

10k stars on GitHubby wonderwhy-erLicense MITUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

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

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Find every file in my Documents folder that mentions the word invoice and list them.
Run the tests in my project folder and tell me which ones fail.

What it is

Desktop Commander connects your AI agent to your own computer. It can run terminal commands, read and write files, search folders, and edit code. It also reads Excel, PDF and Word files, so you can ask for things like a quick analysis of a CSV file.

What it can do

  • Run terminal commands with streamed output and background execution
  • List and kill running processes
  • Read, write, move and search files and folders
  • Edit code with small text replacements or full rewrites
  • Read and edit Excel, PDF and DOCX files
  • Run Python, Node.js or R code in memory
  • get_recent_tool_calls: see recent tool call history

When to use

  • β€ΊWhen you want your agent to run commands and see the results without copying text back and forth.
  • β€ΊWhen you need to search or edit many files in a project folder.
  • β€ΊWhen you want to analyze a CSV, JSON or Excel file by just asking.

What you need

Node.js for the npx install, or Docker if you prefer the isolated Docker install. No account or API key is needed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

The README does not mention a price. It describes using your host client subscription instead of API token costs, and it is published as an open project on GitHub and npm.

What do I need to install it?

Run npx @wonderwhy-er/desktop-commander@latest setup, which needs Node.js. You can also add it to claude_desktop_config.json by hand or use the Docker installer.

Which apps does it work with?

It works with Claude Desktop and any MCP-compatible client. A remote option exists for ChatGPT and Claude web.

Is it safe to let an agent run commands?

The README says it has guardrails such as a command blocklist and symlink protection, but it is not a sandbox. For full isolation, use the Docker install.

Which files can it read?

Text files, Excel (.xlsx, .xls, .xlsm), PDF and DOCX files are supported.

How do I update or remove it?

Most install options update automatically when you restart Claude. To remove it, run npx @wonderwhy-er/desktop-commander@latest remove.

If it does not work

  • β€ΊRestart Claude Desktop fully after running the setup command.
  • β€ΊIf the npx command fails, check that Node.js is installed.
  • β€ΊFor the Docker install, make sure Docker Desktop is installed and running.

5 new skills a week. 1 minute to read.