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

crypto is not defined

Open daoluc opened this issue 8 months ago • 6 comments

Bug report

Describe the bug

Unable to create a new Supabase project. list_organizations and get_cost work fine. confirm_cost and create_project get the same error: {"error":{"name":"ReferenceError","message":"crypto is not defined"}}

To Reproduce

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

Setup mcp in cursor:

{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase@latest", "--access-token", "xxxx" ] } } }

In agent mode, request "create a new supabase project name helloworld"

Expected behavior

A new project should be created.

Screenshots

Image

System information

  • OS: macOS
  • IDE: cursor
  • Version of supabase-js: 1.215.0
  • Version of Node.js: 18.17.1

Additional context

Add any other context about the problem here.

daoluc avatar Apr 15 '25 04:04 daoluc

am facing the same issues

teetangh avatar Aug 31 '25 11:08 teetangh

Error: {"error":{"name":"ReferenceError","message":"crypto is not defined"}} Same here.

Falc0N7 avatar Sep 01 '25 21:09 Falc0N7

@daoluc Thanks for sharing your system info.

Could you try upgrading your Node.js installation to a newer version? We recommend an Active LTS release (Node.js v22). Node.js v18 reached End-of-life (EoL) earlier this year, so it's not something we aim to support currently. https://nodejs.org/en/about/previous-releases

I've tested that the latest MCP server runs successfully with Node.js v22.18.0—let us know if upgrading resolves the issue on your end too!

mattrossman avatar Sep 02 '25 15:09 mattrossman

@mattrossman, thank you for your quick reply! Just added the absolute PATH to the MCP config. Seems to use active LTS now but still same issue.

Log:

mcp-server-supabase-lifedashboard.log

renierbleeker83 avatar Sep 09 '25 20:09 renierbleeker83

@renierbleeker83 Maybe try uninstalling Node v18 so it's no longer present in paths? Also, could you share more details on your setup (what OS, what MCP client?) I see "claude-ai" listed as the client, not sure if that means Claude Code or Desktop.

Personally I use mise for Node version management and Cursor as an MCP client.

mattrossman avatar Sep 09 '25 21:09 mattrossman

Getting the same issue here even after Upgrading Node from 18 to 20

maor-outrival avatar Oct 02 '25 18:10 maor-outrival