S
Supabase2w ago
arry

Read only error during claude code session and supabase MCP

Hey guys, I'm using this exact config: { "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase@latest", "--project-ref=PROJECT_REF" ], "env": { "SUPABASE_ACCESS_TOKEN": "ACCESS_TOKEN" } } } } and I'm encountering an error when I attempt to make some chaneges to the DB itself, Never encountered an issue like this.
11 Replies
ihm40
ihm402w ago
Could you take a look at this document and follow along with it to connect to the supabase mcp https://supabase.com/docs/guides/getting-started/mcp
Model context protocol (MCP) | Supabase Docs
Connect your AI tools to Supabase using MCP
ihm40
ihm402w ago
A new way to connect to it has been introduced recently and i suspect you might be using the old way of a personal access token. Try this method and if there are any issues still come back. NOTE: When you open claude code after adding the config file you may have to run /mcp to authenticate with supabase
arry
arryOP2w ago
Thanks. Will try it and let you know. But yeah, I noticed that it was different and i eventurally figured it out how to connect because it says that the MCP server was avaialable few days back
ihm40
ihm402w ago
Ahh right, the above has definitely worked for me,but if there are any issues then yet just give a heads up
arry
arryOP2w ago
No description
arry
arryOP2w ago
I think it's working fine now
arry
arryOP2w ago
No description
arry
arryOP2w ago
yeah it is
ihm40
ihm402w ago
Nice, some final caution is that it is worth checking out this guide for mcp https://supabase.com/docs/guides/getting-started/mcp#security-risks
Model context protocol (MCP) | Supabase Docs
Connect your AI tools to Supabase using MCP
ihm40
ihm402w ago
to avoid issues in a few months down the line with the ai tool haha
arry
arryOP2w ago
No need to, I'm aware... and I also use context7 I'm fine pretty much

Did you find this page helpful?