supabase
Provides direct PostgreSQL database access, allowing SQL queries, schema and table inspection, row count retrieval, and calling PostgreSQL functions.
Integrates with Supabase, providing tools to manage databases, storage buckets and files, auth users, edge functions, and project settings via the Supabase Management API.
Click on "Install 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., "@supabaseshow me the first 10 rows from 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.
mcp-supabase
Supabase MCP server — Postgres direct + Storage REST + Auth + Edge Functions + Management API.
Features
24 tools covering Database, Storage, Auth, Edge Functions, and Project Management
Direct Postgres via
pgpool (no Supabase JS client needed)SSL support for Supabase pooler
Service role key for admin operations
Access token for Management API
Related MCP server: Supabase MCP Server - Self-Hosted Edition
Setup
cd mcp-supabase
npm install
cp .env.example .env # Edit with your credentials
node server.cjsEnvironment Variables
Variable | Required | Description |
| Yes | Postgres connection string from Supabase dashboard |
| Yes | Service role key for Storage/Auth operations |
| Yes | Project reference ID (from dashboard URL) |
| No | Personal access token for Management API |
| No | Anonymous key for client-side operations |
Tools
Database
execute_sql— Run arbitrary SQLlist_schemas— List database schemaslist_tables— List tables in a schemaget_schema— Get table schema detailsget_table_row_counts— Get row counts for all tablesrun_rpc— Call PostgreSQL functions
Storage
list_buckets— List storage bucketscreate_bucket— Create a storage bucketdelete_bucket— Delete a storage bucketlist_files— List files in a bucketupload_file— Upload a filedownload_file— Download a file (base64)delete_file— Delete a file
Auth
list_auth_users— List userscreate_auth_user— Create a userupdate_auth_user— Update a userdelete_auth_user— Delete a user
Edge Functions
list_edge_functions— List deployed functionsinvoke_edge_function— Invoke a function
Management
list_projects— List all projectsget_project— Get project details
MCP Configuration
{
"mcpServers": {
"supabase": {
"command": "node",
"args": ["path/to/server.cjs"]
}
}
}Security Notes
Service role key has admin access — use with caution
Never commit
.envorconfig.jsonUse environment variables in production
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables comprehensive management of self-hosted or cloud Supabase instances with 54+ tools for database operations, authentication, storage, real-time subscriptions, migrations, and monitoring through MCP protocol.
- FlicenseNot gradedqualityFmaintenanceEnables comprehensive management of self-hosted or cloud Supabase instances with 54+ tools for database operations, authentication, storage, real-time subscriptions, migrations, monitoring, and security auditing.7
- AlicenseNot gradedqualityDmaintenanceConnects Supabase projects to AI assistants, enabling them to manage database tables, execute SQL queries, and deploy Edge Functions through natural language. It provides a comprehensive suite of tools for project administration, including logs access, documentation search, and environment configuration.Apache 2.0
Related MCP Connectors
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
Connect to PlanetScale databases, branches, schema, query insights, and execute SQL
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Steph-ux/mcp-supabase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server