A quick video showcasing how I solved the npx
command issue with MCP servers.
on Windows.
npx.bat
:
@echo off
set PATH=[your/node/executable/path];%PATH%
npx %*
For macOS, see this comment.
A quick video showcasing how I solved the npx
command issue with MCP servers.
on Windows.
npx.bat
:
@echo off
set PATH=[your/node/executable/path];%PATH%
npx %*
For macOS, see this comment.
Very useful, I searched for a solution all afternoon and finally solved it. I would like to register an account specifically to express my gratitude!
After 30 minutes to find out
After checking, I found that Node.js does not come with NVM by default (not 100% sure, but I couldn’t find it). So I downloaded NVM, and the default path is:
C:\Users\<yourusername>\AppData\Local\nvm\<version>
→ This is the default Node.js path when using NVM.
After setting it up, you need to restart Cursor and enjoy MCP. I hadn’t been able to use MCP for almost a year (I thought it was a bug from Cursor ), until my PC was finally able to run all MCP features. That’s when I realized the issue was with my system’s PATH.
Anyway, thank you very much!