MCP ConfigsMay 12, 2026·2 min read

Supabase MCP Server — Postgres + Admin Tools (API Key Gate)

Supabase MCP Server connects MCP clients to Supabase Postgres and admin APIs, using env-based config and an API key gate to reduce unsafe default exposure.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 2daa3c16-b05d-5a59-829e-19cfbb8830e5 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

Supabase MCP Server connects MCP clients to Supabase Postgres and admin APIs, using env-based config and an API key gate to reduce unsafe default exposure.

  • Best for: Supabase teams that want agent access to database + management APIs with explicit configuration and safer defaults
  • Works with: Supabase project ref + DB password, optional management/auth keys, MCP clients (Cursor/Windsurf/Cline/Claude Desktop)
  • Setup time: 15-35 minutes

Practical Notes

  • Quant: the README notes an API-key requirement (from thequery.dev), which acts as a gate against accidental public exposure.
  • Quant: Claude Desktop requires an absolute binary path—treat that as a deployment checklist item to avoid spawn errors.

Rollout pattern

  • Start with database read-only tasks (schema + queries) before enabling management or auth-admin capabilities.
  • Separate environments: local dev uses local ref; production uses project ref with least-privilege keys.
  • Record which tools are used in the first 10 sessions and tighten configuration based on observed needs.

Watchouts

Any server that can touch auth/admin APIs is high-impact. Keep keys scoped, avoid running on shared machines, and add audit logging before you allow write operations.

FAQ

Q: Do I have to use pipx? A: No. The README shows uv and source installs too, but pipx is the recommended isolated install path.

Q: Why does Claude Desktop need the full path? A: Claude Desktop spawns processes from a config file and often can’t resolve PATH the same way as your shell.

Q: What should I enable first? A: Start with schema exploration and simple SELECT queries; add management API access only if you truly need it.

🙏

Source & Thanks

Source: https://github.com/alexander-zuev/supabase-mcp-server > License: Apache-2.0 > GitHub stars: 820 · forks: 105

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets