Skip to content
ML2

Supabase MCP server

Added Updated

Published Last verified Released

Our verdict

Removes a big chore in vibe-coding: backend setup. Your agent can design tables, apply migrations, read logs and security advisors, and generate TypeScript types in the same chat as the front end. It acts with your developer permissions, so scope it to one project, use read-only mode for anything unattended, and point it at a dev branch rather than production data.

Who it's for
Builders using Supabase as the backend
Leverage
Agent handles schema, SQL and debugging chores
Effort
Low
Date added

What Supabase MCP server does

The Supabase MCP server connects A.I. tools such as Cursor, Claude Code, Codex, Gemini CLI and GitHub Copilot to your Supabase projects. The hosted server lives at mcp.supabase.com/mcp and signs you in with OAuth, so you don't need to create an access token. Tools come in groups: Database (list tables, apply migrations, run SQL), Debugging (query logs, security and performance advisors), Development (project URL, publishable keys, TypeScript types), Edge Functions, Account management, Docs search, experimental Branching, Notebooks, and Storage, which is off by default. Local projects use the Supabase CLI's endpoint with a smaller tool set.

How builders use Supabase MCP server

  • Design a schema from a feature spec: the agent drafts tables, you review, and it applies them with apply_migration so the change is recorded as a migration.
  • Debug a failing feature by asking the agent to query the project's logs and run get_advisors for missing row-level security or slow queries.
  • Regenerate TypeScript types after a schema change so the front-end code matches the database.
  • Run an unattended check with ?project_ref=...&read_only=true so the routine can read but never write.

Settings that limit what the agent can do

Add these to https://mcp.supabase.com/mcp. Most clients also ask you to approve each tool call; Supabase recommends keeping that on.

URL parameterEffect
project_ref=<id>Scopes the server to one project and turns off account-level tools
read_only=trueRuns SQL as a read-only Postgres user
features=database,docsEnables only the tool groups you list

The prompt-injection risk, in Supabase's own example

  • A customer files a support ticket whose text tells the A.I. to select private data and post it as a reply.
  • A developer with broad permissions asks Cursor to read the ticket through Supabase MCP.
  • The injected text can push the agent to run the query for them. Supabase wraps SQL results with warnings, but says this isn't foolproof, so review tool calls before approving them.

Supabase MCP server: limits and gotchas

  • It runs with your developer permissions, so Supabase says not to give it to customers or end users.
  • Destructive-SQL confirmations depend on your client supporting forms and may not catch every destructive statement.
  • The CLI (local) and self-hosted versions offer only a limited subset of tools.
  • Branching is experimental, and Storage tools are disabled until you enable them.

Supabase MCP server compared with other tools here

  • Bolt.new: includes its own database and hosting, so you may not need Supabase at all; connecting Supabase there needs a paid plan.
  • Model Context Protocol: the standard behind this server; read it to understand what a client can call and when.
  • MCP reference servers: the MCP project's example servers, useful to learn the pattern; this one is the official route for Supabase.

When to pick Supabase MCP server

  • Pick the Supabase MCP server if your backend is Supabase and you build with Cursor, Claude Code or Codex.
  • Scope it to a dev project or branch for building; connect production only read-only and only when the task needs real data.
  • Skip it if you use an all-in-one builder like Bolt with its built-in database.

Supabase MCP server questions

What is the Supabase MCP server URL?

https://mcp.supabase.com/mcp for hosted projects, or http://localhost:54321/mcp when developing locally with the Supabase CLI.

Do I need a personal access token?

No. The hosted server uses OAuth with dynamic client registration. Manual tokens are for clients that can't do OAuth, such as CI.

Can I stop it from changing data?

Yes. Add read_only=true and SQL runs as a read-only Postgres user. Combine it with project_ref and a short features list.

Does it work with the Vercel AI SDK?

Yes. The npm package exports createToolSchemas() so AI SDK's MCP client gets typed tool schemas.

Related discoveries

See the newest picks →

Get the best new A.I. picks in your inbox

The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.

More in Vibe-Coding & Prompt-to-App →

Free. No spam. Unsubscribe anytime.