Hi all,
The @shopify/dev-mcp MCP server has stopped working in Cursor IDE. It was running fine previously with the exact same configuration, but now it fails on every startup attempt with:
sh: shopify-dev-mcp: command not found
The confusing part: running the exact same command manually in my terminal works perfectly:
$ npx -y @shopify/dev-mcp@latest
Shopify Dev MCP Server v1.7.1 running on stdio
So the package is valid, the binary shopify-dev-mcp exists in the package, and npx resolves it fine, just not when Cursor spawns the MCP process.
Full MCP output log (repeats on every retry):
[info] Starting new stdio process with command: npx -y @shopify/dev-mcp@latest
[error] sh: shopify-dev-mcp: command not found
[info] Client closed for command
[warning] [V1] initializing -> error: Client closed
Environment:
-
macOS 15.7.4 (Apple Silicon / arm64)
-
Cursor 2.6.20
-
Node v22.16.0 (via nvm 0.39.5)
-
npm / npx 10.9.2
-
@shopify/dev-mcpv1.7.1
What I’ve observed:
-
The error comes from
sh(notzsh), which suggests the MCP process spawner isn’t inheriting the full shell environment. -
npxitself is being found and executed – it’s the downloadedshopify-dev-mcpbinary that fails to resolve. -
No changes were made to my Node.js setup, nvm config, or MCP configuration between when it was working and when it broke.
-
Only recent changes were updates to Cursor. All other installed MCP servers work.
I’d rather not have to hardcode absolute paths to npx or install globally as workarounds, this was zero-friction before. Any guidance appreciated.
Thanks!
—
Edit: Credit to this thread where @Joakim and @Evonux identified the cache fix for a related error.
Hope this helps someone else.