Learn how to connect Claude Code to your Supabase project using the Supabase MCP — query data, manage tables, run migrations, and debug your backend without leaving your editor.
The Supabase MCP connects Claude Code directly to your Supabase project, giving it read and write access to your database, edge functions, storage, and project settings. Instead of switching between your editor and the Supabase dashboard, you can query tables, run migrations, and inspect logs entirely within your Claude Code session.
mcpizy install supabase-mcp
After installation, you will be prompted to provide your Supabase project URL and service role key. These are stored securely in your MCP configuration.
Suppose you need to add a last_seen_at column to your users table and backfill it:
-- Ask Claude to run this migration via the Supabase MCP
ALTER TABLE users ADD COLUMN last_seen_at timestamptz DEFAULT now();
UPDATE users SET last_seen_at = created_at WHERE last_seen_at IS NULL;
Claude will call the MCP's apply_migration tool, execute the SQL, and report back the number of affected rows — all without you opening a browser tab.