mcpservers.md

Supabase MCP

Official Supabase MCP server — manage your Supabase projects, run SQL, handle migrations, and interact with Edge Functions via AI.

TRUSTED · Official by Supabase
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server-supabase@latest", "--access-token", "<your-personal-access-token>"]
    }
  }
}

Paste into your client's MCP configuration file.

"List all tables in my Supabase database and show their row counts"

Easy Setup

API key or simple config

Free

Free for Supabase free tier. Your Supabase plan costs apply separately.

Moderate usage
  • You're building an app on Supabase and want AI help with schema and queries
  • You need to inspect production or staging data without leaving your editor
  • You want AI to draft and apply migrations based on conversation
  • You're debugging auth issues and want to query the auth schema
  • You use Firebase, PlanetScale, or self-hosted Postgres (use those specific servers)
  • You want to give AI write access to production without a review gate
  • You need real-time WebSocket subscriptions from the MCP server (not supported)
1

Schema Design with AI

Discuss a feature and let AI generate and apply the migration.

"Add a 'tags' jsonb column to the posts table with a GIN index and create the migration"

2

Data Investigation

Run ad-hoc queries to debug issues or understand user behavior.

"Show me the 10 users who signed up most recently and their completed onboarding steps"

3

Edge Function Deployment

Write, deploy, and test Edge Functions through conversation.

"Create an Edge Function that sends a welcome email when a new user signs up"

Imagine telling your AI: 'Show me the last 100 signups from the users table' or 'Create a new migration that adds a created_at column' — and it manages your Supabase backend directly. This server connects your AI to Supabase so it can query databases, run migrations, deploy Edge Functions, and manage auth and storage.

The official Supabase MCP server gives AI assistants comprehensive access to the Supabase platform. Manage databases, run SQL queries, handle migrations, configure authentication, manage storage buckets, and interact with Edge Functions — all through natural language.

Maintained by the Supabase team with deep integration into the Supabase CLI and dashboard.

GitHub 3.2kUpdated Feb 14, 2025Apache-2.0
Claude Cursor Windsurf Cline
#supabase#postgres#database#backend-as-a-service#official