MCP server · Supabase
Supabase MCP
Pick it for Supabase SQL and migrations; use the documented read-only and project-scoped modes.
Tools: 29, ~4,394 tokens of tool definitions loaded into the model's context (stdio, default feature groups, dummy token; measured 2026-10-27, v0.14.0). Compare all servers →
All 29 tools, by token cost
- query_logs760
- search_docs450
- deploy_edge_function423
- create_project360
- create_branch257
- apply_migration182
- execute_sql176
- list_tables156
- get_advisors152
- get_publishable_keys138
- confirm_cost130
- get_cost113
- reset_branch89
- list_branches83
- rebase_branch77
- get_edge_function76
- list_projects66
- get_organization65
- merge_branch63
- get_project62
- generate_typescript_types61
- list_edge_functions61
- get_project_url59
- list_migrations58
- list_extensions57
- pause_project57
- restore_project57
- delete_branch55
- list_organizations51
Same server, other documented flags (measured 2026-10-27):
--read-only(read-only): 19 tools, ~2,774 tokens (37% less than the default)--project-ref=<ref>(project-scoped): 20 tools, ~3,268 tokens (26% less than the default)--project-ref=<ref> --read-only --features=database,docs(project-scoped, read-only, database + docs only): 5 tools, ~853 tokens (81% less than the default)
Install
Remote https://mcp.supabase.com/mcp (see README for flags like read_only and project_ref). Official install docs ↗
Credentials: Supabase OAuth (remote) or a personal access token.
What it can access
Manages Supabase projects: SQL, migrations, branches, edge functions; read-only and project-scoped modes documented.
Minimal safe setup
- Combine the three documented URL parameters:
?project_ref=<ref>(one project, account-level tools disabled),read_only=true(queries run as a read-only Postgres user) andfeatures=database,docs(only the tool groups you need). source ↗ - Keep manual approval of tool calls on; for unattended routines pre-approve only project-scoped, read-only tools. Supabase says not to give the server to your customers or end users, since it runs with your developer permissions. source ↗
- If you must create an OAuth app manually, Supabase currently requires write access to all scopes, so lean on project_ref + read_only for containment. source ↗
Common setup errors
- Signed in, but the client shows no Supabase tools (or the wrong projects).
- Supabase notes some clients must be restarted after authorization to detect all tools. During the OAuth login, choose the organization that contains your project. source ↗
- OAuth is impossible in CI.
- Create a personal access token scoped to the one project, pass it as an
Authorization: Bearerheader and add?project_ref=to the URL. Not every client supports custom headers. source ↗ - Tools are missing when running against the Supabase CLI or self-hosted Supabase.
- Expected: local (http://localhost:54321/mcp) and self-hosted MCP servers offer a limited subset of tools and no OAuth 2.1. source ↗
- Branching tools fail.
- Branching is experimental and requires a paid plan. source ↗
How it differs from alternatives
- Neon MCP: Same job for Neon Postgres (projects, branches, SQL) with Neon OAuth or an API key. Measured: 127 tools, ~29,236 tokens.
- MCP Toolbox for Databases: Vendor-neutral: connects to a database you configure (Postgres and others) with your own connection credentials instead of a Supabase account; it cannot manage Supabase projects, Edge Functions or branches.
Notes written from the official sources linked above, checked 2026-10-27.
Details
- Type
- MCP server
- Tasks
- Databases & SQLInfra & deploy
- Compatible agents
- Cursor, Windsurf (source: clients with a setup heading or install/config instructions in the official README)
- Maintenance
- Release mcp-server-supabase-v0.14.0 on 2026-10-14; last commit 2026-10-24
- License
- Apache-2.0
- Source
- https://github.com/supabase/mcp
- Verified on
- 2026-10-26
No independent security audit: entries summarize official sources only. Review permissions and code before installing.
Compared in: Best MCP servers for Infra & deploy in Cursor · Best MCP servers for Databases & SQL in Cursor · Best MCP servers for Databases & SQL · Best MCP servers for Infra & deploy
Badge for your README (maintainers)
The badge only says it's listed; it is not a security review or an endorsement.