MCP server for self-hosted Supabase instances with 50+ database management tools
MCP server for self-hosted Supabase instances with 50+ database management tools
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.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| generate_typescript_types | Generates TypeScript types from the database schema |
| rebuild_hooks | Restarts the pg_net worker (if used) |
| get_logs | Retrieves recent log entries (analytics stack or CSV fallback) |
| list_cron_jobs | Lists scheduled jobs (requires pg_cron extension) |
| get_cron_job_history | Shows recent execution history for a cron job |
| list_vector_indexes | Lists pgvector indexes (requires pgvector extension) |
| list_edge_functions | Lists deployed Edge Functions |
| get_edge_function_details | Gets details and metadata for an Edge Function |
| list_edge_function_logs | Retrieves recent logs for an Edge Function |
{
"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>"
]
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.