by supabase-community
Connect Supabase projects to AI with Supabase MCP Server. Standardize LLM communication for secure, efficient developmen
Connects AI assistants directly to Supabase projects, allowing them to manage database tables, query data, and interact with Supabase features like storage and edge functions.
Supabase MCP Server is an official MCP server published by supabase-community that provides AI assistants with tools and capabilities via the Model Context Protocol. Connect Supabase projects to AI with Supabase MCP Server. Standardize LLM communication for secure, efficient developmen It is categorized under databases.
You can install Supabase MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server supports remote connections over HTTP, so no local installation is required.
Apache-2.0
Supabase MCP Server is released under the Apache-2.0 license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Enable Claude to query your database directly using natural language
Example
Ask 'Show me top 10 customers by revenue this month' and get SQL results instantly
Eliminate manual SQL writing for ad-hoc queries, get insights 10x faster
Generate complex reports and analytics without leaving conversation
Example
Analyze sales trends, cohort retention, user behavior patterns conversationally
Democratize data access—non-technical team members can query databases
Understand database structure, relationships, and data models
Example
'Explain the user_orders table schema and its relationships'
Onboard engineers faster, explore unfamiliar databases efficiently
Share your MCP server with the developer community
Useful MCP listing: Supabase MCP Server is the kind of server we cite when onboarding engineers to host + tool permissions.
Supabase MCP Server is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
We evaluated Supabase MCP Server against two servers with overlapping tools; this profile had the clearer scope statement.
I recommend Supabase MCP Server for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
We wired Supabase MCP Server into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Supabase MCP Server reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend Supabase MCP Server for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Supabase MCP Server is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Supabase MCP Server is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
I recommend Supabase MCP Server for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
showing 1-10 of 51
Connect your Supabase projects to Cursor, Claude, Windsurf, and other AI assistants.
The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.
Before setting up the MCP server, we recommend you read our security best practices to understand the risks of connecting an LLM to your Supabase projects and how to mitigate them.
To configure the Supabase MCP server on your client, visit our setup documentation. You can also generate a custom MCP URL for your project by visiting the MCP connection tab in the Supabase dashboard.
Your MCP client will automatically prompt you to log in to Supabase during setup. Be sure to choose the organization that contains the project you wish to work with.
Most MCP clients require the following information:
{
"mcpServers": {
"supabase": {
"type": "http",
"url": "https://mcp.supabase.com/mcp"
}
}
}
If you don't see your MCP client listed in our documentation, check your client's MCP documentation and copy the above MCP information into their expected format (json, yaml, etc).
If you're running Supabase locally with Supabase CLI, you can access the MCP server at http://localhost:54321/mcp. Currently, the MCP Server in CLI environments offers a limited subset of tools and no OAuth 2.1.
For self-hosted Supabase, check the Enabling MCP server page. Currently, the MCP Server in self-hosted environments offers a limited subset of tools and no OAuth 2.1.
The following options are configurable as URL query parameters:
read_only: Used to restrict the server to read-only queries and tools. Recommended by default. See read-only mode.project_ref: Used to scope the server to a specific project. Recommended by default. If you omit this, the server will have access to all projects in your Supabase account. See project scoped mode.features: Used to specify which tool groups to enable. See feature groups.When using the URL in the dashboard or docs, these parameters will be populated for you.
Without project scoping, the MCP server will have access to all projects in your Supabase organization. We recommend you restrict the server to a specific project by setting the project_ref query parameter in the server URL:
https://mcp.supabase.com/mcp?project_ref=<project-ref>
Replace <project-ref> with the ID of your project. You can find this under Project ID in your Supabase project settings.
After scoping the server to a project, account-level tools like list_projects and list_organizations will no longer be available. The server will only have access to the specified project and its resources.
To restrict the Supabase MCP server to read-only queries, set the read_only query parameter in the server URL:
https://mcp.supabase.com/mcp?read_only=true
We recommend enabling this setting by default. This prevents write operations on any of your databases by executing SQL as a read-only Postgres user (via execute_sql). All other mutating tools are disabled in read-only mode, including:
apply_migration
create_project
pause_project
restore_project
deploy_edge_function
create_branch
delete_branch
merge_branch
reset_branch
rebase_branch
update_storage_config.
You can enable or disable specific tool groups by passing the features query parameter to the MCP server. This allows you to customize which tools are available to the LLM. For example, to enable only the database and docs tools, you would specify the server URL as:
https://mcp.supabase.com/mcp?features=database,docs
Available groups are: account, docs, database, debugging, development, functions, storage, and branching.
If this parameter is not set, the default feature groups are: account, database, debugging, development, docs, functions, and branching.
Note: This server is pre-1.0, so expect some breaking changes between versions. Since LLMs will automatically adapt to the tools available, this shouldn't affect most users.
The following Supabase tools are available to the LLM, grouped by feature.
Enabled by default when no project_ref is set. Use account to target this group of tools with the features option.
Note: these tools will be unavailable if the server is scoped to a project.
list_projects: Lists all Supabase projects for the user.get_project: Gets details for a project.create_project: Creates a new Supabase project.pause_project: Pauses a project.restore_project: Restores a project.list_organizations: Lists all organizations that the user is a member of.get_organization: Gets details for an organization.get_cost: Gets the cost of a new project or branch for an organization.confirm_cost: Confirms the user's understanding of new project or branch costs. This is required to create a new project or branch.Enabled by default. Use docs to target this group of tools with the features option.
search_docs: Searches the Supabase documentation for up-to-date information. LLMs can use this to find answers to questions or learn how to use specific features.Enabled by default. Use database to target this group of tools with the features option.
list_tables: Lists all tables within the specified schemas.list_extensions: Lists all extensions in the database.list_migrations: Lists all migrations in the database.apply_migration: Applies a SQL migration to the database. SQL passed to this tool will be tracked within the database, so LLMs should use this for DDL operations (schema changes).execute_sql: Executes raw SQL in the database. LLMs should use this for regular queries that don't change the schema.Enabled by default. Use debugging to target this group of tools with the features option.
get_logs: Gets logs for a Supabase project by service type (api, postgres, edge functions, auth, storage, realtime). LLMs can use this to help with debugging and monitoring service performance.get_advisors: Gets a list of advisory notices for a Supabase project. LLMs can use this to check for security vulnerabilities or performance issues.Enabled by default. Use development to target this group of tools with the features option.
get_project_url: Gets the API URL for a project.get_publishable_keys: Gets the anonymous API keys for a project. Returns an array of client-safe API keys including legacy anon keys and modern publishable keys. Publishable keys are recommended for new applications.generate_typescript_types: Generates TypeScript types based on the database schema. LLMs can save this to a file and use it in their code.Enabled by default. Use functions to target this group of tools with the features option.
list_edge_functions: Lists all Edge Functions in a Supabase project.get_edge_function: Retrieves file contents for an Edge Function in a Supabase project.deploy_edge_function: Deploys a new Edge Function to a Supabase project. LLMs can use this to deploy new functions or update existing ones.Enabled by default. Use branching to target this group of tools with the features option.
create_branch: Creates a development branch with migrations from production branch.list_branches: Lists all development branches.delete_branch: Deletes a development branch.merge_branch: Merges migrations and edge functions from a development branch to production.reset_branch: Resets migrations of a development branch to a prior version.rebase_branch: Rebases development branch on production to handle migration drift.Disabled by default to reduce tool count. Use storage to target this group of tools with the features option.
list_storage_buckets: Lists all storage buckets in a Supabase project.get_storage_config: Gets the storage config for a Supabase project.update_storage_config: Updates the storage config for a Supabase project (requRun data quality queries to catch anomalies and inconsistencies
Example
Find duplicate records, missing values, orphaned foreign keys automatically
Maintain data integrity with less manual SQL work
Prerequisites
Time Estimate
15-30 minutes including configuration and testing
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
MCP server acts as bridge between Claude and database, translating natural language to SQL queries and returning results in structured format.
Protocols
Compatibility
✓ Use when
Use for ad-hoc data queries, exploratory analysis, report generation, schema exploration, and democratizing data access. Best for read-heavy analytics workloads.
✗ Avoid when
Avoid for production write operations, mission-critical transactions, real-time OLTP workloads, or when database contains sensitive PII without proper access controls. Use read replicas, not primary.