Supabase MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SUPABASE_KEYYesYour Supabase service_role key (NOT the anon key)
SUPABASE_URLYesYour Supabase project URL (e.g., https://your-project.supabase.co or http://localhost:54321 for local projects)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
query_table

Query a specific table with schema selection and where clause support

generate_types

Generate TypeScript types for your Supabase database schema