supabase-mcp icon indicating copy to clipboard operation
supabase-mcp copied to clipboard

Client closed or No tools available in Cursor for Supabase MCP

Open Kamciooo1226 opened this issue 8 months ago • 9 comments

Bug report

Describe the bug

I think that last update broke the MCP Server. I cannot connect to the server. Yesterday everything was working, today I get client closed or No tools available in Cursor.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Configure mcp.json in Cursor
  2. Enable Supabase MCP connection.
  3. Try to refresh the MCP connection.
  4. See error "Client closed" or "No tools available"

Expected behavior

MCP connection and tools working properly.

Screenshots

Image

System information

  • OS: [Windows]
  • Browser (if applies) N/A
  • Version of supabase-js: [2.39.1]
  • Version of Node.js: [v22.14.0]

Additional context

Add any other context about the problem here.

Kamciooo1226 avatar Apr 26 '25 13:04 Kamciooo1226

UPDATE: deleting @latest from @supabase/mcp-server-supabase@latest fixes it so it definitely is an issue with the latest version.

Image

Kamciooo1226 avatar Apr 26 '25 13:04 Kamciooo1226

I confirm, fixing at 0.3.6 works, 0.4.0 seems broken, tool discovery does not work anymore

robboerman avatar Apr 27 '25 18:04 robboerman

Same if you are using claude desktop

MariusWilsch avatar May 05 '25 13:05 MariusWilsch

not working on claude desktop for me even with @0.3.6, which, this version still works in Cursor/Windsurf, Cline, etc.

janss-en avatar May 09 '25 00:05 janss-en

MCP is not working when even following the steps from the guide. Same issue except I cant connect to the server at all.

risesightdeem avatar May 22 '25 19:05 risesightdeem

Same here, I still can't use it on Cursor — even after removing @latest, it still shows "0 tools enabled."

wuuJiawei avatar Jun 17 '25 00:06 wuuJiawei

Same here, I still can't use it on Cursor — even after removing @latest, it still shows "0 tools enabled."

I solved this problem by simply specifying the path to npx. Since I use nvm to manage npm versions locally, although I specified the version with nvm default 20, it doesn't take effect in Cursor. When I specified the npx version in mcp.json, the problem was resolved. Here's my configuration:

"supabase": {
  "command": "/Users/nobody/.nvm/versions/node/v20.19.0/bin/npx",
  "args": [
    "-y",
    "@supabase/mcp-server-supabase@latest",
    "--access-token",
    "sbp_xxx"
  ]
}

Additionally, your Node.js version must be 18 or above.

wuuJiawei avatar Jun 17 '25 06:06 wuuJiawei

NPX clear cache fixed my issue

papadok24 avatar Jun 18 '25 13:06 papadok24

NPX clear cache fixed my issue

Same. Clearing npx cache (and then restating Cursor) is exactly what worked for me.

The command I used:

npx clear-npx-cache

iamzeid avatar Jun 29 '25 06:06 iamzeid