Supabase
Supabase MCP Server
Manage Supabase projects, execute SQL, and apply migrations from your AI coding assistant.
Last reviewed Mar 2, 2026
Install
claude mcp add supabase --transport stdio -- npx -y @supabase/mcp-server-supabase@latestEnvironment variables required:
SUPABASE_ACCESS_TOKEN=your-supabase-access-tokenAvailable tools
| Tool | Description |
|---|---|
| list_tables | List all tables in a Supabase project database |
| execute_sql | Execute SQL queries against your Supabase database |
| get_project | Get details about a specific Supabase project |
| list_projects | List all Supabase projects in your account |
| apply_migration | Apply a database migration to your project |
What it does
The Supabase MCP Server provides your AI coding assistant with direct access to the Supabase management API and your project databases. It can list projects, execute SQL queries, inspect table schemas, and apply database migrations -- making it a powerful tool for full-stack development with Supabase.
This is Supabase's official MCP server, designed to work seamlessly with their platform. It goes beyond simple database access by supporting project management operations like listing projects, checking configurations, and applying schema migrations.
Use cases
- Execute SQL queries to explore your database schema and data during development
- Apply database migrations as part of your development workflow
- List and inspect tables to inform AI-generated data access code
- Manage multiple Supabase projects from your editor
- Generate TypeScript types based on your actual database schema
- Debug data issues by querying production data directly
Getting started
- Generate a Supabase Access Token at supabase.com/dashboard/account/tokens. This token provides access to all projects in your account.
- Set the
SUPABASE_ACCESS_TOKENenvironment variable to your token value. - The server provides access to all Supabase projects associated with your account. Specify project references when executing queries or managing specific projects.
- For database migrations, ensure your local Supabase CLI is configured and your migration files are in the standard
supabase/migrationsdirectory.
Compatibility
Related MCP servers
AWS MCP Server
Interact with AWS services including S3, Lambda, CloudWatch, and ECS from your AI coding assistant.
Context7 MCP Server
Fetch up-to-date library documentation and code examples directly into your AI coding assistant.
Docker MCP Server
Manage Docker containers, images, and builds directly from your AI coding assistant.