supabase
Enables direct Postgres queries, storage management, user authentication, edge function invocation, and project administration through 24 grouped tools.
README
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
Setup
cd mcp-supabase
npm install
cp .env.example .env # Edit with your credentials
node server.cjs
Environment Variables
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
Yes | Postgres connection string from Supabase dashboard |
SUPABASE_SERVICE_ROLE_KEY |
Yes | Service role key for Storage/Auth operations |
SUPABASE_PROJECT_REF |
Yes | Project reference ID (from dashboard URL) |
SUPABASE_ACCESS_TOKEN |
No | Personal access token for Management API |
SUPABASE_ANON_KEY |
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.json - Use environment variables in production
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.