MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

Desktop Commander MCP

by wonderwhy-er

AI-powered file management and terminal execution with in-memory code running

filesystem Node.js Beginner Self-hostable No API key Docker
⭐ 5.6k stars πŸ“… Updated: 1mo ago

Description

MCP server that enables AI assistants to search, update, and manage files while running terminal commands with full process control. Provides in-memory code execution for Python, Node.js, and R without writing temporary files. Includes native Excel and PDF reading support, recursive code search across directories, session management for long-running processes, and audit logging for all operations. Docker and remote MCP access are also available, making it suitable for both local development and server-side deployment.

βœ… Best for

Developers who want a single MCP server for file management, terminal access, and quick code execution

⏭️ Skip if

You need strictly sandboxed code execution in a cloud environment

πŸ’‘ Use cases

  • Managing files and directories through AI assistants with natural language
  • Running terminal commands and long-lived processes with session persistence
  • Executing Python, Node.js, or R code snippets in-memory for quick analysis
  • Searching codebases recursively with pattern matching from AI-driven workflows

πŸ‘ Pros

  • βœ“ Comprehensive toolset covering files, terminal, and code execution in one server
  • βœ“ In-memory code execution for Python, Node.js, and R avoids temp file clutter
  • βœ“ Native Excel and PDF support without additional dependencies
  • βœ“ Audit logging provides accountability for all AI-initiated operations

πŸ‘Ž Cons

  • βœ— Broad system access requires careful permission configuration in production
  • βœ— Terminal command execution carries inherent security risks with untrusted inputs
  • βœ— No built-in sandboxing for code execution on the local machine

πŸ”§ Exposed tools (9 tools)

ToolCategoryDescription
run_pythoncode-executionExecute Python code in-memory without writing temp files
run_nodejscode-executionExecute Node.js code in-memory without writing temp files
read_filefilesystemRead the contents of a file from the filesystem
write_filefilesystemWrite or update content to a file
read_excelfilesystemRead and parse Excel files natively
read_pdffilesystemRead and extract content from PDF files
search_codesearchRecursively search code across directories with pattern matching
execute_commandterminalExecute a terminal command with process control
manage_processterminalManage long-running processes with session persistence

⚑ Installation

Prerequisites:

  • β€’ Node.js v18+

Check Claude Code documentation to configure this MCP server.

πŸ’‘ Tips & tricks

Run npx @wonderwhy-er/desktop-commander@latest setup for automatic configuration. Use the audit log to review all operations performed by the AI. For production use, consider running inside Docker to limit filesystem access.

Quick info

Author
wonderwhy-er
License
MIT
Runtime
Node.js 18+
Transport
stdio
Category
filesystem
Difficulty
Beginner
Self-hostable
βœ…
Auth
β€”
Docker
🐳 Docker available
Version
latest
Updated
Feb 28, 2026

Client compatibility

  • βœ… Claude Code
  • βœ… Cursor
  • ❓ VS Code Copilot
  • ❓ Gemini CLI
  • ❓ Windsurf
  • ❓ Cline
  • ❓ JetBrains AI
  • ❓ Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows