# 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. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use ```json { "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](https://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](https://github.com/supabase-community). Licensed under Apache 2.0. > [supabase-community/supabase-mcp](https://github.com/supabase-community/supabase-mcp) — 2,600+ GitHub stars --- Source: https://tokrepo.com/en/workflows/e54d5caa-6a9d-449d-aef7-5e7cf8de2781 Author: MCP Hub