MCP.so
登录

Desktop Commander MCP Server

@wonderwhy-er

基本信息

分类

生产力

许可证

MIT

传输方式

stdio

作者

wonderwhy-er

提交者

Eduard Ruzga

关于 Desktop Commander MCP Server

This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities

连接前先了解

文档核对日期:2026-10-25

适合什么场景

Desktop Commander 适合本地文件搜索、编辑和终端操作。需要访问自己的电脑,而不只是网页时,可考虑它。

配置与限制

请以当前 DesktopCommanderMCP 仓库为准。setup 用于配置客户端,不是持续运行的 MCP 启动命令。建议先在临时目录测试文件列表操作。

本说明依据所列文档核对,未代表通过账户认证的实际连接测试;建议检查项需要在你的环境执行。

Desktop Commander MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ClaudeComputerCommander": {
      "command": "npx",
      "args": [
        "@wonderwhy-er/desktop-commander@latest",
        "remove"
      ]
    }
  }
}

Desktop Commander MCP Server 工具

4

`get_config`

`start_process`

`read_file`

`get_usage_stats`

概览

What is Desktop Commander?

Desktop Commander is an MCP server that gives AI assistants capabilities to search, update, manage files, and run terminal commands on a user's computer. Built on the MCP Filesystem Server, it provides enhanced terminal control, code editing, and document handling (PDF, DOCX, Excel) through model context protocol.

How to use Desktop Commander?

Install via npx @wonderwhy-er/desktop-commander@latest setup (requires Node.js) or use a one‑line bash install script (macOS). Alternatively, configure manually in claude_desktop_config.json or run in a Docker container. After installation, restart Claude Desktop to access the server’s tools.

Key features of Desktop Commander

  • Remote AI control from ChatGPT, Claude web, and other services
  • File Preview UI with rendered markdown and built‑in editor
  • Execute code in memory (Python, Node.js, R) without saving
  • Native Excel, PDF, and DOCX file support
  • Full filesystem operations with recursive directory listing
  • Enhanced terminal commands with interactive process control

Use cases of Desktop Commander

  • Run and manage long‑running terminal commands (SSH, databases) via AI chat
  • Analyze CSV, JSON, or Excel files directly from an AI prompt
  • Edit code across multiple files with surgical replacements or full rewrites
  • Create and modify PDFs and Word documents programmatically
  • Manage running processes (list, kill) and execute commands with timeout/background support

常见问题

1

How do I uninstall Desktop Commander?

Run `npx @wonderwhy-er/desktop-commander@latest remove` or remove the server entry from your claude_desktop_config.json.

2

Does Desktop Commander auto‑update?

Install methods using npx (options 1–4) and Docker (option 6) auto‑update when you restart Claude. The local git checkout (option 5) requires manual updates.

3

What are the prerequisites for installation?

Node.js is required for options 1–5. Option 6 (Docker) requires Docker Desktop and no Node.js installation.

4

Can Desktop Commander run inside a sandboxed environment?

Yes, option 6 runs Desktop Commander in a Docker container with optional folder mounting and persistent volumes, providing full sandboxing and isolation.

5

How does Desktop Commander handle file security?

It includes symlink traversal prevention on file operations and a command blocklist with bypass protection. Audit logging with 10MB rotation is enabled by default.

评论

生产力 分类下的更多 MCP 服务器