Best for
- Developers running self-hosted Supabase who want to inspect or manage a project from an MCP client.
- Teams that need remote access through HTTP JWT authentication and role-based access controls.
The README describes a TypeScript/Bun MCP server for self-hosted Supabase and lists tools for databases, auth, Storage, Realtime, and Edge Functions, with client configuration examples. The repository description does not identify it as an official project; the README states that it is MIT licensed.
Strongest · Documentation 12/20 Weakest · Maintenance 5/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Bun 1.1+
SUPABASE_URL
The self-hosted Supabase project's HTTP URL; get it from your Supabase deployment configuration.
SUPABASE_ANON_KEY
The project's anonymous API key; get it from Supabase configuration.
SUPABASE_SERVICE_ROLE_KEY
The service role key for privileged tools; get it from Supabase configuration.
DATABASE_URL
The direct PostgreSQL connection string; get it from your database deployment configuration.
SUPABASE_AUTH_JWT_SECRET
The Supabase JWT secret; get it from Supabase Auth configuration. Required for HTTP transport.
ANON_KEY
The Supabase anonymous key referenced by the Docker Compose example; get it from Supabase environment configuration.
SERVICE_ROLE_KEY
The Supabase service role key referenced by the Docker Compose example; get it from Supabase environment configuration.
JWT_SECRET
The Supabase JWT secret referenced by the Docker Compose example; get it from Supabase environment configuration.
POSTGRES_PASSWORD
The PostgreSQL password in the Docker Compose example; get it from database environment configuration.
NODE_ENV
Set to `production` in the Docker example to identify the runtime environment.
POSTGRES_HOST
The PostgreSQL hostname in the Docker Compose example; get it from database environment configuration.
POSTGRES_PORT
The PostgreSQL port in the Docker Compose example; get it from database environment configuration.
POSTGRES_DB
The PostgreSQL database name in the Docker Compose example; get it from database environment configuration.
COMPOSE_PROJECT_NAME
Optional Docker Compose project name used to form the container name.
COMPOSE_PROFILES
Set to `mcp` to enable the MCP Docker Compose service in the example.
SITE_URL_PATTERN
The site URL pattern used by the Kong CORS example; set it for your deployment.
Requires Bun v1.1 or later and the URL and anon key for a self-hosted Supabase instance. Clone the repository, run bun install and bun run build, then start it with bun run dist/index.js using a client configuration example and provide --url and --anon-key. Depending on the tools used, also configure --service-key, --db-url, and --jwt-secret for HTTP mode. Smithery installation for Claude Desktop is also documented.
{"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>"]}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"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>"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.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>"]
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add selfhosted-supabase -- bun 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>'
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm `list_tables` appears in the client's tool list, then ask it to list the database tables. A returned table list confirms the connection.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
This MCP server connects MCP clients to local or privately hosted Supabase projects. Its tools cover database schemas and data, migrations, statistics, auth users, Storage, Realtime, Edge Functions, and type generation. It supports stdio and Streamable HTTP; HTTP mode uses Supabase JWT authentication and role-based tool access.
Unofficial MCP server providing advanced access to the ChEMBL chemical database
Let LLMs interact directly with your Directus data.
Read-only DB access for safe analysis
Connect AI clients to Couchbase clusters.
Source revision db8d846c735b Data synced 2026-12-05 Read the FMRS scoring method Markdown