🔌

Supabase MCP

Database1,600

Interact with Supabase for PostgreSQL database, auth, storage, realtime, and edge functions.

Claude DesktopCursorWindsurf

Overview

Interact with Supabase for PostgreSQL database, auth, storage, realtime, and edge functions.

Setup

Run with npx:

npx -y @modelcontextprotocol/server-supabase

Configuration

SUPABASE_URL, SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY

Documentation

Supabase MCP (Enhanced)

Overview

Supabase MCP provides comprehensive integration with Supabase, enabling AI agents to interact with PostgreSQL database, authentication, storage, realtime, and edge functions.

Features

  • PostgreSQL query execution
  • Authentication management
  • Storage operations
  • Realtime subscriptions
  • Edge function invocation

Installation

npx -y @modelcontextprotocol/server-supabase

Configuration

Set the following environment variables:

export SUPABASE_URL=https://your-project.supabase.co
export SUPABASE_ANON_KEY=your_anon_key
export SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

Get your keys from https://app.supabase.com/project/_/settings/api.

Available Tools

ToolDescription
queryExecute SQL queries
selectSelect from a table
insertInsert records
updateUpdate records
deleteDelete records
auth_sign_inAuthenticate user
storage_listList storage buckets

Usage Examples

Query Database

{
  "query": "SELECT * FROM users WHERE active = true"
}

Insert Record

{
  "table": "todos",
  "data": {
    "title": "Complete project",
    "completed": false
  }
}

Pros

  • ✅ Full Supabase integration
  • ✅ PostgreSQL queries
  • ✅ Auth and storage
  • ✅ Realtime support

Cons

  • ❌ Requires Supabase project
  • ❌ Multiple credentials needed
  • ❌ Rate limits apply

Resources