selfhosted-supabase-mcp

selfhosted-supabase-mcp

13

The Self-Hosted Supabase MCP Server is designed to facilitate developers' interactions with self-hosted Supabase instances. It enables database management, statistics inspection, and user management, among other features, directly from development environments.

What is the primary purpose of the Self-Hosted Supabase MCP Server?

The primary purpose is to enable developers using self-hosted Supabase installations to leverage MCP-based tools for database management, introspection, and interaction directly from their development environments.

What are the prerequisites for setting up the server?

You need Node.js (version 18.x or later), npm, and access to your self-hosted Supabase instance, including the URL, keys, and potentially a direct DB connection string.

How can I configure the server using environment variables?

You can set environment variables such as SUPABASE_URL, SUPABASE_ANON_KEY, DATABASE_URL, and SUPABASE_SERVICE_ROLE_KEY to configure the server. CLI arguments take precedence over environment variables.

What tools does the server provide for database operations?

The server provides tools for executing SQL queries, viewing active database connections, and retrieving database statistics.

Is it possible to whitelist specific tools?

Yes, you can specify which tools to enable by providing a JSON file with the --tools-config option, listing the tools you want to whitelist.