Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / MCP server unable to start
Fix · MCP

VS Code: MCP server was unable to start successfully

This message comes from VS Code's chat (it's in VS Code's own source), and it only says the server failed. First step: open the server's output: in the MCP Servers view, the server's … menu, Show Output (or run MCP: List Servers, pick it, Show Output). The real error is there, often spawn node ENOENT or spawn npx ENOENT.

Match the output to a fix

Output showsFix
spawn npx ENOENT / spawn node ENOENTThe command isn't on VS Code's PATH: full path or cmd /c
A stack trace, then the process exitsThe server crashes: run its command in a terminal and fix that first
Nothing; startup is blockedTrust: review the server config and Workspace Trust
HTTP or connection errorsRemote server: check the URL and network access
Server not allowedManaged setup: ask your admin to check the MCP allowlist

What VS Code's docs say to check

  • stdio servers: "Check the command, arguments, runtime installation, and PATH in the execution environment. A command available locally might be missing remotely." That last part matters in Remote SSH, WSL and dev containers: the server runs on the remote side, where Node or uv may not be installed.
  • Trust: "Startup is blocked by trust. Review the server configuration and Workspace Trust."
  • Docker servers: "Don't use detached mode (-d), because the client needs the stdio connection."
  • HTTP servers: "Check the endpoint and network access."
  • After any fix: "restart the server and retry a request that needs its tools."

macOS: works in the terminal, fails in VS Code

VS Code's FAQ: when VS Code is launched from the dock rather than a terminal, "you don't have access to those environment settings" from your shell profile. VS Code tries to resolve your shell environment at startup (setting application.shellEnvironmentResolutionTimeout, default 10 seconds). If nvm or Homebrew paths still aren't found, use the full path to the command, or start VS Code from a terminal with code ..

Several servers failing at once

VS Code shows "Multiple MCP servers were unable to start successfully" with the list. Check each one's output separately: one missing runtime (Node, uv) usually breaks every server that uses it.

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

Which app shows MCP server was unable to start successfully?

VS Code. The text is in VS Code's chat MCP code (mcpCommands.ts). It only says the server failed; the reason is in the server's output.

How do I see why an MCP server failed in VS Code?

Open the MCP Servers view, choose the server's ... menu, then Show Output. Or run MCP: List Servers from the Command Palette, pick the server and choose Show Output.

Why does my MCP server work in the terminal but not in VS Code?

Often PATH: VS Code started from the dock or Start menu may not see nvm, Homebrew or uv paths from your shell profile. Use the command's full path. In Remote SSH, WSL or containers, the runtime must be installed on the remote side.

Can I run an MCP server in Docker with -d?

No. VS Code's docs say not to use detached mode, because the client needs the stdio connection.

Related errors

Sources

Read 2 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools