Desktop Commander MCP
This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
What is Desktop Commander MCP?
Desktop Commander MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this is mcp server for claude that gives it terminal control, file system search and diff file editing capabilities
This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- This is MCP server for Claude that gives it terminal control
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx desktopcommandermcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Desktop Commander MCP
DesktopCommanderMCP is the same powerful MCP server as Desktop Commander, giving Claude terminal control, file system search, and diff-based file editing capabilities on your local machine. It connects Claude to your operating system's shell and filesystem through a rich tool set that supports interactive process management, multi-format file reading (Excel, PDF, DOCX), and surgical text replacement. This server is widely used by developers who want Claude to act as an autonomous coding assistant that can read code, run tests, and apply changes without leaving the conversation.
Prerequisites
- Node.js 18 or later installed
- Claude Desktop or Claude Code as your MCP client
- npx available on your PATH
- macOS, Windows, or Linux
Run the automated setup
The quickest way to install is via the setup command which auto-configures Claude Desktop.
npx @wonderwhy-er/desktop-commander@latest setupManual configuration in Claude Desktop
Open claude_desktop_config.json and add the server entry. On macOS the file is at ~/Library/Application Support/Claude/claude_desktop_config.json.
{
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": ["-y", "@wonderwhy-er/desktop-commander@latest"]
}
}
}Add to Claude Code
Register the server with Claude Code at user scope so it is available in all projects.
claude mcp add --scope user desktop-commander -- npx -y @wonderwhy-er/desktop-commander@latestRestart your MCP client
After editing the config file, restart Claude Desktop or reload Claude Code so the new MCP server is picked up.
Restrict allowed directories (optional)
For safety, you can configure which directories file tools are allowed to access. Ask Claude to set the config value after the server is connected.
# Tell Claude in the chat:
"Set the allowedDirectories config to ["/Users/yourname/projects"]" Desktop Commander MCP Examples
Client configuration
claude_desktop_config.json entry using the @wonderwhy-er/desktop-commander npm package.
{
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": ["-y", "@wonderwhy-er/desktop-commander@latest"]
}
}
}Prompts to try
Example tasks to run once DesktopCommanderMCP is connected.
- "Find all TODO comments in the src/ directory and list them with file paths and line numbers"
- "Run the test suite with npm test and fix any failing tests"
- "Edit src/config.ts and replace the hardcoded API URL with an environment variable lookup"
- "List all running processes and show me which ones are using the most memory"Troubleshooting Desktop Commander MCP
Server does not appear in Claude after installation
Ensure Claude Desktop was fully restarted after the config change. Check the JSON syntax in claude_desktop_config.json with a JSON validator — a trailing comma or missing brace will prevent the config from loading.
start_process returns no output for long-running commands
Use read_process_output to poll the process output stream by session ID. Long-running processes (dev servers, test runners) stream output asynchronously — call read_process_output periodically rather than expecting immediate results from start_process.
File write fails with a line limit error
The default fileWriteLineLimit is 50 lines per write call. Ask Claude to set the config value: "Set fileWriteLineLimit to 200". For large files, split writes into multiple edit_block calls targeting specific sections.
Frequently Asked Questions about Desktop Commander MCP
What is Desktop Commander MCP?
Desktop Commander MCP is a Model Context Protocol (MCP) server that this is mcp server for claude that gives it terminal control, file system search and diff file editing capabilities It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Desktop Commander MCP?
Follow the installation instructions on the Desktop Commander MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Desktop Commander MCP?
Desktop Commander MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Desktop Commander MCP free to use?
Yes, Desktop Commander MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Desktop Commander MCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to Desktop Commander MCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Desktop Commander MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Desktop Commander MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.