> ## 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.

# Neon for database

> Learn how to integrate Neon Database with Same.new. Add a Postgres-powered backend to your AI apps and deploy from a prompt, no setup required.

## What is Neon?

[Neon](https://neon.tech) is a fully managed, serverless **PostgreSQL database** designed for modern development. It separates storage and compute for autoscaling, enables instant branching for safe experimentation, and supports rich collaboration workflows.

<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 Neon, you can use natural language to:

* Have Same design and build a schema that fits your project
* Spin up and manage database branches for safe testing
* Explore and analyze your data without leaving your Same workspace

## Get started with Neon

We recommend connecting to Neon 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 Neon MCP">
    Find the card for Neon and click **Add Neon**

    <Frame>
      <img src="https://mintcdn.com/same/6v_Kyyhq-0v66NVR/images/add-neon.png?fit=max&auto=format&n=6v_Kyyhq-0v66NVR&q=85&s=a91e8893440bf422c97ffaf68ab300a2" width="1998" height="1260" data-path="images/add-neon.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>
      Neon provides free plans for new users. [Check Neon's pricing](https://neon.com/pricing).
    </Info>
  </Step>

  <Step title="Design and connect to a database with Neon">
    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 Neon project
    ```

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

## Sample prompts with Neon

Here are some sample prompts you can try with Neon 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 Neon project

    ```
  </Accordion>

  <Accordion title="Branch database before developing a major functionality">
    ```md theme={null}
      Create a new database branch
    ```
  </Accordion>

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