> ## Documentation Index
> Fetch the complete documentation index at: https://docs.same.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase for database

> Set up Supabase integration in Same.new. Add real-time auth, Postgres, and storage to your AI apps. No manual configuration required.

## What is Supabase?

[Supabase](https://supabase.com/) is an open source backend service provider of **PostgreSQL database**, **authentication**, **real-time subscriptions**, and **serverless functions**. It combines multiple tools into a unified platform for building scalable applications.

<Note>
  A database stores, organizes, and retrieves data for your project. With a database, you can persist user data, content, and configurations — even after the app is closed or restarted.
</Note>

When you connect Same with Supabase, you can use natural language to:

* Have Same design and build a schema that fits your project
* Have Same integrate with Supabase's authentication to manage your users
* Explore and analyze your data without leaving your Same workspace

## Get started with Supabase

We recommend connecting to Supabase through MCP

<Steps>
  <Step title="Open MCP tools panel">
    Click **Tools** and open the panel

    <Frame>
      <img src="https://mintcdn.com/same/6v_Kyyhq-0v66NVR/images/tools-entry.png?fit=max&auto=format&n=6v_Kyyhq-0v66NVR&q=85&s=b234a87c5c51f1081c24994b15e2a2ee" width="2112" height="1422" data-path="images/tools-entry.png" />
    </Frame>
  </Step>

  <Step title="Connect to Supabase MCP">
    Find the card for Supabase and click **Add Supabase**

    <Frame>
      <img src="https://mintcdn.com/same/6v_Kyyhq-0v66NVR/images/add-supabase.png?fit=max&auto=format&n=6v_Kyyhq-0v66NVR&q=85&s=28eb6d3d0b2db93089d6fd049da72277" width="1998" height="1260" data-path="images/add-supabase.png" />
    </Frame>
  </Step>

  <Step title="Authorize the connection">
    Follow the page instructions to approve the connection. You may need to sign up for an account if you don't have one yet.

    <Info>
      Supabase provides free plans for new users. [Check Supabase's pricing](https://supabase.com/pricing).
    </Info>
  </Step>

  <Step title="Design and connect to a database with Supabase">
    Once the connection is successful, directly ask Same to:

    ```md theme={null}
    Design the database schema for my project and connect it to a new Supabase project
    ```

    Same will automatically manage everything for you, from Supabase project creation and database schema design to final connection and migration.
  </Step>
</Steps>

## Sample prompts with Supabase

Here are some sample prompts you can try with Supabase to discover its full functionality:

<AccordionGroup>
  <Accordion title="Connect your project to a database">
    ```md theme={null}
      Design the database schema for my project and connect it to a new Supabase project

    ```
  </Accordion>

  <Accordion title="Add authentication to your project with Supabase">
    ```md theme={null}
      Add authentication to my project with Supabase
    ```
  </Accordion>

  <Accordion title="Query and analyze data">
    ```md theme={null}
      What's the stock of each active product I have?
    ```
  </Accordion>
</AccordionGroup>
