S
Supabase MCP Server
Integrates AI assistants with Supabase through MCP, enabling SQL queries, data insertion, and auth administration on your Supabase project.
stdioLocalApiKeynpm
What This Server Exposes
Tools
queryinsertauth_admin
Resources
- •table data
- •auth user records
Setup Instructions
- 1Create or open a Supabase project at supabase.com
- 2Retrieve your project URL and service role key from Project Settings > API
- 3Add the Supabase server config to your Claude Desktop configuration
- 4Set the SUPABASE_URL and SUPABASE_KEY environment variables
- 5Restart Claude Desktop
Configuration
Claude Desktop Configuration
claude_desktop_config.json
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-supabase"
],
"env": {
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_KEY": "your-service-role-key"
}
}
}
}Environment Variables
| Name | Required | Secret | Description |
|---|---|---|---|
| SUPABASE_URL | ✓ | — | Your Supabase project URL (e.g. https://yourproject.supabase.co) |
| SUPABASE_KEY | ✓ | 🔒 | Supabase service role key for admin-level database and auth access |
SUPABASE_URL
Your Supabase project URL (e.g. https://yourproject.supabase.co)
Required
SUPABASE_KEY
Supabase service role key for admin-level database and auth access
Required🔒 Secret
Server Manifest
No official server.json manifest found. Generate one with our MCP server.json Generator →
Compatibility
Claude DesktopClaude Code
⚠
Safety Notes
The service role key bypasses Row Level Security and has full admin access to your Supabase project including auth. Never expose this key publicly or use it in client-side code. Consider using an anon key with RLS for less privileged access.
This listing is for informational purposes only. CodexSpot is not affiliated with Supabase MCP Server.