# Connect Supabase to Your AI Agent (Universal MCP)

> Use your AI to build software, manage databases, and query data in Supabase — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http supabase https://api.universalmcp.app/mcp/supabase`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/supabase` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "supabase", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Supabase | Category: DevOps & IT/Security (Supabase) | Auth: Encrypted API key or guided local/on-prem setup | Deployment: hybrid
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Database schema, Auth and RLS policies, Migrations and writes; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=supabase | Guide: https://universalmcp.app/mcp/supabase
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (68 actions: 27 Read, 41 Write)
Perform over 60 actions across database & schema, storage & files, auth & users, edge functions & cron, queues & vectors, backups & branching, and security & monitoring. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Database & Schema (10):** List Database Tables (read), Query Database With SQL (read), Query Table Rows (read), Create Database Extension (write), Create Database Function (write), Create Database Table (write), Create Schema Migration (write), Create Table Rows (write), Delete Table Rows (write), Update Table Rows (write)
- **Storage & Files (10):** Get Storage File (read), Get Transformed Image (read), List Storage Buckets (read), List Storage Objects (read), Create Signed Download URL (write), Create Storage Bucket (write), Delete Storage Object (write), Update Bucket Visibility (write), Update Storage Access Policy (write), Upload Storage File (write)
- **Auth & Users (9):** Audit Auth Events (read), Get Auth User Profile (read), List Auth Users (read), Create Auth User (write), Delete Auth User (write), Send Password Reset Email (write), Send User Invitation (write), Update Auth Provider Settings (write), Update Auth User (write)
- **Edge Functions & Cron (9):** Audit Cron Run History (read), Get Edge Function Logs (read), List Cron Jobs (read), List Edge Functions (read), Create Edge Function (write), Delete Cron Job (write), Schedule Cron Job (write), Update Cron Job Schedule (write), Update Edge Function Secrets (write)
- **Queues & Vectors (7):** Pull Queue Messages (read), Search Vector Embeddings (read), Create Message Queue (write), Create Vector Index (write), Delete Queue Message (write), Send Queue Message (write), Upload Vector Embeddings (write)
- **Backups & Branching (6):** Get Branch Migration Status (read), List Database Backups (read), Create Preview Branch (write), Delete Preview Branch (write), Schedule Point In Time Recovery (write), Submit Branch For Merge (write)
- **Security & Monitoring (6):** Audit Database Logs (read), Audit Performance Advisors (read), Audit Security Advisors (read), Check Usage Metrics (read), Create Project API Key (write), Update Row Level Security (write)
- **Projects & Organizations (5):** Get Project Settings (read), List Supabase Projects (read), Create Supabase Project (write), Delete Supabase Project (write), Update Project Status (write)
- **Data APIs (3):** Query Data Via GraphQL (read), Query Rows Via REST API (read), Create Rows Via REST API (write)
- **Realtime & Messaging (3):** Track Table Changes (read), Record Presence State (write), Send Realtime Broadcast (write)

## Example Prompts for Supabase
- **Slow query audit:** "Pull the top 10 slowest queries from my Supabase project over the last 7 days and group them by table."
- **RLS policy review:** "Review row level security policies on the customers table in Supabase and flag any that allow public reads."
- **Storage usage check:** "Summarize Supabase storage buckets by size and list files over 50 MB that were uploaded in the past month."
- **Draft index migration:** "Draft a SQL migration to add an index on orders.customer_id in Supabase and hold it for my approval before running."
