Fixes › Claude Desktop

Claude Desktop on Windows: ENOENT with ${APPDATA} in the path

Claude Desktop

The error

ENOENT … ${APPDATA} … (in Claude's mcp*.log on Windows)

Why it happens

This is a known Windows issue listed in the MCP project's own Claude Desktop troubleshooting (2025-06-18 version of the guide). Some servers started with npx look for files under %APPDATA%, but the variable doesn't get expanded in the environment Claude Desktop gives them, so the path literally contains ${APPDATA}. npx can also keep failing if npm isn't installed globally.

How to fix it

  1. Set APPDATA in the server's env
    Add the expanded path (with your own user name) to the server's env block in claude_desktop_config.json.
    {
      "mcpServers": {
        "brave-search": {
          "command": "npx",
          "args": ["-y", "@brave/brave-search-mcp-server"],
          "env": {
            "APPDATA": "C:\\Users\\you\\AppData\\Roaming\\",
            "BRAVE_API_KEY": "<your-key>"
          }
        }
      }
    }
  2. Make sure npm is installed globally
    If %APPDATA%\npm doesn't exist, install npm globally, then restart Claude Desktop.
    npm install -g npm
  3. Fully quit and restart Claude
    Quit from the system tray, then reopen it, and check %APPDATA%\Claude\logs\mcp*.log again.
    type "%APPDATA%\Claude\logs\mcp*.log"

Related servers

Sources