MCP failed in ssh remote server

Hi guys, I’m running Cursor in my win PC and I usually connect it to my Ubuntu server through Remote ssh extension. When I tried to set the MCP on my server, I ran across some issues as attached.

2025-02-26 16:09:27.431 [info] 28ff: Handling DeleteClient action
2025-02-26 16:09:27.433 [info] 28ff: Handling CreateClient action
2025-02-26 16:09:27.433 [info] 28ff: getOrCreateClient for stdio server
2025-02-26 16:09:27.433 [info] 28ff: Starting new stdio process with command: /home/taich42/.nvm/versions/node/v22.14.0/bin/npx  -y @modelcontextprotocol/server-sequential-thinking
2025-02-26 16:09:27.434 [error] 28ff: Client error for command A system error occurred (spawn /home/taich42/.nvm/versions/node/v22.14.0/bin/npx ENOENT)
2025-02-26 16:09:27.434 [error] 28ff: Error in MCP: A system error occurred (spawn /home/taich42/.nvm/versions/node/v22.14.0/bin/npx ENOENT)
2025-02-26 16:09:27.434 [info] 28ff: Client closed for command
2025-02-26 16:09:27.434 [error] 28ff: Error in MCP: Client closed
2025-02-26 16:09:27.438 [info] 28ff: Handling ListOfferings action
2025-02-26 16:09:27.438 [error] 28ff: No server info found

I’m very sure that version aligns well and I could run

/home/taich42/.nvm/versions/node/v22.14.0/bin/npx -y @modelcontextprotocol/server-sequential-thinking

in my server terminal. Not sure if I mess up with some SSH stuff and appreciate for any suggestions.

3 Likes


i have same issues, I’m running Cursor in my win PC and I usually connect it to my Ubuntu server through Remote ssh extension

2 Likes

I’m also connecting to Ubuntu remotely. I’m having the same problem, and I’ve tried sse mode. It’s also unavailable. I’ve made sure the service is started.

1 Like

Are there any official plans to accommodate this situation?

I fixed from this blog ,


1.need install nodejs on the windows
2.add the cmd /c at the Previous command eg, cmd /c npx -y mcp-package-version
But a new problem has arisen. The cmd window keeps popping up and cannot be closed. After closing it, mcp cannot be used.
I hope the official can fix it in the subsequent versions, or learn from Cline to directly embed an MCP market for one-click installation

Aren’t you just executing the MCP server command on your windows machine then? Are the server response results from your windows machine or the remote machine?

1 Like

Seems you’re running MCP in your local PC, which is of course a bypass. For some reasons, I can’t install MCP in py PC and sadly I have to wait for the official updates to solve this.

1 Like

Yep, I’ve spent hours trying different ways to make it work when connected by remote ssh. It’s unfortunately not possible.

My workaround was using it locally on my pc but it’s still buggy for me and if I want to use my laptop, it’s time consuming.

Here is an example of the path I used to make it work locally, using bun (gave up on getting NPM to work):

C:\Users\user-name-example\.bun\bin\bunx node C:\sites\xxxxx\build\index.js

Path Breakdown:
POINTS TO BUN LOCALLY → C:\Users\user-name-example\.bun\bin\bunx
COMMAND → node
PATH TO MCP SERVER → C:\sites\xxxxx\build\index.js

The odd thing is, most popular extensions and the other editor that starts with a “w”, work seamlessly by remote ssh. So I’m not sure why Cursor can’t get this figured out. If there is a way to make it work remotely, better docs would be appreciated. I like Cursor more than any other IDE and I’m tired of switching around just so I can use my MCP servers by remote ssh.

I already suggested it on X and it should be a fairly easy fix, especially if other popular extensions/tools are able to accommodate it and have been doing so for quite some time.

Check out the example I just gave. Couldn’t get NPM to work but Bun was easy and worked on a few of my PCs without issue. Finding the correct bun path took some time but this ended up making it work.

ws have remote mcp working , so it really should be working on cursor.

If my understanding is right, Bun is a local environment for js on PC ? If so, I might not be able to use it since I couldn’t installed additional softwares on PC. And I agree that it’s should be possible to be fixed.

I agree

Yikes, yeah if you can’t install additional software on your PC, I’m not sure how else to make it work. If NPM works already on your local PC, just use it instead of Bun. I only use Bun because it was easier for me to get to work.

Same problem here. The commands gets executed on the local machine and not on the server via ssh connection.

1 Like

Any solution here?
I have same problem.
I want to use mcp server in remote ssh, not in local PC.
However, it can’t work…

I’m about 15m away from ditching cursor altogether. The advantage for me was that all of my regular VS Code workflows should “just work”. But Cursor not having any clear/clean way to run and interact with MCP servers via Remote SSH (everything else in Cursor works perfectly when connected to a remote server via SSH) :man_shrugging: is kind of a deal-breaker.

Does anyone know whether or not Cursor actually supports MCP running via Remote SSH project (i.e. Yes, Cursor.exe is running on Windows but the file system and terminal and literally everything else about the code is being executed via the Cursor/vscode backend running remotely and accessed by Cursor.exe via ssh.