Startup · troubleshooting record
MCP stdio server fails with command not found (ENOENT)
The client tried to launch a local MCP server but could not find the executable named in the command field. This is an environment and PATH problem, not a protocol problem: the server process never starts.
Symptoms
- Client reports spawn ENOENT, command not found, or executable does not exist.
- The server shows as failed immediately after the client starts.
- The same command works in a terminal but not from the client.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
The executable is not installed or is not on the client's PATH
stdio MCP servers are launched as child processes; a missing binary produces ENOENT before any MCP message is sent.
The client was launched from a GUI environment with a different PATH than the shell
Desktop apps on macOS and Windows may inherit a minimal environment and not the shell profile PATH.
The command field uses a shell built-in or an alias
Child-process launch does not expand interactive shell aliases; npx and uvx may also be shell wrappers.
Possible causes
- A typo in the package or executable name.
- Node.js, uv, or Python is installed with a version manager that is not visible to the GUI app.
- The package requires installation rather than npx or uvx on first run.
- A Windows path with spaces is not quoted correctly in the args array.
What still needs verification
- The absolute path to the executable as seen by the client environment.
- Whether the client expands environment variables in the command field (many do not).
- The install command and package name from the server's official README.
Affected environments
Fixes
Use an absolute executable path
- Find the binary with `which npx` (macOS/Linux) or `where npx` (Windows) in the same environment.
- Put the absolute path in command, or use a wrapper script that sets PATH.
- Keep args as separate array entries.
Make the runtime visible to the client
- Install the runtime system-wide or add its bin directory to the GUI app's environment.
- Restart the client completely after changing PATH.
- For npx-based servers, test `npx -y <package>` in a terminal first.
Verify the fix
- The exact command launches successfully outside the client.
- The client no longer reports ENOENT.
- The server responds to initialize and lists at least one tool.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- nodejs.org/api/errors.htmlOfficial documentation · checked Oct 23, 2026 · documented
Node.js documents ENOENT as a filesystem or executable lookup failure.
- github.com/modelcontextprotocol/serversRepository · checked Oct 23, 2026 · documented
Reference server README files document npx/uvx launch commands for local stdio servers.