Skip to main content

NPX Installation

Install Desktop Commander directly using NPX for users who want more control over the installation process or prefer not to use Smithery.

When to Use NPX Installation

Direct Control

Full control over the installation process and configuration

Latest Version

Always gets the most current version directly from npm registry

Interactive Setup

Guided setup wizard walks you through configuration options

Custom Configuration

Ability to customize installation parameters and settings

Prerequisites

Before installing, ensure you have:
  • Claude Desktop installed from claude.ai/download
  • Claude Pro or Max subscription (required for Desktop Commander)
  • Node.js v18.18.0+ from nodejs.org

Installation Command

1

Open Terminal/Command Prompt

Windows: Press Win + R, type cmd, press EnterMac: Press Cmd + Space, type β€œTerminal”, press EnterLinux: Open your terminal application
2

Run NPX Install Command

This downloads and runs the latest setup wizard
3

Follow Interactive Setup

The setup wizard will guide you through:
  • Configuration file detection
  • Security settings selection
  • Installation confirmation
  • Initial configuration
4

Restart Claude Desktop

Close Claude Desktop completely and reopen it

Interactive Setup Process

The NPX setup wizard provides guided installation:

Step 1: Configuration Detection

Step 2: Installation Options

Step 3: Security Configuration

Step 4: Installation Confirmation

Step 5: Completion

Manual Configuration Alternative

If you prefer to configure manually after installation:
1

Install Without Setup

2

Add to Claude Configuration

Edit your claude_desktop_config.json file and add:
3

Restart Claude Desktop

Close and reopen Claude Desktop

Configuration File Locations

NPX setup automatically detects your Claude configuration:
Standard Location: %APPDATA%\Claude\claude_desktop_config.jsonFull Path Example: C:\Users\YourName\AppData\Roaming\Claude\claude_desktop_config.jsonAlternative Locations:
  • %USERPROFILE%\.claude\claude_desktop_config.json
  • Custom installation directories

Automatic Updates

NPX installations automatically update when you restart Claude Desktop:

How Auto-Updates Work

  • Each Claude restart checks for new versions
  • Updates happen automatically in the background
  • No manual update commands needed
  • Always runs the latest stable version

Controlling Updates

If you want to pin a specific version:

Verification

Test your NPX installation:
1

Basic File Access Test

2

Advanced Functionality Test

3

Process Execution Test

If all tests pass, your NPX installation is working correctly!

NPX vs Other Installation Methods

Troubleshooting NPX Installation

NPX is included with Node.js. If not available:
  1. Verify Node.js installation: node --version
  2. Reinstall Node.js from nodejs.org
  3. Restart terminal after installation
  4. Check PATH environment variable includes Node.js
  1. Ensure Claude Desktop has been run at least once
  2. Check if Claude is installed in a custom location
  3. Run setup with debug flag: --debug
  4. Manually specify config path: --config-path="/path/to/config"
  1. Don’t use sudo with NPX/NPM commands
  2. Check file permissions on Claude config directory
  3. Run terminal as administrator (Windows only)
  4. Use npx --yes to skip permission prompts
  1. Check internet connection and proxy settings
  2. Configure NPM registry: npm config set registry https://registry.npmjs.org/
  3. Clear NPM cache: npm cache clean --force
  4. Try using a different network or VPN

Advanced NPX Options

Debug Mode

Get detailed installation information:

Custom Config Path

Specify a custom Claude configuration location:

Skip Interactive Prompts

Use default settings for automated installations:

Security-First Installation

Install with maximum security restrictions:

Next Steps

Configure Security

Customize your security settings and permissions

Quick Start Guide

Learn basic usage with practical examples

Use Cases

Discover what you can accomplish with Desktop Commander

Troubleshooting

Get help with installation issues