Supabase MCP Server
Enables read-only SQL queries against a PostgreSQL database, with tools for analyzing table statistics and relationships between tables
Connects to a Supabase PostgreSQL database, exposing table schemas as resources and providing tools for data analysis, SQL querying, and relationship exploration
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Supabase MCP Servershow me the schema for the users table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Supabase MCP Server
An MCP server that connects to a Supabase PostgreSQL database, exposing table schemas as resources and providing tools for data analysis.
Features
Connection to Supabase PostgreSQL database
Table schemas exposed as resources
Read-only SQL query tools
Prompts for common data analysis tasks
Related MCP server: Self-Hosted Supabase MCP Server
Setup
Clone this repository
Install dependencies:
npm installCopy
.env.exampleto.envand update with your Supabase credentials:cp .env.example .envEdit the
.envfile with your actual Supabase connection details
Running the Server
Using stdio (command line integration)
npm startUsing HTTP with SSE (for web integration)
npm run start:httpUsing with MCP Clients
This server can be used with any MCP-compatible client, including Claude.app and the MCP Inspector for testing.
Available Resources
schema://tables- Lists all tables in the databaseschema://table/{tableName}- Shows schema for a specific table
Available Tools
query- Runs a read-only SQL query against the databaseanalyze-table- Gets basic statistics about a tablefind-related-tables- Discovers tables related to a given table
Available Prompts
table-exploration- Guides exploration of a specific tabledata-summary- Creates a summary of data in a tablerelationship-analysis- Analyzes relationships between tables
This server cannot be deployed
Maintenance
Related MCP Connectors
- SupabaseOAuthcom.supabase
MCP server for interacting with the Supabase platform
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that provides tools for interacting with Supabase databases, storage, and edge functions.45MIT
- FlicenseAqualityDmaintenanceA Model Context Protocol server that enables interaction with self-hosted Supabase instances, allowing developers to query database schemas, manage migrations, inspect statistics, and interact with Supabase features directly from MCP-compatible development environments.211-
- AlicenseNot gradedqualityDmaintenanceA powerful MCP server for Supabase that provides interactive tools and React widgets for exploring and querying your Supabase database.5,689,041 npm20MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides deep schema introspection for Supabase/Postgres, exposing tables, columns, views, enums, RLS policies, functions, and more.133MIT