How to connect the Supabase MCP server
To connect the official Supabase MCP server, add https://mcp.supabase.com/mcp to your MCP client as a Streamable HTTP server, then sign in with OAuth when your client prompts you. For CI or headless use, use a personal access token. Supabase documents setup for Claude Code, Codex, Cursor, VS Code and ChatGPT.
Docs reviewed 5 Nov 2026Not a tested connection.
Try with your key via relay → Supabase blocks requests from other websites, so the explorer uses API Tracker's relay. Anything you enter passes through it and is never stored or logged.
Endpoint https://mcp.supabase.com/mcp · Registry com.supabase/mcp 0.14.0
Add Supabase MCP to your client
claude mcp add --transport http supabase https://mcp.supabase.com/mcp
Connect Supabase MCP step by step
Before you start
- A Supabase account. During sign-in you choose the organization that contains your project. supabase.com/docs
- The server acts with your developer permissions in the chosen organization. Entering Edge Function secrets also needs permission to read and write secrets for the project. supabase.com/docs
- Branching is experimental and requires a paid plan. Creating projects and branches asks you to confirm the cost. supabase.com/docs
- Supabase warns about prompt injection and says not to give the server to customers or end users. Keep manual approval of tool calls on, and consider project scoping, read-only mode and restricted feature groups. supabase.com/docs
Authentication
- Your client → Supabase MCP
- OAuth sign-in, handled by your MCP client. supabase.com/docsmodelcontextprotocol.io/specification
- Supabase MCP → Supabase API
- The server acts on your account with the access you approve. supabase.com/docs
Steps
- Open Supabase's MCP setup instructions for your client
- Add the Supabase MCP server to your client
Add https://mcp.supabase.com/mcp as a remote MCP server that uses the Streamable HTTP transport (often labelled "http"). Optional query parameters: project_ref limits the server to one project and disables account management tools; read_only=true runs queries as a read-only Postgres user; features limits the enabled tool groups. Parameters can be combined.
- Sign in to Supabase, choose your organization and approve access
- For CI or headless use, use a personal access token
Create a Supabase personal access token, scope it to the project and grant only the permissions the enabled tools need. Send it as a bearer token in the Authorization header. Keep it in an environment variable or secret store, not in shared configuration.
- If your client requires a client ID and secret
Create an OAuth app in your organization's OAuth apps settings and give its client ID and secret to the client. Supabase says to grant write access to all scopes, because finer scopes are not supported yet.
- List the server's tools
Your client should list the server's tools. That confirms the connection, not every API permission.
What we observed
- 5 Nov 2026: HTTP 401 with WWW-Authenticate resource_metadata https://mcp.supabase.com/.well-known/oauth-protected-resource/mcp, which names the authorization server https://api.supabase.com, the resource name "Supabase MCP (Beta)", and scopes such as organizations:read, projects:read, projects:write, database:read and database:write.
Supabase MCP questions
What is the Supabase MCP server URL?
The official Supabase MCP server is at https://mcp.supabase.com/mcp and uses the Streamable HTTP transport.
How do I authenticate with the Supabase MCP server?
Sign in with OAuth when your client prompts you. For CI or headless use, use a personal access token: Create a Supabase personal access token, scope it to the project and grant only the permissions the enabled tools need. Send it as a bearer token in the Authorization header. Keep it in an environment variable or secret store, not in shared configuration.
Which AI clients can use the Supabase MCP server?
Supabase's documentation covers Claude Code, Codex, Cursor, VS Code and ChatGPT. Other clients that support remote Streamable HTTP MCP servers may also work.
What do I need before connecting Supabase MCP?
A Supabase account. During sign-in you choose the organization that contains your project. The server acts with your developer permissions in the chosen organization. Entering Edge Function secrets also needs permission to read and write secrets for the project. Branching is experimental and requires a paid plan. Creating projects and branches asks you to confirm the cost. Supabase warns about prompt injection and says not to give the server to customers or end users. Keep manual approval of tool calls on, and consider project scoping, read-only mode and restricted feature groups.
Has this Supabase MCP guide been tested?
Supabase's documentation was reviewed on 2026-11-05. It is not a tested connection; your account and permissions decide which tools work.
Sources and review
Supabase's documentation was checked on the dates shown. This guide follows the MCP Connect connection-guide draft, bound to the exact Registry record it describes. It is not a tested connection: your account and permissions decide which tools work.
Guide source and binding
MCP connection guide (draft 0.1) for com.supabase/mcp 0.14.0, bound to /remotes/0 of the Registry record by SHA-256 0e53c5069ad4….
- supabase.com/docs/guides/getting-started/mcp · checked 5 Nov 2026
- registry.modelcontextprotocol.io/v0.1/servers/com.supabase%2Fmcp/versions/0.14.0 · checked 5 Nov 2026
- modelcontextprotocol.io/specification/2026-07-28/basic/authorization · checked 5 Nov 2026