Supabase MCP Server for Claude Code: Setup & Config
Connect Claude Code to Supabase projects for SQL, schema changes, debugging, and Edge Functions.
What you can do with Supabase in Claude Code
A broad Supabase development interface with explicit project scoping and read-only controls.
- Investigate project logs and security or performance advisories.
- Generate TypeScript types and deploy Edge Functions.
- Manage development branches when the plan supports them.
Before you start: Supabase in Claude Code
- A Supabase account with access to the intended organization
- An MCP client supporting hosted HTTP connections
No runnable server launch command is stated in the provided README. Configure the hosted URL and complete the client login flow. The README recommends project_ref scoping and read_only=true.
Supabase Claude Code configuration
Choose Claude Code configuration scope
For Supabase MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add Supabase MCP Server to Claude Code
Use the supabase-mcp entry below in mcpServers. Keep Supabase MCP Server's documented http connection fields and your other Claude Code entries.
Check Supabase MCP Server in Claude Code
Supabase MCP Server: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"supabase-mcp": {
"type": "http",
"url": "https://mcp.supabase.com/mcp"
}
}
}claude mcp add-json --scope project 'supabase-mcp' '{"type":"http","url":"https://mcp.supabase.com/mcp"}'Supabase tools available to Claude Code
Supabase's stored tool list documents 33 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.
- search_docs
For Supabase's search_docs, review the permission request and arguments in Claude Code before approval.
- list_organizations
For Supabase's list_organizations, review the permission request and arguments in Claude Code before approval.
- get_organization
For Supabase's get_organization, review the permission request and arguments in Claude Code before approval.
Inspect organization details, including its subscription plan.
- list_projects
For Supabase's list_projects, review the permission request and arguments in Claude Code before approval.
Find Supabase projects available to the user.
- get_project
For Supabase's get_project, review the permission request and arguments in Claude Code before approval.
Inspect one project's details and status.
- get_cost
For Supabase's get_cost, review the permission request and arguments in Claude Code before approval.
Look up organization-specific pricing before creating a project or branch.
- confirm_cost
For Supabase's confirm_cost, review the permission request and arguments in Claude Code before approval.
Record user confirmation of the cost returned for a project or branch.
- create_project
For Supabase's create_project, review the permission request and arguments in Claude Code before approval.
Create a Supabase project after organization and cost confirmation.
- pause_project
For Supabase's pause_project, review the permission request and arguments in Claude Code before approval.
Suspend an existing project's operation.
- restore_project
For Supabase's restore_project, review the permission request and arguments in Claude Code before approval.
Bring a paused project back into operation.
- list_tables
For Supabase's list_tables, review the permission request and arguments in Claude Code before approval.
Inspect tables in selected schemas, optionally expanding structural details.
- list_extensions
For Supabase's list_extensions, review the permission request and arguments in Claude Code before approval.
- list_migrations
For Supabase's list_migrations, review the permission request and arguments in Claude Code before approval.
- apply_migration
For Supabase's apply_migration, review the permission request and arguments in Claude Code before approval.
- execute_sql
For Supabase's execute_sql, review the permission request and arguments in Claude Code before approval.
- query_logs
For Supabase's query_logs, review the permission request and arguments in Claude Code before approval.
- get_logs
For Supabase's get_logs, review the permission request and arguments in Claude Code before approval.
- get_advisors
For Supabase's get_advisors, review the permission request and arguments in Claude Code before approval.
- get_project_url
For Supabase's get_project_url, review the permission request and arguments in Claude Code before approval.
- get_publishable_keys
For Supabase's get_publishable_keys, review the permission request and arguments in Claude Code before approval.
- generate_typescript_types
For Supabase's generate_typescript_types, review the permission request and arguments in Claude Code before approval.
- list_edge_functions
For Supabase's list_edge_functions, review the permission request and arguments in Claude Code before approval.
- get_edge_function
For Supabase's get_edge_function, review the permission request and arguments in Claude Code before approval.
- deploy_edge_function
For Supabase's deploy_edge_function, review the permission request and arguments in Claude Code before approval.
- create_branch
For Supabase's create_branch, review the permission request and arguments in Claude Code before approval.
- list_branches
For Supabase's list_branches, review the permission request and arguments in Claude Code before approval.
Inspect development branches and their operation status.
- delete_branch
For Supabase's delete_branch, review the permission request and arguments in Claude Code before approval.
Remove a development branch.
- merge_branch
For Supabase's merge_branch, review the permission request and arguments in Claude Code before approval.
Promote a branch's migrations and Edge Functions into production.
- reset_branch
For Supabase's reset_branch, review the permission request and arguments in Claude Code before approval.
Reset branch migrations, discarding untracked schema or data changes.
- rebase_branch
For Supabase's rebase_branch, review the permission request and arguments in Claude Code before approval.
Apply newer production migrations to a development branch.
- list_storage_buckets
For Supabase's list_storage_buckets, review the permission request and arguments in Claude Code before approval.
Inspect the storage buckets available in a project.
- get_storage_config
For Supabase's get_storage_config, review the permission request and arguments in Claude Code before approval.
Read project storage settings.
- update_storage_config
For Supabase's update_storage_config, review the permission request and arguments in Claude Code before approval.
Change project storage settings; the README requires a paid plan.
Troubleshooting Supabase in Claude Code
- Inspect claude mcp list, then Supabase MCP Server's connection to mcp.supabase.com in /mcp. Complete Claude Code authentication only for a trusted service.
- Supabase MCP Server: check http connectivity to mcp.supabase.com from Claude Code; a stdio command is not a replacement for this endpoint.
- Transport mismatch: Supabase's catalog lists stdio; the displayed Claude Code configuration uses http.
- Known limitation: Broad access can mutate project data and infrastructure unless restricted.
- Known limitation: Branching is experimental and requires a paid plan.
- Known limitation: Local and self-hosted MCP variants provide fewer tools and lack OAuth 2.1.
- General Claude Code troubleshooting lives in the /clients/claude-code guide.
Supabase MCP Server — details. Claude Code guide