MCP Servers on windows 10 not working? Please Help Supabase MCP Server


I’m having trouble getting the MCP Server for Supabase to work on my Windows 10 Pro machine. No matter what I do, it just won’t start.

Here’s what I’ve tried so far:

  • Disabled the firewall
  • Installed a fresh version of Node.js
  • Restarted my computer
  • Disabled antivirus
  • Tried a few other troubleshooting steps

Despite all this, I still can’t get it running. Has anyone encountered a similar issue or have any ideas on how to fix it? Any help would be greatly appreciated!

Here’s a simple configuration that worked for me on Windows 10 when setting up MCP Servers with Supabase. If you encounter an error like spawn npx ENOENT, running npx through the Windows command prompt usually fixes it.

{
  "mcpServers": {
    "supabase": {
      "command": "C:\\Windows\\System32\\cmd.exe",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://postgres.********:********@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
      ]
    }
  }
}

Explanation:

  • command points to cmd.exe on Windows.
  • args:
    • "/c" tells cmd.exe to run the following command and then exit.
    • "npx", "-y", and "@modelcontextprotocol/server-postgres" are passed directly to npx.
    • The final argument is your Supabase connection string from the Session pooler section under Database in the Supabase dashboard.
    • Replace the ******** parts with your actual project ID and password.
1 Like

A better approach is to go to this page, then in the Installation section choose Cursor. Enter your supabaseProjectRef (the project ID) and supabaseDbPassword, and click Generate Command.

On Windows, the generated command might not work if it just uses npx. In that case, replace npx with:

C:\Windows\System32\cmd.exe /c npx

This usually fixes any issues. It works for me, although sometimes Cursor stops running commands. When that happens, I go into the MCP settings and click Refresh, and it starts working again.

Woow! This actually solved the issue! You are great! i really appreciate it

1 Like

Same solution here, but using direction connection string

Sounds like a great idea to type in your project and db password on a random website. I don’t see a problem here at all …