general MCP Server
Remote control your Mac with AI — Desktop Commander MCP menubar app for macOS. Connect Claude, GPT-4 and other AI agents to your Mac remotely via MCP protocol.
Discovered via github-topic:model-context-protocol and last synced 1mo ago.
1. Install the package
npx -y @wonderwhy-er/desktop-commander
2. Add to claude_desktop_config.json
{
"mcpServers": {
"wonderwhy-er-desktop-commander": {
"command": "npx",
"args": [
"-y",
"@wonderwhy-er/desktop-commander"
]
}
}
}Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)
Start programs with smart detection of when they're ready for input
Create new PDF files from markdown or modify existing PDFs (insert/delete pages). Supports HTML/CSS styling and SVG graphics
Get usage statistics for your own insight
Read output from running processes
Get detailed recursive listing of files and directories (supports depth parameter, default depth=2)
Open feedback form in browser to provide feedback to Desktop Commander Team
Force terminate a running terminal session
List all active terminal sessions
Move or rename files and directories
Start streaming search for files by name or content patterns (searches text files and Excel content)
Tool
Read contents from local filesystem, URLs, Excel files (.xlsx, .xls, .xlsm), and PDFs with line/page-based pagination
List all active search sessions
List all running processes with detailed information
Get paginated results from active search with offset support
Get the complete server configuration as JSON (includes blockedCommands, defaultShell, allowedDirectories, fileReadLineLimit, fileWriteLineLimit, telemetryEnabled)
Read multiple files simultaneously
Retrieve detailed metadata about a file or directory (includes sheet info for Excel files)
Set a specific configuration value by key. Available settings: <br>• `blockedCommands`: Array of shell commands that cannot be executed<br>• `defaultShell`: Shell to use for commands (e.g., bash, zsh, powershell)<br>• `allowedDirectories`: Array of filesystem paths the server can access for file operations (⚠️ terminal commands can still access files outside these directories)<br>• `fileReadLineLimit`: Maximum lines to read at once (default: 1000)<br>• `fileWriteLineLimit`: Maximum lines to write at once (default: 50)<br>• `telemetryEnabled`: Enable/disable telemetry (boolean)
Write file contents with options for rewrite or append mode. Supports Excel files (JSON 2D array format). For PDFs, use `write_pdf`
Apply targeted text replacements for text files, or range-based cell updates for Excel files
Send commands to running programs and get responses
Create a new directory or ensure it exists
Get recent tool call history with arguments and outputs for debugging and context recovery
Terminate a running process by PID
Stop an active search gracefully