Supabase MCP Server
Connect AI assistants directly to Supabase to manage tables, query PostgreSQL data, and interact with storage and edge functions.
About this Server
Connect Supabase projects directly with AI assistants using the Model Context Protocol (MCP). This server standardizes communication between Large Language Models and Supabase, enabling AI to manage tables, query data, and interact with project features like edge functions, storage, and branching. Customize access with read-only or project-scoped modes and select specific tool groups to fit your needs. Integrated tools cover account management, documentation search, database operations, debugging, and more, empowering AI to assist with development, monitoring, and deployment tasks in your Supabase environment efficiently and securely.
Direct low-latency RPC protocol communication with structured JSON schemas.
Restricted capability bounds to prevent accidental modifications or leakage.
Security & Best Practices
When to Use (and When Not To)
- •Full-stack developers using Supabase for backend infrastructure, authentication, and PostgreSQL database storage
- •Database administration, schema planning, and table migrations assisted by AI models
- •Edge function development, storage bucket configuration, and debugging live deployment errors
- •AI-assisted development workflows needing direct, scoped access to PostgreSQL data and project metadata
- •Production environments without read-only tokens or proper row level security policies configured
- •Mass bulk data exports of gigabyte-scale datasets that exceed LLM context window limits
- •Direct administrative bypass of Supabase auth and security rules on sensitive client-facing production tables
Install & Setup
claude mcp add supabase npx -y @supabase/mcp-serverExposed Tools & Endpoints
7 toolsFunctions your AI agent can invoke via this Model Context Protocol server
List database tables, view definitions, foreign keys, and column schema types in the connected Supabase database.
Run read-only or parameterized SQL queries against PostgreSQL tables with safe execution bounds.
Apply DDL migrations, create tables, update constraints, and manage database schema evolutions.
Inspect storage buckets, upload assets, download files, and configure public or private access policies.
Inspect, test, and deploy Supabase Edge Functions written in TypeScript or Deno.
Search official Supabase documentation, guides, and client SDK references directly within LLM context.
Query real-time Supabase project logs, API gateway latency metrics, and database error traces.
