Manual Installation
For advanced users who want complete control over the installation process, this guide provides step-by-step manual configuration of Desktop Commander.When to Use Manual Installation
Full Control
Complete control over every aspect of the installation and configuration
Custom Setups
Non-standard installations, custom paths, or specialized environments
Troubleshooting
Diagnose and fix issues with automatic installation methods
Learning
Understand exactly how Desktop Commander integrates with Claude Desktop
Prerequisites
Before starting manual installation:- Claude Desktop installed and configured
- Claude Pro or Max subscription
- Node.js v18.18.0+ installed and working
- Text editor for editing JSON configuration files
- Terminal/Command Prompt access
Step 1: Locate Claude Desktop Configuration
Find your Claude Desktop configuration file:- Windows
- Mac
- Linux
Standard Path:
%APPDATA%\Claude\claude_desktop_config.jsonFull Path: C:\Users\[YourUsername]\AppData\Roaming\Claude\claude_desktop_config.jsonHow to access:- Press
Win + R - Type
%APPDATA%\Claudeand press Enter - Look for
claude_desktop_config.json
Step 2: Understand Configuration Structure
The Claude Desktop configuration file uses this structure:Example Empty Configuration
If your file is empty or doesn’t exist, start with:Example with Existing Servers
If you already have other MCP servers:Step 3: Add Desktop Commander Configuration
Add Desktop Commander to your configuration file:Method 1: NPX Configuration (Recommended)
Method 2: Global Installation
If you prefer a global installation: First, install globally:Method 3: Local Installation with Custom Path
For local project-specific installations:Step 4: Advanced Configuration Options
Environment Variables
Add custom environment variables:Custom Arguments
Pass custom arguments to Desktop Commander:Security Configuration
Configure security settings through environment:Step 5: Validate Configuration
JSON Syntax Validation
Ensure your JSON is valid:- Use a JSON validator (online tools available)
- Check brackets and commas - every
{needs a} - Verify quotes - all strings must be in double quotes
- No trailing commas - JSON doesn’t allow trailing commas
Common JSON Errors
Configuration Testing
Test your configuration with a JSON validator: Command Line (ifjq is installed):
Step 6: Test Installation
1
Save Configuration
Save your
claude_desktop_config.json file with the new Desktop Commander configuration2
Close Claude Desktop
Completely close Claude Desktop (check system tray/menu bar)
3
Restart Claude Desktop
Open Claude Desktop fresh
4
Test Basic Functionality
Try a simple command:
If Claude shows file listings, your manual installation was successful!
Step 7: Configure Security Settings
After successful installation, configure security settings:Using Claude Commands
Ask Claude to configure security settings:Manual Security Configuration
Create a Desktop Commander config file in your user directory: Location:~/.desktop-commander/config.json (or %USERPROFILE%\.desktop-commander\config.json on Windows)
Troubleshooting Manual Installation
Claude doesn't recognize Desktop Commander
Claude doesn't recognize Desktop Commander
Check these common issues:
- Configuration file syntax: Validate JSON with a validator
- File location: Ensure config is in correct Claude directory
- Node.js path: Verify
npxcommand works in terminal - Case sensitivity: Check exact spelling of “desktop-commander”
- Claude restart: Completely restart Claude Desktop
Permission errors during startup
Permission errors during startup
Possible causes:
- Node.js permissions: NPX may need to download packages
- File permissions: Check Claude config directory permissions
- Firewall/antivirus: Some security software blocks NPX
- Corporate networks: Proxy settings may interfere with NPM
Desktop Commander starts but doesn't work
Desktop Commander starts but doesn't work
Debugging steps:
- Check logs: Look for error messages in Claude Desktop
- Test Node.js: Run
npx @wonderwhy-er/desktop-commander --versionin terminal - Environment variables: Check if custom env vars are correct
- Path issues: Verify all paths in configuration exist
Configuration file gets overwritten
Configuration file gets overwritten
Prevention strategies:
- Backup configuration: Keep a copy of your config file
- File permissions: Make config file read-only if needed
- Version control: Track changes with git
- Documentation: Document your custom settings
Advanced Manual Setup
Multiple Desktop Commander Instances
Run multiple instances with different configurations:Custom Installation Path
Install Desktop Commander to a specific location:Development Mode Configuration
For development and debugging:Maintenance and Updates
Manual Updates
Update Desktop Commander manually:Configuration Backup
Keep backups of your configuration:Version Pinning
Pin to a specific version for stability:Next Steps
Security Configuration
Fine-tune security settings for your manual installation
Advanced Usage
Explore advanced development workflows
Troubleshooting
Get help with configuration issues
Community
Share your manual setup experience with others
