Supabase MCP + Claude Code
I just switched from Cursor to using mainly Claude Code. But I can't get the Supabase MCP server running for claude code. I read the documentation on Supabase and Claude Code...
What am I missing?
5 Replies
What is the issue that you are getting? If these are the docs you are following https://supabase.com/docs/guides/getting-started/mcp then after you add
~/.claude.json: you should run /mcp inside of claude code terminal and it should provide you with an option to connect to supabaseModel context protocol (MCP) | Supabase Docs
Connect your AI tools to Supabase using MCP
But isn't that setting one mcp specific to one supabase project globally?
Right now, it is working, but I have it in my user folder, not Project folder.
For cursor, I had a .cursor for within the project specifically, so I could add the correct connection to each supabase project where needed.
Can I do something similar for Claude?
i don't believe so, if you have
"url": "https://mcp.supabase.com/mcp? then you should be able to work with all projects
it's only when you add project_ref at the end that it restricts accessIt's more convenient to just use
claude mcp add --transport http supabase-remote-mcp https://mcp.supabase.com/mcp 🙂 Editing claude.json became quite unreliable in my PoV lately.
You can then use claude mcp list and in Claude Code /mcp to check/auth/disable.
If you omit any parameters, it'll have access to all projects in the org. Make sure you pick the correct org when authenticating.
Re keeping separate configs per repo (if I get it right) - I'm not sure about that, tbh. I think the team behind it is discussing what would be the best approach. E.g., adding the server with different projects under different names, or allowing the user to pick the project (similarly to what supabase CLI offers when linking to remote).
You could leave a feature request on GitHub, @Lucasaurus 🙂We recommend using project scoped servers (adding
--scope project to the claude mcp add command or manually editing .mcp.json in your project), docs are now updated to reflect that.