
supabase kb
kb for using supabase, esp w ai tooling
Repository Info
About This Server
kb for using supabase, esp w ai tooling
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Supabase Knowledge Base
This knowledge base provides a comprehensive guide to Supabase, focusing on practical implementation patterns and best practices for developers. It's designed to be a reference when working with AI coding assistants like Claude Desktop, Cursor, or Windsurf.
Official Resources
- Supabase Documentation
- Supabase GitHub
- Supabase Blog
- Supabase Dashboard
Contents
- Core Concepts - Overview of Supabase architecture and components
- Authentication - Implementing user authentication and authorization
- Database - PostgreSQL database management and best practices
- Edge Functions - Serverless function development and deployment
- Storage - File storage implementation and security
- Realtime - Real-time data synchronization
- Security Best Practices - Row Level Security and other security considerations
- Common Integration Patterns - Patterns for integrating with third-party services
- AI Prompts Guide - Effective prompts for Supabase development with AI assistants
- MCP Configuration - Setting up Model Context Protocol for Cursor, Windsurf, and Claude Desktop
- Performance Optimization - Database and API performance tuning
- Deployment and CI/CD - Setting up deployment workflows
- Troubleshooting - Common issues and their solutions
How to Use This Knowledge Base
This knowledge base is designed to be both a learning resource and a practical reference. Each section contains:
- Conceptual overviews
- Code examples
- Implementation patterns
- Best practices
- Common pitfalls to avoid
When working with AI coding assistants, you can reference specific sections of this knowledge base to provide context for your questions or to guide the AI in generating accurate, best-practice code for Supabase-related functionality.
Getting Started
If you're new to Supabase, start with the Core Concepts guide to understand the fundamental architecture and capabilities. Then, explore specific areas based on your immediate needs.
For setting up a new project, follow this general sequence:
- Read Core Concepts
- Set up Authentication
- Design your Database schema
- Implement Security Best Practices
- Add additional features as needed (Storage, Edge Functions, Realtime)
Supabase CLI Installation and Common Commands
Installation (macOS)
# Install via Homebrew
brew install supabase/tap/supabase
# Verify installation
supabase --version
Local Development Commands
# Initialize a new project
supabase init
# Start Supabase locally
supabase start
# Check status of local services
supabase status
# Stop local services
supabase stop
Database Management Commands
# Create a new migration
supabase migration new my_migration_name
# Apply migrations
supabase db reset
# Generate types based on your schema
supabase gen types typescript --local > types/supabase.ts
Edge Functions Commands
# Create a new Edge Function
supabase functions new my-function-name
# Deploy an Edge Function to production
supabase functions deploy my-function-name
# Serve Edge Functions locally for testing
supabase functions serve
Project Management Commands
# Link to a remote project
supabase link --project-ref your-project-ref
# Get project configuration
supabase config get
# List all remote projects
supabase projects list
Secrets Management Commands
# Set secret for Edge Functions
supabase secrets set MY_SECRET=value
# List all secrets
supabase secrets list
Quick Start
Clone the repository
git clone https://github.com/dkeesey/supabase-kbInstall dependencies
cd supabase-kb
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.