Claude Code and Supabase integration guide
Use Claude Code agents, commands and MCP with Supabase for schema design, migrations, types and security.
Contents
![]()
Supabase combines Postgres, authentication and storage. Claude Code agents, commands and MCP connections can help with schema design, row-level security, migrations and TypeScript types.
Stack components
Agents
- Supabase Schema Architect assists with schemas, migrations and row-level security policies.
- Supabase Realtime Optimizer focuses on WebSocket connections and realtime performance.
Commands
supabase-schema-syncsynchronises schemas and detects drift.supabase-migration-assistanthelps generate migrations and rollbacks.supabase-performance-optimizersupports index and query optimisation.supabase-security-auditreviews row-level security and access rules.supabase-backup-managerhelps plan backup and recovery.supabase-type-generatorgenerates TypeScript types.supabase-data-explorersupports data exploration and export.supabase-realtime-monitormonitors realtime connections.
MCP
The Supabase MCP Server connects tools to the Supabase API. Read the MCP guide for more on connecting data sources.
Install components
npx claude-code-templates@latest --agent database/supabase-schema-architect
npx claude-code-templates@latest --command supabase/supabase-type-generator
npx claude-code-templates@latest --mcp devtools/supabase
Installed files
your-project/
└── .claude/
├── commands/
├── agents/
└── mcp.json
Typical workflow
Start Claude Code and describe the schema and permissions you need.
claude
> Design a Supabase schema for a learning platform. Include users, courses, enrollments, and progress tracking with proper RLS policies
> Generate TypeScript types for the latest schema and highlight breaking changes
Practical guidance
Name the areas you want reviewed, such as RLS, schemas, migrations and indexes. Define user roles and access rules when working on permissions. Use MCP connections to consult documentation and API information during development.
Further reading
![]()
Related certifications
Start with a few sample questions or a free chapter. The exam guide covers what the exam tests; the question bank lets you practise by exam domain.
Claude Certified Architect – Foundations
CCAR-F
Claude Certified Developer – Foundations
CCDV-F
Claude Certified Associate – Foundations
CCAO-F