Could someone please help me with this? I’m using windows and v0.46. I did everything correctly as mentioned in the supabase page but it says client closed. I have added npm and npx to PATH.
Hey, try this:
Here is the solution, i just had someone helping me with that:
I solved this issue by using direct connection string from supabase (their docs suggest Session Pooler), and I added the cmd /c trick in the MCP command. The only downside is that it opens a terminal prompt while running it.
1 Like
You are awesome, thank you! Using the direct connection string plus the following mcp.json did the trick on Win11 Pro. A blank terminal/cmd opens and I just minimize it. Doesn’t seem like it displays anything while having cursor use the MCP connection
{
"mcpServers": {
"supabase": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@modelcontextprotocol/server-postgres", "<direct conn string>"]
}
}
}
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.