MCP ConfigsMar 31, 2026·2 min read

Supabase MCP — Database & Auth for AI Agents

Official Supabase MCP server. Connect AI agents to Supabase for database queries, auth management, storage, edge functions, and real-time subscriptions. 2.6K+ stars.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server-supabase@latest", "--access-token", "sbp_YOUR_TOKEN"]
    }
  }
}

Get your access token from supabase.com/dashboard/account/tokens.


Intro

The official Supabase MCP server connects AI coding agents to your Supabase projects. Query databases with SQL, manage authentication users, upload files to storage, deploy edge functions, and subscribe to real-time changes — all from natural language via Claude Code, Cursor, or any MCP client. 2,600+ GitHub stars, Apache 2.0.

Best for: Developers using Supabase who want AI agents to manage their backend Works with: Claude Code, Cursor, Windsurf, Gemini CLI, any MCP client


Available Tools

Tool Description
list_projects List all Supabase projects
execute_sql Run SQL queries against your database
list_tables Show all tables and their schemas
apply_migration Create and apply database migrations
list_functions List edge functions
deploy_function Deploy an edge function
list_storage_buckets List storage buckets
list_auth_users List authenticated users
get_project_url Get project API URL and keys
get_logs Query project logs

Example

Ask your AI agent:

"Show me all users who signed up this week, grouped by auth provider"

The agent runs execute_sql with the appropriate query against your Supabase database.


FAQ

Q: What is Supabase MCP? A: The official MCP server connecting AI agents to Supabase for database queries, auth management, storage, and edge functions. 2.6K+ stars.

Q: Is it safe to give AI agents database access? A: The MCP server uses your Supabase access token with the same permissions you have. Use read-only tokens for exploration, full tokens for management.


🙏

Source & Thanks

Created by Supabase. Licensed under Apache 2.0. supabase-community/supabase-mcp — 2,600+ GitHub stars

Related Assets