Supabase runs on Postgres, so connecting an AI assistant to a Supabase database raises a fair question: use Supabase's own MCP server, or a general Postgres one? The answer depends on what you need: the Supabase platform, or just the database.
Supabase's official server, at supabase/mcp, is normally used through the hosted endpoint at mcp.supabase.com: your client opens a Supabase login and the tools appear, with no token to paste. It covers the platform as well as the database: list_tables and execute_sql, apply_migration to record schema changes, get_logs and get_advisors for debugging and security findings, TypeScript type generation, Edge Functions and database branching. Query parameters scope it to one project, make it read-only or limit the feature groups.
On the Postgres side, the original reference server from the MCP project was archived in May 2025. It offered a single query tool that ran inside a read-only transaction, plus table schemas as resources. The most capable maintained option is Postgres MCP Pro, crystaldba/postgres-mcp, MIT-licensed with about 3,500 stars. Its tools include list_schemas, execute_sql, explain_query, get_top_queries, analyze_workload_indexes and analyze_db_health. It has an unrestricted mode for development and a restricted, read-only mode for production, and runs via Docker or Python with stdio or SSE.
Use Supabase's server for Supabase projects, and a Postgres server for performance tuning or for databases hosted elsewhere.
How they compare
| Aspect | Supabase MCP | Postgres MCP |
|---|---|---|
| Scope | Supabase platform: database, logs, functions, branches. | Any Postgres database. |
| Setup | Hosted endpoint with Supabase login. | Docker or Python with a connection string. |
| Read-only option | read_only=true removes all write tools. | Restricted mode in Postgres MCP Pro; reference server was read-only. |
| Schema changes | apply_migration records proper migrations. | execute_sql in unrestricted mode. |
| Performance tools | get_advisors security and performance findings. | explain_query, top queries, index advice and health checks. |
| Branching | Create, merge, reset and delete database branches. | Not applicable. |
| Maintenance | Official, actively maintained. | Reference server archived; Postgres MCP Pro is community-maintained. |
| Key risk | Without project_ref the agent sees every project in the org. | Unrestricted mode allows full writes. |
Choose Supabase MCP if…
- Your app runs on Supabase
- You want migrations, logs and types from one server
- You want database branches for safe experiments
- You prefer OAuth login over storing credentials
Choose Postgres MCP if…
- Your database is not on Supabase
- You want query plans and index recommendations
- You need a health check of an existing database
- You want one server for several Postgres hosts
Researched November 2026 from each product's official documentation and pricing pages. Prices and features change often, so check the vendors' sites before you decide.
Sources
- github.com /supabase/mcp
- supabase.com /mcp
- github.com /modelcontextprotocol/servers-archived/tree/main/src/postgres
- github.com /crystaldba/postgres-mcp