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.
# Add to your Claude Code skills
git clone https://github.com/alexander-zuev/supabase-mcp-serverGuides for using mcp servers skills like supabase-mcp-server.
supabase-mcp-server is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by alexander-zuev. 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. It has 837 GitHub stars.
supabase-mcp-server's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/alexander-zuev/supabase-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
supabase-mcp-server is primarily written in Python. It is open-source under alexander-zuev on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh supabase-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
🌅 More than 17k installs via pypi and close to 30k downloads on Smithery.ai — in short, this was fun! 🥳 Thanks to everyone who has been using this server for the past few months, and I hope it was useful for you. Since Supabase has released their own official MCP server, I've decided to no longer actively maintain this one. The official MCP server is as feature-rich, and many more features will be added in the future. Check it out!
stdio protocolInstalling the server requires the following on your system:
If you plan to install via uv, ensure it's installed.
PostgreSQL installation is no longer required for the MCP server itself, as it now uses asyncpg which doesn't depend on PostgreSQL development libraries.
However, you'll still need PostgreSQL if you're running a local Supabase instance:
MacOS
brew install postgresql@16
Windows
Since v0.2.0 I introduced support for package installation. You can use your favorite Python package manager to install the server via:
# if pipx is installed (recommended)
pipx install supabase-mcp-server
# if uv is installed
uv pip install supabase-mcp-server
pipx is recommended because it creates isolated environments for each package.
You can also install the server manually by cloning the repository and running pipx install -e . from the root directory.
If you would like to install from source, for example for local development:
uv venv
# On Mac
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
# Install package in editable mode
uv pip install -e .
You can find the full instructions on how to use Smithery.ai to connect to this MCP server here.
The Supabase MCP server requires configuration to connect to your Supabase database, access the Management API, and use the Auth Admin SDK. This section explains all available configuration options and how to set them up.
🔑 Important: Since v0.4 MCP server requires an API key which you can get for free at thequery.dev to use this MCP server.
The server uses the following environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
SUPABASE_PROJECT_REF |
Yes | 127.0.0.1:54322 |
Your Supabase project reference ID (or local host:port) |
SUPABASE_DB_PASSWORD |
Yes | postgres |
Your database password |
SUPABASE_REGION |
Yes* | us-east-1 |
AWS region where your Supabase project is hosted |
SUPABASE_ACCESS_TOKEN |
No | None | Personal access token for Supabase Management API |
SUPABASE_SERVICE_ROLE_KEY |
No | None | Service role key for Auth Admin SDK |
QUERY_API_KEY |
Yes | None | API key from thequery.dev (required for all operations) |
Note: The default values are configured for local Supabase development. For remote Supabase projects, you must provide your own values for
SUPABASE_PROJECT_REFandSUPABASE_DB_PASSWORD.
🚨 CRITICAL CONFIGURATION NOTE: For remote Supabase projects, you MUST specify the correct region where your project is hosted using
SUPABASE_REGION. If you encounter a "Tenant or user not found" error, this is almost certainly because your region setting doesn't match your project's actual region. You can find your project's region in the Supabase dashboard under Project Settings.
127.0.0.1:54322postgresql://postgres.[project_ref]:[password]@aws-0-[region].pooler.supabase.com:6543/postgres⚠️ Important: Session pooling connections are not supported. The server exclusively uses transaction pooling for better compatibility with the MCP server architecture.
SUPABASE_ACCESS_TOKEN to be sethttps://api.supabase.comSUPABASE_SERVICE_ROLE_KEY to be sethttp://127.0.0.1:54321https://[project_ref].supabase.coThe server looks for configuration in this order (highest to lowest priority):
.env File: A .env file in your current working directory (only works when running from source)%APPDATA%\supabase-mcp\.env~/.config/supabase-mcp/.env⚠️ Important: When using the package installed via pipx or uv, local
.envfiles in your project directory are not detected. You must use either environment variables or the global config file.
Set environment variables directly in your MCP client configuration (see client-specific setup instructions in Step 3). Most MCP clients support this approach, which keeps your configuration with your client settings.
Create a global .env configuration file that will be used for all MCP server instances:
# Create config directory
# On macOS/Linux
mkdir -p ~/.config/supabase-mcp
# On Windows (PowerShell)
mkdir -Force "$env:APPDATA\supabase-mcp"
# Create and edit .env file
# On macOS/Linux
nano ~/.config/supabase-mcp/.env
# On Windows (PowerShell)
notepad "$env:APPDATA\supabase-mcp\.env"
Add your configuration values to the file:
QUERY_API_KEY=your-api-key
SUPABASE_PROJECT_REF=your-project-ref
SUPABASE_DB_PASSWORD=your-db-password
SUPABASE_REGION=us-east-1
SUPABASE_ACCESS_TOKEN=your-access-token
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
If you're running the server from source (not via package), you can create a .env file in your project directory with the same format as above.
https://supabase.com/dashboard/project/<project-ref>The server supports all Supabase regions:
us-west-1 - West US