Supabase MCP Server
Supabase's official, remote MCP server for managing your projects, tables, database branches, config and queries, connected through OAuth with no local install required.
Overview
Supabase MCP Server is Supabase's own hosted MCP endpoint for managing a Supabase project without leaving your AI client. It's a single URL you connect to, with no local process to run, since Supabase runs the server side for you.
How it works
- Connecting to
mcp.supabase.com/mcptriggers an OAuth login, and you pick which Supabase organization and project the client should have access to. - It covers project-level management: creating and inspecting tables, reading configuration, and running queries against your database through natural language rather than the SQL editor.
- A
project_refparameter and aread_onlyflag on the connection URL let you scope a client to one specific project and, optionally, block every write-capable tool for that connection. - Self-hosted and local (Supabase CLI) Supabase instances also expose an MCP endpoint, though currently with a smaller set of tools and without OAuth, since there's no central Supabase account involved.
- The repository also ships a separate PostgREST MCP server as a companion package, for exposing your own REST API to your own users' agents rather than managing the Supabase project itself.
Examples
"Connect to my Supabase project and show me the schema of the orders
table, then write a query that finds orders with no matching customer
record."
Notes
Supabase's own security guidance recommends reading their MCP security best practices before connecting an agent to a real project, since the server can read and modify live data depending on the scopes you grant it.
Installation
Nothing runs locally, this is a remote, Supabase-hosted server. You just need an MCP client that supports HTTP servers and a Supabase account.
- Add the server to your MCP client's config using the block in the sidebar.
- Restart your client. It opens a browser window for OAuth login.
- Pick which Supabase organization and project the client should access.
- Optional: add a
project_refandread_only=trueto the URL to scope the connection to one project or block writes. - Read Supabase's own MCP security guidance before connecting it to a project with real data.
Related assets
Awesome MCP Servers
The largest community catalog of MCP servers: thousands of entries across dozens of categories (databases, browser automation, cloud, communication and more), tagged by language and scope.
Context7
Pulls updated, version-specific documentation and code examples straight from the source into your prompt, so agents stop citing outdated APIs or hallucinating ones that don't exist.
PostgreSQL Database Administrator
Acts as a hands-on PostgreSQL DBA through the official VS Code PostgreSQL extension: connects to a real server, inspects schemas, runs and optimizes queries, and handles backups, instead of guessing from application code.