wonderwhy-er / DesktopCommanderMCP
wonderwhy-er / DesktopCommanderMCP
Desktop Commander MCP Search, update, manage files and run terminal commands with AI. Work with code and text, run processes, and automate tasks, going far beyond other AI editors — while using host client subscriptions instead of API token costs.
Desktop Commander MCP 是一款可以通过 AI 搜索、更新、管理文件并运行终端命令的工具。它不仅能处理代码和文本、运行进程并自动化任务,功能远超其他 AI 编辑器,且直接使用宿主客户端的订阅,无需额外支付 API 调用费用。
🖥️ Try the Desktop Commander App (Beta)
Want a better experience? The Desktop Commander App gives you everything the MCP server does, plus:
- Use any AI model — Claude, GPT-4.5, Gemini 2.5, or any model you prefer
- See file changes live — visual file previews as AI edits your files
- Add custom MCPs and context — extend with your own tools, no config files
- Coming soon — skills system, dictation, background scheduled tasks, and more
🖥️ 尝试 Desktop Commander 应用(测试版)
想要更好的体验?Desktop Commander 应用不仅包含 MCP 服务器的所有功能,还额外提供:
- 使用任意 AI 模型 — Claude、GPT-4.5、Gemini 2.5 或你偏好的任何模型。
- 实时查看文件变更 — 当 AI 编辑文件时,提供可视化预览。
- 添加自定义 MCP 和上下文 — 无需配置文件,即可通过自己的工具进行扩展。
- 即将推出 — 技能系统、听写、后台定时任务等更多功能。
👉 Download the App (macOS & Windows) The MCP server below still works great with Claude Desktop and other MCP clients — the app is for those who want a dedicated, polished experience.
👉 下载应用 (macOS & Windows) 下方的 MCP 服务器依然完美支持 Claude Desktop 及其他 MCP 客户端——该应用专为追求更专注、更精致体验的用户打造。
All of your AI development tools in one place.
Desktop Commander puts all dev tools in one chat. Execute long-running terminal commands on your computer and manage processes through Model Context Protocol (MCP). Built on top of MCP Filesystem Server to provide additional search and replace file editing capabilities.
将所有 AI 开发工具整合于一处。
Desktop Commander 将所有开发工具集成在同一个对话框中。通过模型上下文协议 (MCP) 在你的电脑上执行长时间运行的终端命令并管理进程。它基于 MCP 文件系统服务器构建,提供了额外的搜索、替换及文件编辑功能。
Features
- Remote AI Control - Use Desktop Commander from ChatGPT, Claude web, and other AI services via Remote MCP
- File Preview UI - Visual file previews in Claude Desktop with rendered markdown, inline images, expandable content, built-in markdown editor, and quick “Open in folder” access
- Enhanced terminal commands with interactive process control
- Execute code in memory (Python, Node.js, R) without saving files
- Instant data analysis - just ask to analyze CSV/JSON/Excel files
- Native Excel file support - Read, write, edit, and search Excel files (.xlsx, .xls, .xlsm) without external tools
- PDF support - Read PDFs with text extraction, create new PDFs from markdown, modify existing PDFs
- DOCX support - Read, create, edit, and search Word documents (.docx) with surgical XML editing and markdown-to-DOCX conversion
- Interact with running processes (SSH, databases, development servers)
- Execute terminal commands with output streaming
- Command timeout and background execution support
- Process management (list and kill processes)
- Session management for long-running commands
- Process output pagination - Read terminal output with offset/length controls to prevent context overflow
功能特性
- 远程 AI 控制 - 通过远程 MCP,在 ChatGPT、Claude 网页版及其他 AI 服务中使用 Desktop Commander。
- 文件预览界面 - 在 Claude Desktop 中提供可视化文件预览,支持渲染 Markdown、内嵌图片、可折叠内容、内置 Markdown 编辑器以及快速“在文件夹中打开”功能。
- 增强型终端命令 - 支持交互式进程控制。
- 内存中执行代码 (Python, Node.js, R) - 无需保存文件。
- 即时数据分析 - 只需提问即可分析 CSV/JSON/Excel 文件。
- 原生 Excel 支持 - 无需外部工具即可读取、写入、编辑和搜索 Excel 文件 (.xlsx, .xls, .xlsm)。
- PDF 支持 - 读取 PDF 并提取文本,从 Markdown 创建新 PDF,或修改现有 PDF。
- DOCX 支持 - 读取、创建、编辑和搜索 Word 文档 (.docx),支持精细的 XML 编辑及 Markdown 转 DOCX。
- 交互式进程管理 - 与运行中的进程(SSH、数据库、开发服务器)进行交互。
- 终端命令执行 - 支持输出流。
- 命令超时与后台执行支持。
- 进程管理 - 列出并终止进程。
- 会话管理 - 针对长时间运行的命令。
- 进程输出分页 - 通过偏移量/长度控制读取终端输出,防止上下文溢出。
How to install (Install in Claude Desktop)
Desktop Commander offers multiple installation methods for Claude Desktop.
如何安装(在 Claude Desktop 中安装)
Desktop Commander 为 Claude Desktop 提供了多种安装方式。
Option 1: Install through npx (⭐ Auto-Updates)
Just run this in terminal:
npx @wonderwhy-er/desktop-commander@latest setup
选项 1:通过 npx 安装 (⭐ 自动更新)
只需在终端运行:
npx @wonderwhy-er/desktop-commander@latest setup
Option 2: Using bash script installer (macOS) (⭐ Auto-Updates)
curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install.sh | bash
选项 2:使用 bash 脚本安装 (macOS) (⭐ 自动更新)
curl -fsSL https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/refs/heads/main/install.sh | bash