npx can fail the same way when it cannot write to its cache, and the MCP client then never starts the server.
Environment and tested versions
Debian GNU/Linux 13 (trixie) x86_64, Node v24.22.1, npm 11.21.1. The global prefix on this box is already a user directory (/home/box/.local). The EACCES case was reproduced with a temporary unwritable prefix, not by changing the live install.
Root cause
A global install writes under npm's prefix (npm prefix -g), often /usr/local. If that folder is not writable by your user, mkdir fails with EACCES. This often follows an earlier install of Node from a system package, or an earlier sudo npm run that left root-owned files. npm may suggest running the command as root. Do not use sudo npm install -g: later installs and npx then fail for your user, and the files are owned by root.
Fix steps
Prefer a node version manager such as nvm, fnm, or Volta, so Node and npm live in your home directory. The official npm docs call this the best way to avoid EACCES.
Or point npm at a prefix you own (this is the official alternative; it does not apply to Windows):
mkdir -p ~/.local
npm config set prefix ~/.local
Add ~/.local/bin to PATH (for example in ~/.profile), then open a new terminal and check with npm prefix -g.
If a desktop MCP client still cannot start the server, set command to the absolute npx path, and put the prefix's bin directory on env.PATH.
If only npx fails, check that the npm cache (usually ~/.npm) is writable by your user. Point the cache at a folder you own if needed: npm config set cache ~/.npm. Use sudo chown only to repair a home-directory cache that an earlier sudo npm left owned by root, never to run npm itself.