Desktop Commander MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Desktop Commander MCPsearch for 'FIXME' in the src folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฅ๏ธ Desktop Commander MCP
Portable, general-purpose filesystem + terminal tools for MCP clients
Search files ยท edit documents ยท run commands ยท manage processes ยท inspect the local workspace
English ยท ็ฎไฝไธญๆ
A community-maintained portable adaptation of Desktop Commander MCP.
It is designed for standard stdio-compatible MCP clients and does not depend on any vendor-specific deployment platform.
โจ Highlights
Capability | What it gives your AI client |
๐ Filesystem | Read, write, move, list, search, and inspect files and directories |
๐ Fast search | Recursive content search powered by ripgrep |
๐ป Terminal | Run shell commands, stream output, and handle long-running processes |
โ๏ธ Process control | List, inspect, and terminate processes |
๐ Editing | Targeted text replacement and larger file rewrites |
๐ Documents | Excel, PDF, DOCX, Markdown, text, and binary-aware file handling |
๐งฐ Configuration | Runtime configuration plus a conservative default command blocklist |
๐ Cross-platform | Windows, Linux, and macOS source installs with runtime ripgrep resolution |
Related MCP server: Windows-MCP
๐ Quick start
1. Clone
git clone https://github.com/luffy666code/desktop-commander-mcp.git
cd desktop-commander-mcp2. Install and build
npm install
npm run buildRequirements: Node.js 18+ and npm.
3. Verify the search engine
npm run verify:rg4. Add it to your MCP client
Use the standard stdio configuration pattern:
{
"mcpServers": {
"desktop-commander": {
"command": "node",
"args": ["/absolute/path/to/desktop-commander-mcp/dist/index.js"]
}
}
}Replace the path with the real absolute path on your machine. See Client setup for Windows path examples and Inspector usage.
๐งญ How it works
MCP client
โ
โ stdio / MCP requests
โผ
dist/index.js
โ
โผ
server + tool handlers
โ
โโโ filesystem operations
โโโ terminal / process manager
โโโ document utilities
โโโ search manager
โ
โผ
ripgrepThe ripgrep resolver first checks the platform-correct binary in @vscode/ripgrep, then falls back to the package export, the system PATH, and common installation locations. On Unix-like systems it also verifies executable permission.
๐ Safety defaults
config.json ships with a conservative blocklist for destructive or privilege-escalating commands such as format, mkfs, fdisk, dd, sudo, and user-management commands.
{
"blockedCommands": [
"format", "mount", "umount", "mkfs", "fdisk", "dd",
"sudo", "su", "passwd", "adduser", "useradd", "usermod", "groupadd"
]
}This is a guardrail, not a sandbox. Review SECURITY.md before using command execution against important data or production machines.
๐ ๏ธ Development
# TypeScript watch mode
npm run watch
# Run from TypeScript during development
npm run dev
# Compile
npm run build
# Start compiled server
npm start
# Open MCP Inspector
npm run inspectorProject layout
src/
โโโ index.ts # process entry point
โโโ server.ts # MCP server and tool registration
โโโ handlers/ # request handlers
โโโ tools/ # filesystem, edit, process, PDF and other tools
โโโ search-manager.ts # search orchestration
โโโ terminal-manager.ts # command/session management
โโโ utils/
โโโ ripgrep-resolver.ts # cross-platform ripgrep discovery๐ Portability notes
For normal use, run npm install on the same OS/architecture where the MCP server will run so native dependencies are installed correctly.
The repository also contains an optional Linux x86-64 ripgrep binary under tools/Linux/rg for custom portable packaging workflows. It is not required for ordinary source installs. See tools/README.md.
๐ค Upstream & attribution
This repository is derived from Desktop Commander MCP by Eduard Ruzga and contributors:
Upstream: https://github.com/wonderwhy-er/DesktopCommanderMCP
License: MIT
Portable packaging and ripgrep-resolution adjustments in this fork are maintained separately. Upstream trademarks, services, and release channels are not implied to endorse this fork.
See LICENSE and THIRD_PARTY_NOTICES.md.
๐ License
MIT License. See LICENSE.
Built for developers who want a straightforward, local-first MCP tool server.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to safely perform actions on your computer including file system management, command execution, clipboard access, application launching, and local search with license-based monetization built in.
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with the Windows operating system, performing tasks such as file navigation, application control, UI interaction, and QA testing.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search, update, and manage files, run terminal commands, and automate workflows on a user's computer.38,923MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to turn local projects into persistent workspaces, providing file editing, command execution, Git integration, and cross-session history management.
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Git-backed platform for skills, tools, and context for AI agents
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/luffy666code/desktop_commander'
If you have feedback or need assistance with the MCP directory API, please join our Discord server