Supabase for Agents

One platform for your agents.
Memory, tools, and data in one place.

Stop stitching together separate services for memory, vectors, auth, file storage, and APIs. Supabase gives your agents a complete Postgres backend with everything they need, from one dashboard, one connection string, one bill.

Supabase is great because it has everything. I don't need a different solution for authentication, a different solution for database, or a different solution for storage.
Yasser ElsaidFounder, Chatbase

Why agent builders choose Supabase

You need infrastructure that keeps up with agents that plan, act, and learn autonomously. Supabase is the complete Postgres developer platform built for agentic workloads.

  • One platform, not five.

    Most agent stacks require a vector database, an auth provider, a file store, an API layer, and a separate Postgres instance. Supabase replaces all of them. One connection string, one dashboard, one bill.

  • Security at agent speed.

    Agents make autonomous decisions with no human in the loop. Row Level Security ensures every database call respects tenant boundaries. Combined with SOC 2 Type II certification and database audit logs, your agent workloads stay secure at production scale.

  • Native MCP from day one.

    Supabase includes an MCP server that supports both read and write operations. Your agents can query schemas, insert records, and manage data through a standardized protocol.

Supabase is the Postgres platform your agents control

Everything your agents need to connect, query, and act on your data.

Database

A fully managed Postgres database.
No forks: 100% pure Postgres.

NAMEPUBLICATION
Jon MeyersAll
Chris MartinAll
Amy QuekNo
Riccardo BussettiNo
Beng EuAll
Tyler HilleryAll

Authentication

Secure authentication with email/password, magic links, OAuth (Google, GitHub, Twitter, etc.), SAML, SSO, and phone/SMS OTP.

Role-Based Access Control

Secure your data properly.

Realtime

Postgres replication enables live sync functionality for collaborative applications.

Storage

Scalable S3-compatible object storage for managing files, images, and videos.

Edge Functions

Serverless functions powered by Deno, deployed globally for low-latency execution.

Vectors

pgvector extensionfor AI/ML applications, enabling fast semantic search and embedding storage.

Row Level Security

Granular access control policies to secure data at the row level.

Full SQL access

Supabase supports CTEs, triggers, foreign keys, JSONB, full-text search, and more.

Postgres functions

Run backend logic in the database if you prefer using stored procedures, PL/pgSQL, and custom functions.

Add a new Function

Name of function

Name will also be used for the function name in postgres

Postgres extensions

Tap into the full Posgres ecosystem, including pgvector, PostGIS, pg_stat_statements, and over XX more Postgres extensions.

PGTAP

Unit testing for PostreSQL

Developers can build faster with Supabase

Features that help developers move quickly and focus.

AI Assistant

A single panel that persists across the Supabase Dashboard and maintains context across AI prompts.

AI Assistant

Entity: Auth

Schema:

Issue: We have detected that you have enabled the email provider with an expiry time of more than an hour. It is recommended to set this value to less th...

MCP Server

Connect your favorite AI tools such as Cursor or Claude directly with Supabase.

Auto-generated APIs

Learn SQL when you're ready. In the meantime, Supabase generates automatic APIs to make coding a lot easier.

Foreign Data Wrappers

Connect Supabase to BigQuery, Snowflake, ClickHouse, S3, Stripe, Firebase, and external APIs for seamless integrations.

Instant and secure deployment

No need to set up servers, manage DevOps, or tweak security settings.

Observability

Built-in logs, query performance tools, and security insights for easy debugging.

Top performance,
at any scale

Supabase ensures optimal database performance at any scale, so you can focus on innovating and growing without worrying about infrastructure limitations — whether you're handling high-traffic applications, complex queries, or massive data volumes.

  • Databases Created

    16,000,000+

  • Databases launched daily

    90,000+

  • Users
    0,000,000
    +00.0%

    Postgres at its core

    ACID-compliant, battle-tested database trusted by enterprises and startups.

    Horizontal & Vertical Scaling

    Scale compute and storage independently, including support for read replicas.

    Multi-region Options

    Deploy in your chosen region with optional read replicas in other regions for global availability.

    High Availability Architecture

    Enterprise plans include failover and redundancy for mission-critical applications.

    Point-in-Time Recovery

    Restore your database to any point in time for disaster recovery.

    Automatic Backups

    Daily backups with retention policies for added security.

    Security

    Trusted for agent workloads in production

    Keep your data secure with SOC 2, HIPAA, and GDPR compliance. Your data is encrypted at rest and in transit, with built-in tools for monitoring and managing security threats.

    Learn about security about /securityLearn about security
    • SOC 2 Type II certified

    • HIPAA compliant

    • DDoS Protection

    • Multi-factor Authentication

    • Vulnerability Management

    • Role-based access control

    • Database Audit Logs

    • Security Advisors

    • Encrypted Storage

    • Network restrictions

    Works with every agent framework

    Supabase integrates with the tools and frameworks agent builders already use.

    • Agent frameworks.

      LangChain and any framework that speaks SQL, REST, or MCP—including CrewAI, AutoGen, and others.

    • AI providers.

      OpenAI, Anthropic, Google, Mistral, and any model provider. Supabase is model-agnostic.

    • Development tools.

      Cursor, Windsurf, VS Code Copilot, Claude Code, and every editor that supports MCP.

    Get started

    Copy these prompts into your AI editor to scaffold agent infrastructure on Supabase:

    Build an agent memory store

    Create a Supabase schema for persistent agent memory with session tracking, JSONB state storage, and vector embeddings for semantic recall.

    Set up a RAG pipeline

    Build a RAG pipeline on Supabase with document upload to Storage, text extraction via Edge Functions, and pgvector embeddings with hybrid search.

    Configure multi-tenant agent access

    Design a multi-tenant Supabase schema with Row Level Security policies that restrict each agent to its own tenant's data.

    Deploy a tool-calling endpoint

    Create a Supabase Edge Function that serves as a tool endpoint for an AI agent, accepting structured input, querying the database, and returning formatted results.

    Customer stories

    Hyper

    • 100x cost reduction by having agents query SQL instead of live platform APIs
    • Per-customer isolated databases for agencies managing hundreds of clients
    Read the case study

    Humata

    • AI-powered document analysis at scale
    Read the case study

    Chatbase

    • One of the most successful single-founder AI products
    • Built entirely on Supabase
    Read the case study

    Markprompt

    • GDPR-compliant AI chatbots on Supabase
    Read the case study