Supabase MCP is Supabase's official hosted server. It lets the agent see your real schema, run SQL, write migrations, check security advisors, read logs and regenerate TypeScript types. It ends the loop of pasting table definitions into chat.
You sign in with OAuth, with no access token to create. URL options limit what the agent can touch:
project_ref scopes it to one project, read_only=true runs every query as a read-only Postgres user, and features turns on only the tool groups you need.Database
Lists tables, runs SQL and applies migrations
Security advisors
Finds tables missing RLS and other security and performance issues
Logs and debugging
Queries project logs to find what failed
TypeScript types
Regenerates types from your schema after a migration
Prompts to try
When to use
- Your database and auth run on Supabase
- You want migrations written against the real schema
- You want RLS gaps found and fixed
When not to use
- You only need to run migrations you wrote: the
supabaseCLI is enough - You want to give database access to your customers: it runs with your developer permissions
- You need deploy logs for the frontend: use Vercel
Watch out
- Point it at a dev project or a branch, not production. Supabase recommends
read_only=trueand approving every tool call, because data in the database can carry prompt injections.
- Branching tools need a paid plan, and creating projects or branches can cost money. The server asks you to confirm cost first.
Install
Terminal
Loading editor...
claude mcp add --transport http supabase "https://mcp.supabase.com/mcp?project_ref=YOUR_REF&read_only=true"
Then type
/mcp in Claude Code, pick supabase and sign in. Choose the organization that holds your project. Cursor, Codex and other clients take the same URL. The dashboard's MCP connection tab builds the URL for you.More in Top MCP servers for development.