Skip to content

WSL MCP Configuration #10

Description

@mdiener87

Hello! I saw your YouTube video on this project, and thought it was super cool! My personal dev system is Windows 11 running WSL, which has unique challenges for this type of application. I run Claude in Windows Desktop, but Node I run in WSL terminal. The provided/example MCP server configuration did not work for this scenario. After some troubleshooting, I've come up with this configuration instead:

~\AppData\Roaming\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "desktop-commander": {
      "command": "wsl",
      "args": [
        "bash",
        "-ic",
        "npx -y @wonderwhy-er/desktop-commander"
      ]
    }
  }
}

This allows Claude to connect to WSL, load bash in interactive mode, and execute the MCP server. With this configuration, everything else worked out of the box! I'm excited to play with this further, thanks! I hope this configuration helps other people use this project on a split Windows/WSL setup like I'm running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions