The streamable http mcp server connection fails after 100 seconds

Describe the Bug

After connecting to the remote mcp server, the connection lasts only for 100 seconds.

Steps to Reproduce

  1. Add the server in the mcp.json
  2. Connect
  3. Wait for ~100 seconds

Expected Behavior

It should stay connected unless I interrupt it manually.

Screenshots / Screen Recordings

4A7761EA-21D2-4951-9AAA-4398DDF27A89.jpg

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0

Additional Information

The MCP server uses StreamableHTTPServerTransport over HTTP at the /mcp endpoint and a new server instance created per request.

Does this stop you from using Cursor

No - Cursor works, but with this issue

“I’m facing the same issue — it loses connection, and I have to toggle it manually. In your case, it shows an error, but in mine, even when it’s connected, the UI displays a red dot. The logs are clear, and it’s able to list the tools and prompts, yet it still shows the red dot. Every tool works for a while and then stops.”

Hey, thanks for the report. Could you try clearing the package cache:

macOS/Linux: ~/.npm/_npx
Windows: %LocalAppData%/npm-cache/_npx

Then restart Cursor.

Tried it multiple times, still have the same issue!

Hey, thanks for the additional info. You can select a specific MCP server from the dropdown menu and see what errors are occurring.

Thank you for your prompt response deanrie. When the toggle was activated, logs were generated as highlighted, and this is the full log for it. There were multiple errors at a time, it’s when I try to execute a tools after some time. Can you please let me know how does cursor client handles the connection with it?

Which MCP server are you using? If it’s public, could you share it? If it’s your own, it’d be great if you could provide a link to the repo. If you don’t want to share it publicly here, I’ll DM you.

It’s a Moorcheh MCP here is the public MCP: moorcheh-ai/moorcheh-mcp
It’s working if I run it locally. I have another one that uses Streamable https (I cannot share this), but the functionality is the same as the public one. Let me know if you need anything else from my side.

I’ve just set up the Moorcheh MCP server in Cursor, and everything works for me. If you could share your MCP server with the team, we’d do a detailed investigation.

Sorry, but I am not allowed to share the company-managed MCP.

Did you try locally or use Streamable https?
If you try locally, then it will work fine. Could you please try using the link below:

cursor://anysphere.cursor-deeplink/mcp/install?name=Moorcheh&config=eyJ1cmwiOiJodHRwczovL2FwaS5tb29yY2hlaC5haS92MS9tY3AiLCJoZWFkZXJzIjp7IngtYXBpLWtleSI6IiJ9fQ%3D%3D

There might be something I’m doing incorrectly, but if you could confirm how Cursor handles the connection-or share any Streamable HTTPS MCP that works with Cursor-then I can check how they’ve set up the connection.

Maybe @msfeldstein can clarify this here.

If your MCP Server is running with Streamable HTTP transport and is stateless, note that SSE notifications are not supported in stateless mode, which might be causing the issue. You should handle this scenario gracefully.

You are right, since our MCP is running behind API Gateway and Lambda with Streamable HTTP, I may not be handling this correctly, and that could be the issue!

@deanrie I talked again to the internal team, they agreed to share a server. How can I DM you about the code?

Hey, I’ve sent you a DM.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.