Desktop Commander
Terminal commands, file operations, and process control for local machines, exposed as MCP tools.
- CCM score
- 86 of 100
- GitHub stars
- 10.5K
- tools
- 26
- transport
- STDIO
- last updated
- Nov 18, 2026
Own this MCP server? Claim it
What it does
- Reads and edits files with
read_file,read_multiple_files,write_file,edit_block, andwrite_pdf, plus Excel, PDF, and DOCX support - Runs commands and manages processes with
start_process,interact_with_process,list_processes, andkill_process, with blocked-command guardrails - Searches files and contents through
start_search,get_more_search_results, andstop_search, with pagination for large results - Runs locally over stdio on the host machine, so access is limited to allowed directories and no API key is needed
- Designed for coding, data analysis on local CSV, JSON, and Excel files, and automation of routine desktop tasks
Install
$ npx -y add-mcp @wonderwhy-er/desktop-commander --name desktop-commander -yAdds the server to every agent config it finds in this project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commanderRun in your terminal. Replace YOUR_* placeholders with real values; add --scope user to install for every project.
Tools
Verified live · 26 toolsVerified live against the running server on Jun 10, 2026.
get_configGet the complete server configuration as JSON. Config includes fields for: - blockedCommands (array of blocked shell commands) - defaultShell (shell to use for commands) - allowedDirectories (paths the server can access) - fileReadLineLimit (max lines for read_file, default 10...
Get the complete server configuration as JSON. Config includes fields for: - blockedCommands (array of blocked shell commands) - defaultShell (shell to use for commands) - allowedDirectories (paths the server can access) - fileReadLineLimit (max lines for read_file, default 10...
No parameters. Call it with no arguments.
set_config_valueSet a specific configuration value by key. WARNING: Should be used in a separate chat from file operations and command execution to prevent security issues. Config keys include: - blockedCommands (array) - defaultShell (string) - allowedDirectories (array of paths) - fileReadL...3 params
Set a specific configuration value by key. WARNING: Should be used in a separate chat from file operations and command execution to prevent security issues. Config keys include: - blockedCommands (array) - defaultShell (string) - allowedDirectories (array of paths) - fileReadL...
key*stringoriginstringui · llmvalue*valueread_fileRead contents from files and URLs. Read PDF files and extract content as markdown and images. Prefer this over 'execute_command' with cat/type for viewing files. Supports partial file reading with: - 'offset' (start line, default: 0) * Positive: Start from line N (0-based inde...7 params
Read contents from files and URLs. Read PDF files and extract content as markdown and images. Prefer this over 'execute_command' with cat/type for viewing files. Supports partial file reading with: - 'offset' (start line, default: 0) * Positive: Start from line N (0-based inde...
isUrlbooleanlengthnumberoffsetnumberoptionsobjectpath*stringrangestringsheetstringread_multiple_filesRead the contents of multiple files simultaneously. Each file's content is returned with its path as a reference. Handles text files normally and renders images as viewable content. Recognized image types: PNG, JPEG, GIF, WebP. Failed reads for individual files won't stop the...1 params
Read the contents of multiple files simultaneously. Each file's content is returned with its path as a reference. Handles text files normally and renders images as viewable content. Recognized image types: PNG, JPEG, GIF, WebP. Failed reads for individual files won't stop the...
paths*arraywrite_fileWrite or append to file contents. IMPORTANT: DO NOT use this tool to create PDF files. Use 'write_pdf' for all PDF creation tasks. DO NOT use this tool to edit DOCX files. Use 'edit_block' with old_string/new_string instead. To CREATE a new DOCX, use write_file with .docx exte...3 params
Write or append to file contents. IMPORTANT: DO NOT use this tool to create PDF files. Use 'write_pdf' for all PDF creation tasks. DO NOT use this tool to edit DOCX files. Use 'edit_block' with old_string/new_string instead. To CREATE a new DOCX, use write_file with .docx exte...
content*stringmodestringrewrite · appenddefault: rewritepath*stringwrite_pdfCreate a new PDF file or modify an existing one. THIS IS THE ONLY TOOL FOR CREATING AND MODIFYING PDF FILES. RULES ABOUT FILENAMES: - When creating a new PDF, 'outputPath' MUST be provided and MUST use a new unique filename (e.g., "result_01.pdf", "analysis_2025_01.pdf", etc.)...4 params
Create a new PDF file or modify an existing one. THIS IS THE ONLY TOOL FOR CREATING AND MODIFYING PDF FILES. RULES ABOUT FILENAMES: - When creating a new PDF, 'outputPath' MUST be provided and MUST use a new unique filename (e.g., "result_01.pdf", "analysis_2025_01.pdf", etc.)...
content*valueoptionsobjectoutputPathstringpath*stringcreate_directoryCreate a new directory or ensure a directory exists. Can create multiple nested directories in one operation. Only works within allowed directories. IMPORTANT: Always use absolute paths for reliability. Paths are automatically normalized regardless of slash direction. Relative...1 params
Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. Only works within allowed directories. IMPORTANT: Always use absolute paths for reliability. Paths are automatically normalized regardless of slash direction. Relative...
path*stringlist_directoryGet a detailed listing of all files and directories in a specified path. Use this instead of 'execute_command' with ls/dir commands. Results distinguish between files and directories with [FILE] and [DIR] prefixes. Supports recursive listing with the 'depth' parameter (default...2 params
Get a detailed listing of all files and directories in a specified path. Use this instead of 'execute_command' with ls/dir commands. Results distinguish between files and directories with [FILE] and [DIR] prefixes. Supports recursive listing with the 'depth' parameter (default...
depthnumberpath*stringmove_fileMove or rename files and directories. Can move files between directories and rename them in a single operation. Both source and destination must be within allowed directories. IMPORTANT: Always use absolute paths for reliability. Paths are automatically normalized regardless o...2 params
Move or rename files and directories. Can move files between directories and rename them in a single operation. Both source and destination must be within allowed directories. IMPORTANT: Always use absolute paths for reliability. Paths are automatically normalized regardless o...
destination*stringsource*stringstart_searchStart a streaming search that can return results progressively. SEARCH STRATEGY GUIDE: Choose the right search type based on what the user is looking for: USE searchType="files" WHEN: - User asks for specific files: "find package.json", "locate config files" - Pattern looks li...11 params
Start a streaming search that can return results progressively. SEARCH STRATEGY GUIDE: Choose the right search type based on what the user is looking for: USE searchType="files" WHEN: - User asks for specific files: "find package.json", "locate config files" - Pattern looks li...
contextLinesnumberearlyTerminationbooleanfilePatternstringignoreCasebooleanincludeHiddenbooleanliteralSearchbooleanmaxResultsnumberpath*stringpattern*stringsearchTypestringfiles · contentdefault: filestimeout_msnumberget_more_search_resultsGet more results from an active search with offset-based pagination. Supports partial result reading with: - 'offset' (start result index, default: 0) * Positive: Start from result N (0-based indexing) * Negative: Read last N results from end (tail behavior) - 'length' (max re...3 params
Get more results from an active search with offset-based pagination. Supports partial result reading with: - 'offset' (start result index, default: 0) * Positive: Start from result N (0-based indexing) * Negative: Read last N results from end (tail behavior) - 'length' (max re...
lengthnumberoffsetnumbersessionId*stringstop_searchStop an active search. Stops the background search process gracefully. Use this when you've found what you need or if a search is taking too long. Similar to force_terminate for terminal processes. The search will still be available for reading final results until it's automat...1 params
Stop an active search. Stops the background search process gracefully. Use this when you've found what you need or if a search is taking too long. Similar to force_terminate for terminal processes. The search will still be available for reading final results until it's automat...
sessionId*stringlist_searchesList all active searches. Shows search IDs, search types, patterns, status, and runtime. Similar to list_sessions for terminal processes. Useful for managing multiple concurrent searches. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your ins...
List all active searches. Shows search IDs, search types, patterns, status, and runtime. Similar to list_sessions for terminal processes. Useful for managing multiple concurrent searches. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your ins...
No parameters. Call it with no arguments.
get_file_infoRetrieve detailed metadata about a file or directory including: - size - creation time - last modified time - permissions - type - lineCount (for text files) - lastLine (zero-indexed number of last line, for text files) - appendPosition (line number for appending, for text fil...1 params
Retrieve detailed metadata about a file or directory including: - size - creation time - last modified time - permissions - type - lineCount (for text files) - lastLine (zero-indexed number of last line, for text files) - appendPosition (line number for appending, for text fil...
path*stringedit_blockApply surgical edits to files. BEST PRACTICE: Make multiple small, focused edits rather than one large edit. Each edit_block call should change only what needs to be changed - include just enough context to uniquely identify the text being modified. FORMAT HANDLING (by extensi...7 params
Apply surgical edits to files. BEST PRACTICE: Make multiple small, focused edits rather than one large edit. Each edit_block call should change only what needs to be changed - include just enough context to uniquely identify the text being modified. FORMAT HANDLING (by extensi...
contentvalueexpected_replacementsnumberfile_path*stringnew_stringstringold_stringstringoptionsobjectrangestringstart_processStart a new terminal process with intelligent state detection. PRIMARY TOOL FOR FILE ANALYSIS AND DATA PROCESSING This is the ONLY correct tool for analyzing local files (CSV, JSON, logs, etc.). The analysis tool CANNOT access local files and WILL FAIL - always use processes f...4 params
Start a new terminal process with intelligent state detection. PRIMARY TOOL FOR FILE ANALYSIS AND DATA PROCESSING This is the ONLY correct tool for analyzing local files (CSV, JSON, logs, etc.). The analysis tool CANNOT access local files and WILL FAIL - always use processes f...
command*stringshellstringtimeout_ms*numberverbose_timingbooleanread_process_outputRead output from a running process with file-like pagination support. Supports partial output reading with offset and length parameters (like read_file): - 'offset' (start line, default: 0) * offset=0: Read NEW output since last read (default, like old behavior) * Positive: Re...5 params
Read output from a running process with file-like pagination support. Supports partial output reading with offset and length parameters (like read_file): - 'offset' (start line, default: 0) * offset=0: Read NEW output since last read (default, like old behavior) * Positive: Re...
lengthnumberoffsetnumberpid*numbertimeout_msnumberverbose_timingbooleaninteract_with_processSend input to a running process and automatically receive the response. CRITICAL: THIS IS THE PRIMARY TOOL FOR ALL LOCAL FILE ANALYSIS For ANY local file analysis (CSV, JSON, data processing), ALWAYS use this instead of the analysis tool. The analysis tool CANNOT access local...5 params
Send input to a running process and automatically receive the response. CRITICAL: THIS IS THE PRIMARY TOOL FOR ALL LOCAL FILE ANALYSIS For ANY local file analysis (CSV, JSON, data processing), ALWAYS use this instead of the analysis tool. The analysis tool CANNOT access local...
input*stringpid*numbertimeout_msnumberverbose_timingbooleanwait_for_promptbooleanforce_terminateForce terminate a running terminal session. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.1 params
Force terminate a running terminal session. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.
pid*numberlist_sessionsList all active terminal sessions. Shows session status including: - PID: Process identifier - Blocked: Whether session is waiting for input - Runtime: How long the session has been running DEBUGGING REPLs: - "Blocked: true" often means REPL is waiting for input - Use this to...
List all active terminal sessions. Shows session status including: - PID: Process identifier - Blocked: Whether session is waiting for input - Runtime: How long the session has been running DEBUGGING REPLs: - "Blocked: true" often means REPL is waiting for input - Use this to...
No parameters. Call it with no arguments.
list_processesList all running processes. Returns process information including PID, command name, CPU usage, and memory usage. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.
List all running processes. Returns process information including PID, command name, CPU usage, and memory usage. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.
No parameters. Call it with no arguments.
kill_processTerminate a running process by PID. Use with caution as this will forcefully terminate the specified process. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.1 params
Terminate a running process by PID. Use with caution as this will forcefully terminate the specified process. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.
pid*numberget_usage_statsGet usage statistics for debugging and analysis. Returns summary of tool usage, success/failure rates, and performance metrics. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.
Get usage statistics for debugging and analysis. Returns summary of tool usage, success/failure rates, and performance metrics. This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.
No parameters. Call it with no arguments.
get_recent_tool_callsGet recent tool call history with their arguments and outputs. Returns chronological list of tool calls made during this session. Useful for: - Onboarding new chats about work already done - Recovering context after chat history loss - Debugging tool call sequences Note: Does...3 params
Get recent tool call history with their arguments and outputs. Returns chronological list of tool calls made during this session. Useful for: - Onboarding new chats about work already done - Recovering context after chat history loss - Debugging tool call sequences Note: Does...
maxResultsnumbersincestringtoolNamestringgive_feedback_to_desktop_commanderOpen feedback form in browser to provide feedback about Desktop Commander. IMPORTANT: This tool simply opens the feedback form - no pre-filling available. The user will fill out the form manually in their browser. WORKFLOW: 1. When user agrees to give feedback, just call this...
Open feedback form in browser to provide feedback about Desktop Commander. IMPORTANT: This tool simply opens the feedback form - no pre-filling available. The user will fill out the form manually in their browser. WORKFLOW: 1. When user agrees to give feedback, just call this...
No parameters. Call it with no arguments.
get_promptsRetrieve a specific Desktop Commander onboarding prompt by ID and execute it. SIMPLIFIED ONBOARDING V2: This tool only supports direct prompt retrieval. The onboarding system presents 5 options as a simple numbered list: 1. Organize my Downloads folder (promptId: 'onb2_01') 2....2 params
Retrieve a specific Desktop Commander onboarding prompt by ID and execute it. SIMPLIFIED ONBOARDING V2: This tool only supports direct prompt retrieval. The onboarding system presents 5 options as a simple numbered list: 1. Organize my Downloads folder (promptId: 'onb2_01') 2....
action*stringget_promptpromptId*stringReadme
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.
Details
- Repository
- github.com/wonderwhy-er/desktopcommandermcp
- Categories
- Developer Tools, Workflow Automation
- Package
@wonderwhy-er/desktop-commander- Transport
- STDIO
- Registry
- MCP registry, active
- Resources
- 2
- Tools verified
- Jun 10, 2026
Questions
What can the Desktop Commander MCP server let an agent do?
Desktop Commander lets an agent run terminal commands, read and write files, and manage running processes on your computer. Its README also covers searching files, editing code with surgical replacements, and reading PDF and Excel files.
How do I install the Desktop Commander MCP server in Claude Code?
Run this command in a terminal: claude mcp add desktop-commander -- npx -y @wonderwhy-er/desktop-commander. Once it is added, the agent can use its terminal, file and process tools on your machine.
Which Developer Tools MCP servers lead the Desktop Commander category?
Desktop Commander ranks in the top 25 of the Developer Tools category on Claude Marketplaces. Other servers listed alongside it include Front-End Checklist, Context7, Chrome DevTools MCP, Codebase Memory and Mcp Server Filesystem.
What tools does Desktop Commander expose to the agent?
The server lists 26 tools, including read_file, write_file, edit_block, start_process, interact_with_process, list_processes and kill_process. It also offers search tools and configuration tools such as get_config and set_config_value.
Can Desktop Commander block dangerous shell commands?
Yes, its configuration includes a blockedCommands list that prevents specified shell commands from running. Its README also notes it is not a sandbox, so review the security policy before relying on it.
Similar to Desktop Commander
More Developer Toolsdesktop-commanderPluginwonderwhy-er/DesktopCommanderMCP10.4K starsMCP server for terminal shell commands, process management, and file operations across text, coding, PDF, DOCX, Excel, images, and structured data
Filesystem MCPMCP serverj0hanz36 starsSecure file access for AI assistants across chosen folders, with exact-match edits and undo.
FilesystemMCP servermark3labs699 starsRead, write, and search access to local directories on the host filesystem.
Windows-MCPMCP servercursortouch12.3K starsOpen-source MCP server giving AI agents control of Windows desktops, apps, files, and the registry.
mcp-cliSkillgithub/awesome-copilot9.7K installsCommand-line interface for browsing and calling MCP server tools with schema inspection and search.