Supabase MCP dont Work in my Cursor
I have an error when implementing the MCP in the cursor. I get an error that I have not been able to resolve. I connect the MCP as the Supabase documentation asks me to and it does not work. I tried with other colleagues' accounts and it works normally for them.
{
"mcpServers": {
"supabase": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@supabase/mcp-server-supabase@latest",
"--read-only",
"--project-ref=xxxxxxxxxxxxxxxxx"
],
"env": {
"SUPABASE_ACCESS_TOKEN": "sbp_7a49748aadxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}

7 Replies
Do you see any errors in log output
@Fronti please check that your SUPABASE ACCESS TOKEN and project ref are correct and complete. Also try running npx @supabase/mcp-server-supabase@latest directly in your terminal to see if the package is installed and working properly.
No, I haven't seen any kind of log.
I get this error

@Fronti try clearing your npm cache and reinstalling:
npm cache clean --force
npx @supabase/mcp-server-supabase@latest
Also make sure Node.js is updated to the latest LTS.
I i'll try
the error continues
I managed to solve it by disabling the corepack for yarn
corepack disable yarn
and running the mcp again. After that, it worked. Clearing the npm and yarn cache also helped. In case this happens to anyone else, this was my solution.@Fronti if you hit this error, try disabling corepack for yarn (corepack disable yarn) and clear npm/yarn cache, then re run the MCP command