Problems setting up the local MCP Server through Claude code

Good afternoon. I’m having trouble setting up the Shopify Dev MCP server through Claude Code. I am on a windows machine. Here is the command I’m using:

claude mcp add --scope user --transport stdio shopify-dev-mcp – cmd /c npx-y @shopify/dev-mcp@latest

When trying to connect to the MCP server, it says it cannot connect.

Are you certain the MCP server itself is running? It’ll need to be up for Claude Code to connect to it.

The npx-y /dev-mcp@latest command starts the server. If it fails to start, it might be due to a conflicting port or some other issue.

1 Like

C:\Users\adamh> npx @shopify/dev-mcp@latest
node:internal/modules/cjs/loader:524
const err = new Error(
^

Error: Cannot find module ‘C:\Users\adamh\AppData\Local\npm-cache_npx\8f00c70bd5114901\node_modules\line-column\lib\line-column.js’. Please verify that the package.json has a valid “main” entry
at tryPackage (node:internal/modules/cjs/loader:524:19)
at Module._findPath (node:internal/modules/cjs/loader:792:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1405:27)
at defaultResolveImpl (node:internal/modules/cjs/loader:1058:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1063:22)
at Module._load (node:internal/modules/cjs/loader:1226:37)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
at Module.require (node:internal/modules/cjs/loader:1503:12)
at require (node:internal/modules/helpers:152:16) {
code: ‘MODULE_NOT_FOUND’,
path: ‘\\?\C:\Users\adamh\AppData\Local\npm-cache\_npx\8f00c70bd5114901\node_modules\line-column\package.json’,
requestPath: ‘line-column’
}

Node.js v25.2.1

I guess it is a problem with the server itself. I also have the latest version of npm as well. Am I doing something wrong?

Using the MCP Inspector, I get this message from the server:
{
“method”: “notifications/message”,
“params”: {
“level”: “emergency”,
“logger”: “proxy”,
“data”: {
“message”: “Command not found, transports removed”
}
}
}

Hey @Adam_Heaney1 I’ve seen this come up before with the Dev MCP server and clearing the npx cache has resolved it each time.

Try running npm config get cache to find your cache directory, then delete the _npx subfolder inside it. After that, run npx -y @shopify/dev-mcp@latest on its own to confirm the server starts. You should see Shopify Dev MCP Server v1.6.0 running on stdio.

Once the server runs cleanly, wire it into Claude Code. Make sure the command looks exactly like this (spaces and double-hyphens):

claude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest

The “Command not found, transports removed” from MCP Inspector relates to the server failing to start, so fixing the cache should clear that up.

1 Like

yep, you were right. Thanks :smiley:

1 Like