Skip to main content

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:
Standard Path: %APPDATA%\Claude\claude_desktop_config.jsonFull Path: C:\Users\[YourUsername]\AppData\Roaming\Claude\claude_desktop_config.jsonHow to access:
  1. Press Win + R
  2. Type %APPDATA%\Claude and press Enter
  3. Look for claude_desktop_config.json
If file doesn’t exist: Run Claude Desktop once to create it

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 2: Global Installation

If you prefer a global installation: First, install globally:
Then configure:

Method 3: Local Installation with Custom Path

For local project-specific installations:
Configuration:

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:
  1. Use a JSON validator (online tools available)
  2. Check brackets and commas - every { needs a }
  3. Verify quotes - all strings must be in double quotes
  4. No trailing commas - JSON doesn’t allow trailing commas

Common JSON Errors

Configuration Testing

Test your configuration with a JSON validator: Command Line (if jq is installed):
Online Validators: Search for “JSON validator” and paste your configuration

Step 6: Test Installation

1

Save Configuration

Save your claude_desktop_config.json file with the new Desktop Commander configuration
2

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

Check these common issues:
  1. Configuration file syntax: Validate JSON with a validator
  2. File location: Ensure config is in correct Claude directory
  3. Node.js path: Verify npx command works in terminal
  4. Case sensitivity: Check exact spelling of “desktop-commander”
  5. Claude restart: Completely restart Claude Desktop
Possible causes:
  1. Node.js permissions: NPX may need to download packages
  2. File permissions: Check Claude config directory permissions
  3. Firewall/antivirus: Some security software blocks NPX
  4. Corporate networks: Proxy settings may interfere with NPM
Debugging steps:
  1. Check logs: Look for error messages in Claude Desktop
  2. Test Node.js: Run npx @wonderwhy-er/desktop-commander --version in terminal
  3. Environment variables: Check if custom env vars are correct
  4. Path issues: Verify all paths in configuration exist
Prevention strategies:
  1. Backup configuration: Keep a copy of your config file
  2. File permissions: Make config file read-only if needed
  3. Version control: Track changes with git
  4. 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:
Configuration:

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