The Desktop Commander MCP Server is a strong instrument that brings all of your growth operations into one chat interface. Constructed on prime of the MCP Filesystem Server, it lets you search, edit, and handle recordsdata, run terminal instructions, and management processes straight out of your desktop utilizing the Mannequin Context Protocol (MCP).
Following are the core capabilities of the Desktop Commander MCP server:
Terminal & Course of Management
- Execute terminal instructions with stay output streaming
- Set timeouts and run instructions within the background
- Handle classes for long-running duties
- Record and kill operating processes with detailed data
Configuration Administration
- Get or set server settings like:
- defaultShell (e.g., bash, zsh)
- blockedCommands (e.g., rm, shutdown)
- allowedDirectories for file entry
- telemetryEnabled
- Apply adjustments with out restarting the server
Filesystem Operations
- Learn and write recordsdata with line-based limits
- Append or overwrite file content material
- Create and record directories
- Transfer or rename recordsdata and folders
- Get file and listing metadata
- Search recordsdata by identify (case-insensitive)
Code & Textual content Enhancing
- Carry out exact textual content replacements (e.g., change config values)
- Rewrite complete recordsdata for main updates
- Search and exchange patterns throughout a number of recordsdata
- Use vscode-ripgrep for quick recursive textual content/code search
Audit Logging
- All actions are logged with timestamps and arguments
- Logs auto-rotate at 10MB to keep away from litter
On this tutorial, we might be connecting Claude desktop with the MCP server and carry out some duties.
Node JS
We want npx to run the Desktop Commander server, which comes with Node.js.
- Obtain the most recent model of Node.js from nodejs.org
- Run the installer.
- Depart all settings as default and full the set up
Claude Desktop
Obtain Claude utilizing https://claude.ai/obtain.
Subsequent, configure Claude to connect with your MCP server. Open the claude_desktop_config.json file situated within the Claude set up listing utilizing any textual content editor. If the file doesn’t exist, you possibly can create it manually. As soon as opened, enter the next code:
{
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": [
"-y",
"@wonderwhy-er/desktop-commander"
]
}
}
}
As soon as the MCP configuration is full, your server ought to seem in Claude. The Desktop Commander server is a strong interface, providing 18 instruments for duties like file administration, terminal execution, course of management, and extra.
Be at liberty to comply with us on Twitter and don’t overlook to hitch our 95k+ ML SubReddit and Subscribe to our E-newsletter.