Claude Desktop on Windows: ENOENT with ${APPDATA} in the path
The error
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
- Set APPDATA in the server's env
Add the expanded path (with your own user name) to the server'senvblock inclaude_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>" } } } } - Make sure npm is installed globally
If%APPDATA%\npmdoesn't exist, install npm globally, then restart Claude Desktop.npm install -g npm - Fully quit and restart Claude
Quit from the system tray, then reopen it, and check%APPDATA%\Claude\logs\mcp*.logagain.type "%APPDATA%\Claude\logs\mcp*.log"
Related servers
Brave Search
An MCP server that integrates the Brave Search API: web, local business, image, video and news search, plus AI summarization. Supports STDIO and HTTP
Filesystem
Official reference server for reading, writing, searching and moving files, limited to the directories you allow. Version 2.4.1 (Nov 27, 2026, referen
GitHub
GitHub's official MCP server for repositories, issues, pull requests, Actions and more (local Docker image or the hosted api.githubcopilot.com/mcp/ en