Supabase MCP Server
- MCP server
- Official
Supabase's hosted MCP server lets Claude design tables, run SQL, read logs and deploy Edge Functions in your Supabase projects.
MCP serverData and databasesOn this page8 sections
Best for
- Creating and changing database tables by describing them
- Debugging with logs and Supabase's advisors
- Generating TypeScript types for your app
Quick install
Remote server at https://mcp.supabase.com/mcp with OAuth
Before you start
Read Supabase's security best practices first:
https://supabase.com/docs/guides/ai-tools/mcp#security-risks
- claude.ai or Claude Desktop
Settings > Connectors > Add custom connector, URL
https://mcp.supabase.com/mcp(add the same query options if you want them).
claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp?features=docs%2Caccount%2Cdatabase%2Cdebugging%2Cdevelopment%2Cfunctions%2Cbranching"Authenticate from a regular terminal: run
claude /mcp, select supabase, choose Authenticate, log in and pick the organization that holds your project.Safer variant: add ?project_ref=YOUR_PROJECT_REF&read_only=true to the URL to limit Claude to one project and read-only SQL.
Read Supabase's security best practices first:
https://supabase.com/docs/guides/ai-tools/mcp#security-risksClaude Code:
claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp?features=docs%2Caccount%2Cdatabase%2Cdebugging%2Cdevelopment%2Cfunctions%2Cbranching"Authenticate from a regular terminal: run
claude /mcp, select supabase, choose Authenticate, log in and pick the organization that holds your project.Safer variant: add ?project_ref=YOUR_PROJECT_REF&read_only=true to the URL to limit Claude to one project and read-only SQL.
claude.ai or Claude Desktop: Settings > Connectors > Add custom connector, URL
https://mcp.supabase.com/mcp(add the same query options if you want them).
At a glance
- Type
- MCP server
- Made by
- Supabase (official)
- Tested by us
- Not yet
- Works with
- Claude.ai
- Claude Desktop
- Claude Code
- Sign-in needed
- YesOAuth login to Supabase; no personal access token needed. Choose the organization that contains your project during login.
- Cost
- The MCP server itself is free. The Branching tools require a paid Supabase plan, and the server asks you to confirm before creating billable resources.
- License
- Apache-2.0
- Registry name
com.supabase/mcp- Facts checked
What it does (plain English)
Supabase is a hosted Postgres database with login, file storage and serverless functions built in. Its MCP server (a plug-in that gives Claude a new ability) lets Claude work inside your Supabase account: list tables, write and apply migrations, run SQL, read logs, check security and performance advisors, generate TypeScript types and deploy Edge Functions.
Supabase hosts it at https://mcp.supabase.com/mcp. You sign in once through your browser and Claude gets access with your developer permissions.
Tools come in feature groups you can switch on or off:
| Group | Example tools | On by default? |
|---|---|---|
| Database | list_tables, apply_migration, execute_sql | Yes |
| Debugging | query_logs, get_advisors | Yes |
| Development | get_project_url, get_publishable_keys, generate_typescript_types | Yes |
| Edge Functions | list, get and deploy functions | Yes |
| Account | project, organization and cost tools | Yes (off in project-scoped mode) |
| Docs | search_docs | Yes |
| Branching (experimental) | create, merge, reset, rebase branches | Yes (needs a paid plan) |
| Storage | bucket listing and config | No |
Is it for you?
Pick it if your app’s backend is Supabase and you want Claude to change the schema or chase down a bug without you writing SQL by hand.
Be careful if your project holds real customer data. Supabase’s docs say to connect to a production project “only when the task requires production evidence” and to prefer a development project or branch. If you are not sure, use read-only mode.
What you can do with it
- Design a table by describing it: “Create a
waitlisttable with email (unique), signup source and created_at, and enable row level security.” Claude writes a migration and applies it. - Ask questions of your data: “How many waitlist signups came from the Product Hunt link this week?” via
execute_sql. - Find what’s broken: “Check the API logs for errors in the last hour” with
query_logs. - Run a health check: ask Claude to run
get_advisorsand explain each warning Supabase’s advisors report for your project. - Keep your app in sync: “Regenerate TypeScript types for my database and save them to
src/types/supabase.ts.”
How to set it up
-
Read the risks. Supabase asks you to read its security best practices before connecting: https://supabase.com/docs/guides/ai-tools/mcp#security-risks
-
Claude Code. From your project folder:
claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp?features=docs%2Caccount%2Cdatabase%2Cdebugging%2Cdevelopment%2Cfunctions%2Cbranching"This writes the server into
.mcp.jsonso teammates get it too. -
Sign in. From a regular terminal (Supabase notes this, not the IDE extension), run
claude /mcp, pick supabase, choose Authenticate, log in and grant access to the organization that contains your project. -
Lock it down (recommended). Change the URL to scope it:
https://mcp.supabase.com/mcp?project_ref=YOUR_PROJECT_REF&read_only=trueproject_reflimits Claude to one project and turns off account tools.read_only=trueruns all SQL as a read-only Postgres user.features=database,docslimits which groups load. The Supabase dashboard’s Connect > MCP tab can build this URL for you. -
claude.ai or Claude Desktop. Settings > Connectors > Add custom connector, and paste the same URL. Anthropic lists custom connectors for Pro, Max, Team and Enterprise plans.
Watch out for
- Prompt injection. Supabase’s own example: a support ticket in your database could contain text that tricks Claude into running queries it shouldn’t. Keep manual approval of tool calls on for interactive work.
- Developer-level access. The server runs with your permissions. Supabase says not to give it to your customers; it is for internal use.
- Confirmations are guardrails, not guarantees. The server asks before creating billable resources, but Supabase notes some clients can answer those prompts automatically.
- Local and self-hosted are limited. With the Supabase CLI the server lives at
http://localhost:54321/mcp, but it offers a smaller tool set and no OAuth. The same applies to self-hosted Supabase. - Test schema changes on a branch before merging to production.
Alternatives
- Neon MCP if your Postgres is on Neon; it has similar read-only and project-scoping options.
- Airtable MCP if you want a spreadsheet-style database rather than SQL.
- Context7 to fetch current Supabase client-library docs while Claude writes your app code.
Sources
- supabase.com/docs/guides/ai-tools/mcp (opens in a new tab)
- github.com/supabase/mcp (opens in a new tab)
- raw.githubusercontent.com/supabase-community/supabase-mcp/main/README.md (opens in a new tab)
- supabase.com/docs/guides/getting-started/mcp (opens in a new tab)
- registry.modelcontextprotocol.io/v0.1/servers/com.supabase%2Fmcp/versions/latest (opens in a new tab)
- npmjs.com/package/@supabase/mcp-server-supabase (opens in a new tab)
- support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp (opens in a new tab)
Related tools
Neon MCP Server
by Neon
- Connector
- Official
Neon's official MCP server lets Claude create Postgres projects and branches, run SQL, and plan schema migrations on a safe copy first.
Works with- Claude.ai
- Claude Desktop
- Claude Code
Notion MCP
by Notion
- MCP server
- Official
Notion's hosted MCP server lets Claude search your workspace, read pages as Markdown, and create or update pages and databases you can access.
Works with- Claude.ai
- Claude Desktop
- Claude Code
Airtable MCP Server
by Airtable
- Connector
- Official
Airtable's official MCP server lets Claude search and update records, build new bases and interfaces, and draft automations in your Airtable.
Works with- Claude.ai
- Claude Code
Excel spreadsheets (xlsx) skill
by Anthropic
- Skill
- Official
Anthropic's skill for building and fixing Excel files with live formulas, zero formula errors and finance-style formatting, verified by a recalculation step.
Works with- Claude.ai
- Claude Desktop
- Claude Code