MCP server crashes because the client uses an old Node version
The error
Why it happens
With nvm installed, a GUI app may pick up an old system Node (e.g. v16) instead of your nvm default. Modern MCP servers need Node 18+ and often 20+ (Playwright MCP requires Node 20 or newer since version 0.0.86, released November 18, 2026). The official reference servers (Filesystem, Memory, Sequential Thinking and Everything) need Node 24 or newer since version 2.0.0, released October 19, 2026, and their maintainers now ask for Node 24.22.1 or 26.12.1 or later because of the October 2026 Node security releases.
How to fix it
- Check which Node the client sees
Temporarily set command tonodewith args["-v"]and read the log, or compare/usr/local/bin/node -vwithnode -v. - Point at a modern Node directly
Use the absolute npx path from your nvm version and put its bin folder first in PATH.{ "command": "/Users/you/.nvm/versions/node/v24.22.1/bin/npx", "args": ["-y", "@upstash/context7-mcp"], "env": { "PATH": "/Users/you/.nvm/versions/node/v24.22.1/bin:/usr/bin:/bin" } } - Or upgrade the system Node
Install a current LTS from nodejs.org so every app gets it. For the official reference servers, that means Node 24.22.1 or 26.12.1 or later. npm will not warn you about an older Node 24, so check withnode --version.
Related servers
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
Memory (Knowledge Graph)
Official reference server that gives the model persistent memory as a local knowledge graph (entities, relations and observations stored in a file). V
Context7
Upstash Context7: up-to-date library documentation for AI coding agents (local @upstash/context7-mcp or hosted mcp.context7.com/mcp). Version 4.9.0 (N
Playwright (Microsoft)
Microsoft's official Playwright MCP server: lets your AI assistant drive a real browser using the page's accessibility tree instead of screenshots. Ve
Sources
- https://github.com/nvm-sh/nvm
- https://modelcontextprotocol.io/docs/develop/connect-local-servers
- https://github.com/modelcontextprotocol/servers/releases/tag/v2.0.0
- https://github.com/modelcontextprotocol/servers/releases/tag/v2.2.0
- https://github.com/modelcontextprotocol/servers/releases/tag/v2.3.0
- https://github.com/microsoft/playwright-mcp/releases/tag/v0.0.86
- crash: Cannot find package 'zod' imported from ~/.nvm/versions/node/v22.22.0/lib/node_modules/monomind/packages/@monomind/cli/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.js (GitHub issue, 1 comments)
- MCP server fails with node version managers (fnm, nvm, volta) (GitHub issue, 1 comments)