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
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
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 supabaseThanks. 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
Ahh right, the above has definitely worked for me,but if there are any issues then yet just give a heads up
I think it's working fine now

yeah it is
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
to avoid issues in a few months down the line with the ai tool haha
No need to, I'm aware...
and I also use context7
I'm fine pretty much