Supabase MCP Server
MCP ServerFreeManage Supabase databases, auth, and storage via MCP.
Capabilities14 decomposed
mcp-standardized supabase api exposure via multiple transport mechanisms
Medium confidenceExposes Supabase Management API and PostgREST API through the Model Context Protocol using a monorepo architecture with three distribution channels: hosted HTTP endpoint at mcp.supabase.com with OAuth 2.1 Dynamic Client Registration, npm package with three entry points (CLI binary, programmatic SDK, server factory), and local development via Supabase CLI at localhost:54321/mcp. Uses a platform abstraction layer that decouples transport mechanisms from tool implementations, enabling any MCP-compatible client (Claude Desktop, Cursor, VS Code Copilot, Windsurf) to connect without custom integrations.
Implements MCP protocol with platform abstraction layer that decouples transport mechanisms (HTTP, stdio, programmatic) from tool implementations, enabling single codebase to serve hosted, npm, and CLI distribution channels simultaneously. Uses feature groups configuration pattern to selectively enable tool categories (account, database, storage, edge functions, branching) per deployment context.
Unlike custom Supabase integrations for each AI tool, MCP standardization allows any MCP-compatible client to connect without tool-specific code, reducing maintenance burden and enabling cross-tool consistency.
sql query execution with postgrest api abstraction
Medium confidenceExecutes arbitrary SQL queries against Supabase PostgreSQL databases through a dedicated PostgREST MCP server (@supabase/mcp-server-postgrest) that translates MCP tool calls into PostgREST HTTP requests. Supports parameterized queries to prevent SQL injection, result streaming for large datasets, and automatic schema introspection. The implementation uses a query builder pattern that constructs PostgREST-compatible request payloads, handling authentication via Supabase service role keys and managing connection pooling through the PostgREST proxy layer.
Separates PostgREST API access into dedicated @supabase/mcp-server-postgrest package, enabling independent versioning and deployment from Management API server. Uses PostgREST's native HTTP API rather than direct database drivers, providing automatic connection pooling, row-level security enforcement, and API-level access control without exposing raw database credentials to MCP clients.
PostgREST abstraction provides row-level security and API-level access control without exposing database credentials, whereas direct database drivers would require managing connection secrets and RLS policies at the driver level.
mock system and testing framework for tool development
Medium confidenceProvides a comprehensive testing framework and mock system for developing and testing MCP tools without requiring live Supabase project access. The mock system includes mock implementations of Supabase APIs, tool registry mocking, and test utilities for verifying tool behavior. Enables developers to write unit tests for tools, test error handling and edge cases, and validate tool schemas without external dependencies. The testing framework integrates with standard Node.js testing tools and provides fixtures for common test scenarios.
Provides first-class testing framework and mock system as part of @supabase/mcp-utils package, enabling developers to test tools without external dependencies. Mock system includes realistic Supabase API response patterns and error scenarios for comprehensive test coverage.
Integrated mock system enables fast, deterministic testing without external dependencies, whereas testing against live Supabase projects would be slow, non-deterministic, and require managing test data cleanup.
oauth 2.1 dynamic client registration for hosted endpoint authentication
Medium confidenceImplements OAuth 2.1 Dynamic Client Registration protocol for authenticating MCP clients connecting to the hosted HTTP endpoint at mcp.supabase.com/mcp. The authentication flow uses Dynamic Client Registration to dynamically register MCP clients without pre-configured credentials, issuing access tokens that authorize tool access. The implementation handles token validation, scope-based access control, and token refresh for long-lived connections. Supports both interactive OAuth flows for user-facing clients and service account flows for programmatic access.
Implements OAuth 2.1 Dynamic Client Registration for hosted endpoint, enabling secure multi-tenant access without pre-sharing credentials. Provides scope-based access control integrated with feature groups pattern for fine-grained capability management.
OAuth 2.1 Dynamic Client Registration provides secure, standards-based authentication without pre-sharing credentials, whereas static API key authentication would require managing secrets for each client and lack fine-grained access control.
multi-distribution channel support with unified tool implementations
Medium confidenceSupports three independent distribution channels (hosted HTTP endpoint, npm package, CLI via stdio) with unified tool implementations that work across all channels without modification. The platform abstraction layer handles transport-specific details (HTTP request/response, stdio message protocol, programmatic function calls) while tools implement business logic once. Each distribution channel can be deployed independently with different feature group configurations, authentication mechanisms, and operational requirements. The architecture enables users to choose the distribution channel that best fits their deployment model.
Implements unified tool implementations that work across three independent distribution channels (hosted HTTP, npm package, CLI) without modification, using platform abstraction layer to handle transport differences. Enables users to choose distribution channel based on deployment requirements without tool code changes.
Multi-channel support with unified implementations reduces maintenance burden and enables flexible deployment, whereas channel-specific implementations would require duplicating tool logic and managing version compatibility across channels.
mock system for testing mcp servers without live api access
Medium confidenceProvides a testing framework and mock API system that allows MCP server implementations to be tested without requiring live Supabase API credentials or network access. The mock system (@supabase/mcp-utils) includes predefined mock responses for common operations and allows custom mock configurations for testing edge cases. Tests can verify tool behavior, error handling, and response formatting without external dependencies.
Provides mock system integrated into @supabase/mcp-utils, allowing all MCP server implementations to share testing infrastructure. Mocks are TypeScript-based, enabling type-safe test configurations.
Eliminates need for live API credentials in tests vs integration testing, while providing more realistic behavior than simple stub responses because mocks include error scenarios and edge cases
database table and schema management through management api
Medium confidenceManages Supabase database structure (create/drop/alter tables, columns, indexes, constraints) through the Supabase Management API, translated into MCP tool calls. Implements a schema-aware tool architecture that validates DDL operations before execution, provides schema introspection for understanding current database structure, and supports migration workflows. The platform abstraction layer handles API authentication and request construction, while tool implementations encapsulate domain logic for table creation, column modifications, and constraint management.
Implements schema management through Supabase Management API rather than direct SQL execution, providing API-level validation, audit logging, and integration with Supabase's branching system for preview databases. Tool architecture uses feature groups pattern to selectively enable schema operations per deployment context, preventing accidental schema modifications in production.
Management API approach provides audit trails, integration with Supabase branching for safe schema testing, and API-level access control, whereas raw SQL execution would bypass these safeguards and require manual permission management.
authentication and user account management via management api
Medium confidenceManages Supabase Auth users (create, list, update, delete, reset passwords) through the Supabase Management API, exposed as MCP tools. Implements account management tool group that handles user lifecycle operations, password resets, and user metadata updates. The implementation validates user input, enforces authentication policies, and integrates with Supabase's built-in auth system without requiring direct access to auth tables. Tool architecture includes safety checks to prevent unauthorized user modifications and audit logging for compliance.
Separates user management from application-level auth logic by using Supabase Management API, enabling AI assistants to perform admin-level user operations without exposing auth secrets or requiring direct database access. Implements safety checks and audit logging at the tool level to prevent unauthorized user modifications.
Management API approach provides centralized user management with audit trails and rate limiting, whereas direct database manipulation would bypass Supabase's auth system safeguards and require managing auth secrets at the application level.
storage bucket and file management through management api
Medium confidenceManages Supabase Storage buckets and files (create buckets, upload/download/delete files, set access policies) through MCP tools that call the Supabase Management API and Storage API. Implements storage tool group with operations for bucket lifecycle management, file operations with metadata, and access control configuration. The implementation handles file streaming for large uploads/downloads, manages authentication tokens for Storage API access, and provides bucket policy configuration for public/private access patterns.
Combines Management API for bucket lifecycle operations with Storage API for file operations, providing unified MCP interface for complete storage management. Implements signed URL generation for secure file access without exposing storage credentials, and handles file streaming for efficient large file transfers.
Unified MCP interface abstracts away separate Management and Storage API calls, whereas direct API usage would require clients to manage authentication tokens and request construction for both APIs separately.
edge function deployment and invocation through management api
Medium confidenceDeploys and invokes Supabase Edge Functions (serverless TypeScript functions) through MCP tools that call the Supabase Management API. Implements edge functions tool group with operations for function deployment from code strings, function invocation with parameters, and function metadata management. The implementation handles function code compilation, manages deployment to Deno runtime, and provides request/response handling for function invocation with automatic serialization of parameters and results.
Enables AI assistants to generate, deploy, and invoke TypeScript edge functions without manual deployment steps, using Management API for function lifecycle and direct HTTP invocation for execution. Handles Deno runtime compilation and distribution transparently, abstracting deployment complexity from MCP clients.
MCP-based function deployment allows AI assistants to generate and deploy functions end-to-end, whereas traditional approaches require manual code commits, CI/CD pipeline triggers, and separate deployment verification steps.
database branching and preview environment management
Medium confidenceManages Supabase database branching (create preview branches, promote branches to production, manage branch-specific schemas) through MCP tools that call the Supabase Management API. Implements branching tool group with operations for branch creation from production schema, branch promotion with data migration, and branch deletion. The implementation integrates with Supabase's branching system to provide isolated preview databases for testing schema changes and data operations before production deployment, with automatic schema synchronization and data seeding capabilities.
Integrates with Supabase's native branching system to provide isolated preview databases managed through MCP, enabling AI assistants to orchestrate safe schema testing and migration workflows without manual environment management. Provides automatic schema synchronization and data seeding for realistic testing scenarios.
Native Supabase branching integration provides isolated databases with automatic schema sync, whereas alternative approaches using separate database instances would require manual schema synchronization and data migration management.
feature group-based tool configuration and selective capability enablement
Medium confidenceImplements a feature groups configuration pattern that selectively enables tool categories (account management, database operations, storage, edge functions, branching, cost management) per MCP server deployment context. The architecture uses configuration objects that specify which tool groups to enable, allowing different deployment scenarios (hosted HTTP endpoint, npm package, CLI) to expose different capability sets based on security and operational requirements. This pattern enables fine-grained access control without code duplication, using a shared tool registry that tools register themselves against.
Implements feature groups as first-class configuration pattern in MCP server architecture, enabling selective tool enablement without code duplication or conditional logic scattered throughout tool implementations. Uses shared tool registry pattern where tools self-register, allowing dynamic tool discovery and configuration validation.
Feature groups approach provides centralized capability management and deployment-specific tool configuration, whereas alternative approaches using environment variables or runtime checks would scatter access control logic throughout tool implementations and make capability auditing difficult.
cost management and usage monitoring through management api
Medium confidenceProvides cost tracking and usage monitoring tools that query Supabase Management API for project usage metrics (database size, storage usage, function invocations, API requests). Implements cost management tool group that retrieves billing information, usage statistics, and cost projections. The implementation aggregates usage data from multiple Supabase services and presents it through a unified MCP interface, enabling AI assistants to provide cost-aware recommendations and help teams optimize resource usage.
Aggregates usage metrics from multiple Supabase services (database, storage, functions, API) into unified cost management tools, providing AI assistants with holistic cost visibility. Integrates with Supabase Management API to provide real-time usage data without requiring direct access to billing systems.
Unified cost management interface through MCP allows AI assistants to provide cost-aware recommendations, whereas manual cost tracking through Supabase dashboard would require human intervention and lack AI-driven optimization suggestions.
monorepo package architecture with shared utilities and platform abstraction
Medium confidenceImplements a TypeScript monorepo using pnpm workspaces with three npm packages: @supabase/mcp-server-supabase (Management API server), @supabase/mcp-utils (shared utilities), and @supabase/mcp-server-postgrest (PostgREST API server). The @supabase/mcp-utils package provides foundational abstractions including platform interface definitions, API client implementations, tool registry patterns, and testing utilities. The platform abstraction layer decouples transport mechanisms (HTTP, stdio, programmatic) from tool implementations, enabling code reuse across distribution channels. Uses Biome for code formatting and linting with pnpm workspace filtering for build orchestration.
Separates platform abstraction layer from tool implementations using monorepo architecture, enabling independent evolution of transport mechanisms and tool capabilities. Provides shared utilities package (@supabase/mcp-utils) that other MCP servers can depend on, creating ecosystem of compatible servers.
Monorepo with shared utilities reduces code duplication and enables consistent tool implementations across distribution channels, whereas separate repositories would require duplicating transport logic and maintaining version compatibility manually.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with Supabase MCP Server, ranked by overlap. Discovered automatically through the match graph.
@supabase/mcp-server-postgrest
MCP server for PostgREST
supabase-mcp-server
Query MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning, access to logs and much more.
Supabase
** - Connects to Supabase platform for database, auth, edge functions and more.
Supabase Admin
Manage Supabase projects end to end across database, auth, storage, and realtime. Automate migrations and schema sync, generate types and CRUD APIs, and handle roles, policies, and secrets safely. Monitor performance and security with real-time metrics, logs, and health checks.
@supabase/mcp-server-supabase
MCP server for interacting with Supabase
@supabase/mcp-server-supabase
MCP server for interacting with Supabase
Best For
- ✓AI assistant developers building Supabase integrations
- ✓Teams using multiple AI tools (Claude, Cursor, Windsurf) that need unified Supabase access
- ✓Supabase users wanting LLM-driven database and infrastructure management
- ✓MCP ecosystem builders extending Supabase capabilities
- ✓AI agents performing data retrieval and manipulation tasks
- ✓LLM-driven data analysis and reporting workflows
- ✓Developers building natural language database query interfaces
- ✓Teams automating database operations through AI assistants
Known Limitations
- ⚠Hosted HTTP endpoint requires OAuth 2.1 Dynamic Client Registration setup, adding authentication complexity vs direct API key usage
- ⚠Transport abstraction layer adds ~50-100ms latency per request due to protocol translation overhead
- ⚠CLI execution via stdio requires Node.js runtime; not available as native binary for all platforms
- ⚠Self-hosted instances must explicitly enable MCP endpoint; not enabled by default in Supabase CLI
- ⚠PostgREST API has row limits (default 1000 rows per request); large result sets require pagination implementation
- ⚠Complex queries with CTEs, window functions, or recursive queries may exceed PostgREST URL length limits
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
About
Community MCP server for Supabase backend-as-a-service. Provides tools for database queries, table management, auth user operations, storage bucket access, and edge function invocation.
Categories
Alternatives to Supabase MCP Server
Search the Supabase docs for up-to-date guidance and troubleshoot errors quickly. Manage organizations, projects, databases, and Edge Functions, including migrations, SQL, logs, advisors, keys, and type generation, in one flow. Create and manage development branches to iterate safely, confirm costs
Compare →AI-optimized web search and content extraction via Tavily MCP.
Compare →Scrape websites and extract structured data via Firecrawl MCP.
Compare →Are you the builder of Supabase MCP Server?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →