Back to MCP Servers

Supabase MCP

OFFICIAL

Supabase's official server. Query the database, apply migrations, manage config, fetch logs, and generate TypeScript types from your agent.

Category: Data · Works with: Claude Code, Grok Build, Claude Desktop, Cursor, VS Code

What it does

Connects agents to your Supabase projects for schema work, debugging, and data queries. Supports read-only mode and project scoping — use both for agent work.

Install

npx -y @supabase/mcp-server-supabase --read-only --project-ref=YOUR_REF

Setup Instructions

claude Code
claude mcp add supabase --env SUPABASE_ACCESS_TOKEN=YOUR_PAT -- npx -y @supabase/mcp-server-supabase --read-only --project-ref=YOUR_REF
cursor
Create a personal access token in Supabase settings, then add the server in MCP settings with --read-only and --project-ref flags. Drop --read-only only when you explicitly want the agent writing to the database.
Official documentation