Docs/multi project setup #290
Thanks for the PR @AnuragRaut08! In general we don't recommend connecting Supabase MCP to prod due to the security risks involved, so my concern is that documenting multi-env configurations like this would send mixed messages.
One thing that would be great to add though is a specific callout to prefer project-scoped MCP (e.g. .mcp.json files in each repo) over global user-wide MCP (e.g. ~/.claude.json). This way users can scope each repo to their respective Supabase project and simply switching into each repo directory will automatically inherit the correct MCP configuration. Likely many users already do this, but a specific callout would be helpful.
Thanks for the feedback! I've updated the guide to recommend project-scoped MCP configuration files (for example, .mcp.json within each repository) instead of global user-wide configuration, and clarified the multi-project setup guidance accordingly.
Perhaps we can reduce this to a single entry called supabase for demonstration purposes? Also the stdio transport is no longer recommended in favour of the remote HTTP transport (https://mcp.supabase.com/mcp). Can we please change the config accordingly?
Remote MCP (http transport) no longer requires a PAT - the happy path is to simply use OAuth to authorize. Perhaps we can omit most or all of these points?
Thanks @AnuragRaut08 🙂 added a few more comments.
Thanks for the additional feedback @gregnr
I've updated the documentation to align with the current recommended MCP workflow:
Replaced the previous stdio transport example with the recommended remote HTTP transport configuration
Simplified the example to a single supabase entry
Removed the PAT-specific and multi-server workflow details to better reflect the current recommended setup
Kept the recommendation for repository-scoped .mcp.json configuration when working across multiple projects
Pushed the updates for another review. Thanks again for the guidance.
@gregnr Any follow up?
Replaced the two stdio server entries with a single remote HTTP configuration using https://mcp.supabase.com/mcp.
Removed the PAT-based authentication guidance and simplified the explanation around OAuth and project-scoped configuration.
Hi @gregnr — following up on this PR. Thanks again for the earlier feedback; I've incorporated the requested direction into a refreshed version of the documentation.
The update uses the recommended remote HTTP transport, simplifies the example to a single supabase entry with OAuth, and retains the recommendation for repository-scoped .mcp.json configuration.
Since the original branch is now outdated and has merge conflicts, I've refreshed the change against the current main branch to keep the diff focused and avoid unrelated changes.
Could you please take a look at the refreshed PR when you get a chance? If the approach looks good, I'd appreciate your review so we can get this documentation improvement merged and close out the original issue. Thanks!
gregnr
AnuragRaut08
Summary
Adds documentation explaining how to configure multiple named MCP
server instances for workflows involving multiple Supabase projects.
This includes:
.mcp.jsonconfiguration examplesPAT authentication guidance
Recommended use of
--read-onlyfor productionExplanation of why separate server instances avoid OAuth authorization loops
Fixes #233