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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
hive.terminal-tools-foundationsTeaches your agent to run commands and edit files on your computer, with background jobs, search and interactive sessions.modly-cliLets your agent make 3D models from pictures by sending commands to the Modly desktop app from the terminal, then export the finished file.genofficeHelps your agent create, convert and read Office files such as PowerPoint, Excel, Word and PDF, locally, using the GenOffice command line tool.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.