Self-Hosted Supabase MCP Server
This server enables developers to manage and interact with self-hosted Supabase instances through the Model Context Protocol (MCP), providing comprehensive database management tools:
Database Operations: List tables and extensions, execute SQL queries, generate TypeScript types, and access database statistics
Migration Management: List and apply SQL migration scripts
Configuration Access: Retrieve project URL, anonymous key, service role key, and verify JWT secret
User Authentication: List, retrieve, create, update, and delete auth users (note: some operations require direct DB access)
Storage Management: List storage buckets and objects within buckets
Monitoring Tools: View active connections, database stats, and Realtime publications
Development Utilities: Restart the
pg_networker
Provides tools for direct PostgreSQL database operations, including executing SQL queries, viewing database connections and statistics, listing extensions, and querying system catalogs.
Enables interaction with self-hosted Supabase instances, providing tools for database introspection, SQL query execution, schema management, migrations, auth user management, storage bucket operations, and TypeScript type generation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Self-Hosted Supabase MCP Server show me the list of tables in the database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Self-Hosted Supabase MCP Server
Overview
This project provides a Model Context Protocol (MCP) server designed specifically for interacting with self-hosted Supabase instances. It bridges the gap between MCP clients (like IDE extensions) and your local or privately hosted Supabase projects, enabling database introspection, management, and interaction directly from your development environment.
This server was built from scratch, drawing lessons from adapting the official Supabase cloud MCP server, to provide a minimal, focused implementation tailored for the self-hosted use case.
Related MCP server: Self-Hosted Supabase MCP Server
Purpose
The primary goal of this server is to enable developers using self-hosted Supabase installations to leverage MCP-based tools for tasks such as:
Querying database schemas and data.
Managing database migrations.
Inspecting database statistics and connections.
Managing authentication users.
Interacting with Supabase Storage.
Generating type definitions.
It avoids the complexities of the official cloud server related to multi-project management and cloud-specific APIs, offering a streamlined experience for single-project, self-hosted environments.
Features (Implemented Tools)
Tools are categorized by privilege level:
Regular tools are accessible by any authenticated Supabase JWT (
authenticatedorservice_rolerole).Privileged tools require a
service_roleJWT (HTTP mode) or direct database/service-key access (stdio mode).
Schema & Migrations
Tool | Description | Privilege |
| Lists tables in the database schemas | Regular |
| Lists installed PostgreSQL extensions | Regular |
| Lists all available (installable) extensions | Regular |
| Lists applied migrations from | Regular |
| Applies a SQL migration and records it in | Privileged |
| Lists columns for a specific table | Regular |
| Lists indexes for a specific table | Regular |
| Lists constraints for a specific table | Regular |
| Lists foreign keys for a specific table | Regular |
| Lists triggers for a specific table | Regular |
| Lists user-defined database functions | Regular |
| Gets the source definition of a function | Regular |
| Gets the source definition of a trigger | Regular |
Database Operations & Stats
Tool | Description | Privilege |
| Executes an arbitrary SQL query | Privileged |
| Runs | Privileged |
| Shows active connections ( | Regular |
| Retrieves database statistics ( | Regular |
| Shows index usage statistics | Regular |
| Shows pgvector index statistics | Regular |
Security & RLS
Tool | Description | Privilege |
| Lists Row-Level Security policies for a table | Regular |
| Shows RLS enabled/disabled status for tables | Regular |
| Retrieves security and performance advisory notices | Regular |
Project Configuration
Tool | Description | Privilege |
| Returns the configured Supabase URL | Regular |
| Checks if the JWT secret is configured | Regular |
Development & Extension Tools
Tool | Description | Privilege |
| Generates TypeScript types from the database schema | Regular |
| Restarts the | Privileged |
| Retrieves recent log entries (analytics stack or CSV fallback) | Regular |
Auth User Management
Tool | Description | Privilege |
| Lists users from | Regular |
| Retrieves details for a specific user | Regular |
| Creates a new user in | Privileged |
| Updates user details (password bcrypt-hashed if changed) | Privileged |
| Deletes a user from | Privileged |
Storage
Tool | Description | Privilege |
| Lists all storage buckets | Regular |
| Lists objects within a specific bucket | Regular |
| Retrieves storage bucket configuration | Regular |
| Updates storage bucket settings | Privileged |
Realtime Inspection
Tool | Description | Privilege |
| Lists PostgreSQL publications (e.g. | Regular |
Extension-Specific Tools
Tool | Description | Privilege |
| Lists scheduled jobs (requires | Regular |
| Shows recent execution history for a cron job | Regular |
| Lists pgvector indexes (requires | Regular |
Edge Functions
Tool | Description | Privilege |
| Lists deployed Edge Functions | Regular |
| Gets details and metadata for an Edge Function | Regular |
| Retrieves recent logs for an Edge Function | Regular |
About supabase_migrations.schema_migrations
The list_migrations and apply_migration tools rely on the supabase_migrations.schema_migrations table. This table is created and managed by the Supabase CLI — it is not part of the MCP server itself.
How the table is created:
The table is automatically created when you initialise or run migrations using the Supabase CLI:
supabase db push # pushes local migrations to a remote database
supabase migration up # applies pending local migration filesIf you have never run the Supabase CLI against your database, the table will not exist and list_migrations will return an error. You can create it manually with:
CREATE SCHEMA IF NOT EXISTS supabase_migrations;
CREATE TABLE IF NOT EXISTS supabase_migrations.schema_migrations (
version text NOT NULL PRIMARY KEY,
name text NOT NULL DEFAULT '',
inserted_at timestamptz NOT NULL DEFAULT now()
);Schema difference vs. official Supabase:
The Supabase cloud platform tracks additional columns (e.g. statements, dirty). This MCP server uses the minimal schema (version + name + inserted_at) that is compatible with the Supabase CLI's local-development workflow. If your existing table has extra columns they are simply ignored.
Setup and Installation
Installing via Smithery
To install Self-Hosted Supabase MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @HenkDz/selfhosted-supabase-mcp --client claudePrerequisites
Bun v1.1 or later (replaces Node.js/npm — used for runtime and builds)
Access to your self-hosted Supabase instance (URL, keys, and optionally a direct PostgreSQL connection string).
Steps
Clone the repository:
git clone <repository-url> cd selfhosted-supabase-mcpInstall dependencies:
bun installBuild the project:
bun run buildThis compiles the TypeScript source to JavaScript in the
distdirectory.
Configuration
The server requires configuration details for your Supabase instance. These can be provided via command-line arguments or environment variables. CLI arguments take precedence.
Required:
--url <url>orSUPABASE_URL=<url>: The main HTTP URL of your Supabase project (e.g.,http://localhost:8000).--anon-key <key>orSUPABASE_ANON_KEY=<key>: Your Supabase project's anonymous key.
Optional (but Recommended/Required for certain tools):
--service-key <key>orSUPABASE_SERVICE_ROLE_KEY=<key>: Your Supabase project's service role key. Required for privileged tools and for auto-creating theexecute_sqlhelper function on startup.--db-url <url>orDATABASE_URL=<url>: The direct PostgreSQL connection string for your Supabase database (e.g.,postgresql://postgres:password@localhost:5432/postgres). Required for tools needing direct database access (apply_migration, Auth tools, Storage tools,pg_catalogqueries).--jwt-secret <secret>orSUPABASE_AUTH_JWT_SECRET=<secret>: Your Supabase project's JWT secret. Required when using--transport httpand needed by theverify_jwt_secrettool.--tools-config <path>: Path to a JSON file specifying which tools to enable (whitelist). If omitted, all tools are enabled. Format:{"enabledTools": ["tool_name_1", "tool_name_2"]}.
HTTP transport options (when using --transport http):
--port <number>: HTTP server port (default:3000).--host <string>: HTTP server host (default:127.0.0.1).--cors-origins <origins>: Comma-separated list of allowed CORS origins. Defaults to localhost only.--rate-limit-window <ms>: Rate limit window in milliseconds (default:60000).--rate-limit-max <count>: Max requests per rate limit window (default:100).--request-timeout <ms>: Request timeout in milliseconds (default:30000).
Important Notes:
execute_sqlHelper Function: Many tools rely on apublic.execute_sqlfunction within your Supabase database for SQL execution via RPC. The server attempts to check for this function on startup. If it's missing and aservice-keyanddb-urlare provided, it will attempt to create the function automatically. If creation fails or keys aren't provided, tools relying solely on RPC may fail.Direct Database Access: Tools interacting directly with privileged schemas (
auth,storage) or system catalogs (pg_catalog) generally requireDATABASE_URLto be configured.Coolify / reverse-proxy deployments:
The
DATABASE_URLmust use the internal hostname reachable from wherever the MCP server process runs, not the public-facing domain.An
ECONNRESETerror during startup means theDATABASE_URLcannot be reached from the server's network context.The server will still start successfully and all tools that don't require a direct DB connection will continue to work normally.
Security
HTTP transport (recommended for remote access)
When running with --transport http, the server enforces:
JWT authentication on all
/mcpendpoints using yourSUPABASE_AUTH_JWT_SECRET.Privilege-based access control (RBAC) — the
roleclaim in the JWT determines which tools are accessible:service_role: Full access (all tools including privileged ones).authenticated: Regular tools only.anon: No tool access.
Rate limiting — configurable request rate limit per IP address.
CORS — configurable allow-list of origins (defaults to localhost only).
Security headers —
X-Content-Type-Options,X-Frame-Options,Strict-Transport-Security, etc.Request timeouts — configurable timeout to prevent resource exhaustion.
Stdio transport (local development)
Stdio mode has no authentication — all tools (including privileged ones) are accessible. It is intended for trusted local clients only (e.g., an IDE extension running on your local machine). A warning is printed on startup when this mode is used.
Password handling for auth user tools
create_auth_user and update_auth_user accept a plain-text password from the MCP client, then immediately hash it with bcrypt (via PostgreSQL's pgcrypto extension: crypt($password, gen_salt('bf'))) before storing it in auth.users. The plain-text password is never stored. Passwords are passed as query parameters (not string-interpolated into SQL), preventing SQL injection.
Note: The password travels over the MCP transport in plain text between the MCP client and server. This is inherent to the MCP protocol interface and unavoidable at this layer. Use the HTTP transport with TLS termination (e.g., behind Kong/nginx) for network protection.
SQL execution security
All database operations in the MCP server use parameterized queries ($1, $2, ...) to prevent SQL injection. The execute_sql tool is an intentional exception — it executes arbitrary SQL by design (it is the tool's purpose). This tool is restricted to service_role privilege level to limit exposure.
Usage
Stdio mode (local MCP clients)
Run the server using Bun, providing the necessary configuration:
# Using CLI arguments (stdio mode — default)
bun run dist/index.js --url http://localhost:8000 --anon-key <your-anon-key> \
--db-url postgresql://postgres:password@localhost:5432/postgres \
--service-key <your-service-key>
# Example with tool whitelisting via config file
bun run dist/index.js --url http://localhost:8000 --anon-key <your-anon-key> \
--tools-config ./mcp-tools.json
# Or configure using environment variables and run:
# export SUPABASE_URL=http://localhost:8000
# export SUPABASE_ANON_KEY=<your-anon-key>
# export DATABASE_URL=postgresql://postgres:password@localhost:5432/postgres
# export SUPABASE_SERVICE_ROLE_KEY=<your-service-key>
bun run dist/index.jsHTTP mode (Docker / remote access)
bun run dist/index.js \
--transport http \
--port 3100 \
--host 0.0.0.0 \
--url http://kong:8000 \
--anon-key <your-anon-key> \
--service-key <your-service-key> \
--jwt-secret <your-jwt-secret> \
--db-url postgresql://postgres:password@db:5432/postgresHTTP mode requires --jwt-secret. All /mcp requests must include a valid Supabase JWT in the Authorization: Bearer <token> header.
The server communicates via stdio (default) or HTTP (Streamable HTTP Transport) and is designed to be invoked by an MCP client application (e.g., an IDE extension like Cursor). The client will connect to the server's stdio stream or HTTP endpoint to list and call the available tools.
Client Configuration Examples
Below are examples of how to configure popular MCP clients to use this self-hosted server.
Important:
Replace placeholders like
<your-supabase-url>,<your-anon-key>,<your-db-url>,<path-to-dist/index.js>etc., with your actual values.Ensure the path to the compiled server file (
dist/index.js) is correct for your system.Be cautious about storing sensitive keys directly in configuration files, especially if committed to version control. Consider using environment variables or more secure methods where supported by the client.
Cursor
Create or open the file
.cursor/mcp.jsonin your project root.Add the following configuration:
{ "mcpServers": { "selfhosted-supabase": { "command": "bun", "args": [ "run", "<path-to-dist/index.js>", // e.g., "/home/user/selfhosted-supabase-mcp/dist/index.js" "--url", "<your-supabase-url>", // e.g., "http://localhost:8000" "--anon-key", "<your-anon-key>", // Optional - Add these if needed by the tools you use "--service-key", "<your-service-key>", "--db-url", "<your-db-url>", // e.g., "postgresql://postgres:password@host:port/postgres" "--jwt-secret", "<your-jwt-secret>", // Optional - Whitelist specific tools "--tools-config", "<path-to-your-mcp-tools.json>" // e.g., "./mcp-tools.json" ] } } }
Visual Studio Code (Copilot)
VS Code Copilot allows using environment variables populated via prompted inputs, which is more secure for keys.
Create or open the file
.vscode/mcp.jsonin your project root.Add the following configuration:
{ "inputs": [ { "type": "promptString", "id": "sh-supabase-url", "description": "Self-Hosted Supabase URL", "default": "http://localhost:8000" }, { "type": "promptString", "id": "sh-supabase-anon-key", "description": "Self-Hosted Supabase Anon Key", "password": true }, { "type": "promptString", "id": "sh-supabase-service-key", "description": "Self-Hosted Supabase Service Key (Optional)", "password": true, "required": false }, { "type": "promptString", "id": "sh-supabase-db-url", "description": "Self-Hosted Supabase DB URL (Optional)", "password": true, "required": false }, { "type": "promptString", "id": "sh-supabase-jwt-secret", "description": "Self-Hosted Supabase JWT Secret (Optional)", "password": true, "required": false }, { "type": "promptString", "id": "sh-supabase-server-path", "description": "Path to self-hosted-supabase-mcp/dist/index.js" }, { "type": "promptString", "id": "sh-supabase-tools-config", "description": "Path to tools config JSON (Optional, e.g., ./mcp-tools.json)", "required": false } ], "servers": { "selfhosted-supabase": { "command": "bun", "args": [ "run", "${input:sh-supabase-server-path}", "--tools-config", "${input:sh-supabase-tools-config}" ], "env": { "SUPABASE_URL": "${input:sh-supabase-url}", "SUPABASE_ANON_KEY": "${input:sh-supabase-anon-key}", "SUPABASE_SERVICE_ROLE_KEY": "${input:sh-supabase-service-key}", "DATABASE_URL": "${input:sh-supabase-db-url}", "SUPABASE_AUTH_JWT_SECRET": "${input:sh-supabase-jwt-secret}" } } } }When you use Copilot Chat in Agent mode (@workspace), it should detect the server. You will be prompted to enter the details (URL, keys, path) when the server is first invoked.
Other Clients (Windsurf, Cline, Claude)
Adapt the configuration structure shown for Cursor or the official Supabase documentation, replacing the command and args with the bun run command and the arguments for this server, similar to the Cursor example:
{
"mcpServers": {
"selfhosted-supabase": {
"command": "bun",
"args": [
"run",
"<path-to-dist/index.js>",
"--url", "<your-supabase-url>",
"--anon-key", "<your-anon-key>",
"--service-key", "<your-service-key>",
"--db-url", "<your-db-url>",
"--jwt-secret", "<your-jwt-secret>",
"--tools-config", "<path-to-your-mcp-tools.json>"
]
}
}
}Consult the specific documentation for each client on where to place the mcp.json or equivalent configuration file.
Docker Integration with Self-Hosted Supabase
This MCP server can be integrated directly into a self-hosted Supabase Docker Compose stack, making it available alongside other Supabase services via the Kong API gateway.
Architecture Overview
When integrated with Docker:
The MCP server runs in HTTP transport mode (not stdio)
It's exposed through Kong at
/mcp/v1/*JWT authentication is handled by the MCP server itself
The server has direct access to the database and all Supabase keys
Setup Steps
1. Add the MCP Server as a Git Submodule
From your Supabase Docker directory:
git submodule add https://github.com/HenkDz/selfhosted-supabase-mcp.git selfhosted-supabase-mcp2. Create the Dockerfile
Create volumes/mcp/Dockerfile:
# Dockerfile for selfhosted-supabase-mcp HTTP mode
# Multi-stage build using Bun runtime for self-hosted Supabase
FROM oven/bun:1.1-alpine AS builder
WORKDIR /app
# Copy package files from submodule
COPY selfhosted-supabase-mcp/package.json selfhosted-supabase-mcp/bun.lock* ./
# Install dependencies
RUN bun install --frozen-lockfile || bun install
# Copy source code
COPY selfhosted-supabase-mcp/src ./src
COPY selfhosted-supabase-mcp/tsconfig.json ./
# Build the application
RUN bun build src/index.ts --outdir dist --target bun
# Production stage
FROM oven/bun:1.1-alpine AS runner
WORKDIR /app
# Create non-root user for security
RUN addgroup --system --gid 1001 mcp && \
adduser --system --uid 1001 --ingroup mcp mcp
# Copy built application from builder
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
# Set ownership
RUN chown -R mcp:mcp /app
USER mcp
# Default environment variables
ENV NODE_ENV=production
# Health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3100/health || exit 1
# Expose HTTP port
EXPOSE 3100
# Start the MCP server in HTTP mode
CMD ["bun", "run", "dist/index.js"]3. Add the MCP Service to docker-compose.yml
Add this service definition to your docker-compose.yml:
## MCP Server - Model Context Protocol for AI integrations
## DISABLED BY DEFAULT - Add 'mcp' to COMPOSE_PROFILES to enable
mcp:
container_name: ${COMPOSE_PROJECT_NAME:-supabase}-mcp
profiles:
- mcp
build:
context: .
dockerfile: ./volumes/mcp/Dockerfile
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:3100/health"
]
timeout: 5s
interval: 10s
retries: 3
depends_on:
db:
condition: service_healthy
rest:
condition: service_started
environment:
SUPABASE_URL: http://kong:8000
SUPABASE_ANON_KEY: ${ANON_KEY}
SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY}
SUPABASE_AUTH_JWT_SECRET: ${JWT_SECRET}
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
command:
[
"bun",
"run",
"dist/index.js",
"--transport", "http",
"--port", "3100",
"--host", "0.0.0.0",
"--url", "http://kong:8000",
"--anon-key", "${ANON_KEY}",
"--service-key", "${SERVICE_ROLE_KEY}",
"--jwt-secret", "${JWT_SECRET}",
"--db-url", "postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
]4. Add Kong API Gateway Routes
Add the MCP routes to volumes/api/kong.yml in the services section:
## MCP Server routes - Model Context Protocol for AI integrations
## Authentication is handled by the MCP server itself (JWT validation)
- name: mcp-v1
_comment: 'MCP Server: /mcp/v1/* -> http://mcp:3100/*'
url: http://mcp:3100/
routes:
- name: mcp-v1-all
strip_path: true
paths:
- /mcp/v1/
plugins:
- name: cors
config:
origins:
- "$SITE_URL_PATTERN"
- "http://localhost:3000"
- "http://127.0.0.1:3000"
methods:
- GET
- POST
- DELETE
- OPTIONS
headers:
- Accept
- Authorization
- Content-Type
- X-Client-Info
- apikey
- Mcp-Session-Id
exposed_headers:
- Mcp-Session-Id
credentials: true
max_age: 36005. Enable the MCP Service
The MCP service uses Docker Compose profiles, so it's disabled by default. To enable it:
Option A: Set in .env file:
COMPOSE_PROFILES=mcpOption B: Enable at runtime:
docker compose --profile mcp up -dAccessing the MCP Server
Once running, the MCP server is available at:
Internal (from other containers):
http://mcp:3100External (via Kong):
http://localhost:8000/mcp/v1/
Authentication
When running in HTTP mode, the MCP server validates JWTs using the configured JWT_SECRET. Clients must include a valid Supabase JWT in the Authorization header:
Authorization: Bearer <supabase-jwt>The JWT's role claim determines access:
service_role: Full access to all tools (regular + privileged)authenticated: Access to regular tools onlyanon: No tool access
Health Check
The MCP server exposes a health endpoint:
curl http://localhost:8000/mcp/v1/healthSecurity Considerations
When deploying via Docker:
The MCP server runs as a non-root user (
mcp:mcp)JWT authentication is enforced for all tool calls
Privileged tools (like
execute_sql) requireservice_roleJWTCORS is configured via Kong - adjust origins for your deployment
Development
Language: TypeScript
Build:
bun build(viabun run build)Runtime: Bun v1.1+
Test runner:
bun testDependencies: Managed via
bun(bun.lock)Core Libraries:
@supabase/supabase-js,pg(node-postgres),zod(validation),commander(CLI args),@modelcontextprotocol/sdk(MCP server framework),express,jsonwebtoken.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Available Tools
21 toolsapply_migrationA
Applies a SQL migration script and records it in the supabase_migrations.schema_migrations table within a transaction.
Inputs: version (required), sql (required), name.
create_auth_userA
Creates a new user directly in auth.users. WARNING: Requires plain password, insecure. Use with extreme caution.
Inputs: email (required), password (required), role, user_metadata, +1 more.
delete_auth_userA
Deletes a user from auth.users by their ID. Requires service_role key and direct DB connection.
Inputs: user_id (required).
execute_sqlB
Executes an arbitrary SQL query against the database, using direct database connection when available or RPC function as fallback.
Inputs: sql (required), read_only.
generate_typescript_typesA
Generates TypeScript types from the database schema using the Supabase CLI (supabase gen types) and downloads the file to the specified absolute path. The tool returns the current platform (win32, darwin, linux) to help with path formatting. Requires DATABASE_URL configuration and Supabase CLI installed.
Inputs: output_path (required), included_schemas, output_filename.
get_anon_keyA
Returns the configured Supabase anon key for this server.
Inputs: no named parameters.
get_auth_userB
Retrieves details for a specific user from auth.users by their ID.
Inputs: user_id (required).
get_database_connectionsA
Retrieves information about active database connections from pg_stat_activity.
Inputs: no named parameters.
get_database_statsA
Retrieves statistics about database activity and the background writer from pg_stat_database and pg_stat_bgwriter.
Inputs: no named parameters.
get_project_urlA
Returns the configured Supabase project URL for this server.
Inputs: no named parameters.
get_service_keyA
Returns the configured Supabase service role key for this server, if available.
Inputs: no named parameters.
list_auth_usersC
Lists users from the auth.users table.
Inputs: limit, offset.
list_extensionsA
Lists all installed PostgreSQL extensions in the database.
Inputs: no named parameters.
list_migrationsA
Lists applied database migrations recorded in supabase_migrations.schema_migrations table.
Inputs: no named parameters.
list_realtime_publicationsA
Lists PostgreSQL publications, often used by Supabase Realtime.
Inputs: no named parameters.
list_storage_bucketsB
Lists all storage buckets in the project.
Inputs: no named parameters.
list_storage_objectsA
Lists objects within a specific storage bucket, optionally filtering by prefix.
Inputs: bucket_id (required), limit, offset, prefix.
list_tablesB
Lists all accessible tables in the connected database, grouped by schema.
Inputs: no named parameters.
rebuild_hooksB
Attempts to restart the pg_net worker. Requires the pg_net extension to be installed and available.
Inputs: no named parameters.
update_auth_userA
Updates fields for a user in auth.users. WARNING: Password handling is insecure. Requires service_role key and direct DB connection.
Inputs: user_id (required), email, password, role, +2 more.
verify_jwt_secretA
Checks if the Supabase JWT secret is configured for this server and returns a preview.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools have distinct purposes targeting specific Supabase domains like auth, database, storage, and migrations. However, some overlap exists between list_tables and list_extensions/list_migrations as they all list database entities, though their descriptions clarify the specific resources. The auth tools (create/update/delete/get/list_auth_user) are clearly differentiated by action.
Tool names follow a highly consistent verb_noun pattern throughout, using snake_case uniformly. Examples include apply_migration, create_auth_user, execute_sql, list_tables, and update_auth_user. This predictability makes it easy for agents to understand and select tools.
With 21 tools, the count is on the higher side but reasonable for a self-hosted Supabase server covering multiple domains like auth, database, storage, and migrations. It might feel slightly heavy, but each tool appears to serve a specific function without obvious redundancy.
The toolset provides comprehensive coverage for core Supabase operations, including CRUD for auth users, database queries, migrations, storage, and monitoring. Minor gaps exist, such as no direct tools for managing storage objects (only listing) or handling realtime subscriptions beyond listing publications, but agents can work around these using execute_sql or other tools.
Maintenance
Related MCP Connectors
MCP server for interacting with the Supabase platform
Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
Supabase Edge Functions MCP server with allowlisted tools and PostgreSQL RLS.
Xata MCP server lets AI agents interact with your Xata projects, and Postgres database branches.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables interaction with self-hosted Supabase instances, allowing developers to query database schemas, manage migrations, inspect statistics, and interact with Supabase features directly from MCP-compatible development environments.211ISC
- AlicenseNot gradedqualityDmaintenanceEnables developers to interact with self-hosted Supabase instances, providing database introspection, migration management, auth user operations, storage management, and TypeScript type generation directly from MCP-compatible development environments.ISC
- AlicenseNot gradedqualityDmaintenanceMCP server for Supabase, enabling database CRUD, storage management, auth administration, project management, edge functions, and secrets via 31 tools.10 npmMIT
- AlicenseNot gradedqualityFmaintenanceMCP server for self-hosted Supabase with RLS-aware PostgreSQL and PostgREST layers, enabling safe database introspection, SQL queries, and PostgREST access via natural language.MIT