Supabase MCP
by Supabase
AI-powered Supabase project management with database, functions, and storage
database Node.js Intermediate Verified
β 2.5k stars π
Updated: 1mo ago
Description
MCP server for AI assistants to interact with Supabase projects. Provides comprehensive tools for database queries, schema management, SQL migrations, Edge Functions deployment, TypeScript type generation, and storage bucket management. Available as a remote endpoint at mcp.supabase.com using OAuth 2.1 authentication. Includes safety features like read-only mode for production databases, project scoping to limit access, and prompt injection protections. Enables AI assistants to manage the full Supabase stack β from Postgres queries to deploying serverless functions and managing file storage.
β Best for
Teams using Supabase who want AI assistants to manage their backend infrastructure
βοΈ Skip if
You need a generic Postgres client or use a different backend-as-a-service
π‘ Use cases
- Querying and managing Postgres databases from AI assistants
- Running SQL migrations and managing database schemas with AI guidance
- Deploying and managing Supabase Edge Functions via natural language
- Generating TypeScript types from database schema for frontend development
π Pros
- β Full Supabase stack coverage β database, functions, storage, and types
- β Read-only mode and project scoping for production safety
- β OAuth 2.1 remote endpoint β no local installation required
- β Prompt injection protections for secure AI interactions
π Cons
- β Remote-only β no local STDIO package available
- β Requires OAuth 2.1 setup which adds initial configuration steps
- β Limited to Supabase platform β not a generic Postgres MCP server
π§ Exposed tools (9 tools)
| Tool | Category | Description |
|---|---|---|
| execute_sql | database | Execute SQL queries against a Supabase Postgres database |
| manage_schema | database | View and modify database schema, tables, and columns |
| deploy_edge_functions | deployment | Deploy serverless Edge Functions to Supabase |
| generate_types | development | Generate TypeScript types from the database schema |
| search_docs | documentation | Search Supabase documentation for reference |
| list_projects | management | List all Supabase projects accessible to the user |
| create_project | management | Create a new Supabase project |
| get_logs | monitoring | Retrieve logs from Supabase services |
| manage_storage | storage | Manage storage buckets and files |
β‘ Installation
Prerequisites:
- β’ Node.js v18+
- β’ Supabase access token (OAuth 2.1)
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
Enable read-only mode when connecting to production databases to prevent accidental writes. Use project scoping to restrict which Supabase projects the AI can access. The search_docs tool is great for finding Supabase documentation while working.
π Alternatives
Quick info
- Author
- Supabase
- License
- Apache-2.0
- Runtime
- Node.js 18+
- Transport
- β
- Category
- database
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows