Skip to content
Start here

Connect Neon to your agents

A trial starts first, then a project installs Neon from its marketplace.

Connect Neon
MCP serversLast verified

Neon MCP server

Give agents a Neon branch to try a migration before it reaches main

Install the Neon MCP server in an Aldena project and agents create database branches, run SQL and inspect Postgres health, acting as the person who signed in.

Sign-in
Browser sign-in
Installs as
neon
Transport
Streamable HTTP

Neon is serverless Postgres with branching: a branch is a copy-on-write copy of a database that an agent can change without touching its parent. Neon's MCP server exposes that to agents. It creates and deletes branches, runs SQL with run_sql and run_sql_transaction, checks a database for health problems with inspect_database, reports Neon platform incidents, and reaches the rest of Neon's API through search_api and call_api.

In an Aldena project the useful loop is migrations. An agent writing a schema change in its conversation's sandbox creates a Neon branch from production, applies the migration there, runs the queries the feature depends on, and records timings and row counts. If everything holds, it opens the pull request through the GitHub connector with those results in the description and deletes the branch. If a lock or a slow query shows up, it fixes the migration first. For the local side of the same work, the PostgreSQL integration gives each conversation its own database in its sandbox.

The server signs in through the browser and acts as that Neon user. Give SQL and branch deletion their own approval rules in the project's permissions. Teams comparing hosted Postgres options can also look at the Supabase MCP server and the Prisma MCP server.

With Neon, your agents can

  • Create, list and delete branches of a Neon Postgres database

  • Run SQL statements and transactions against a branch

  • Inspect a database for common health and performance problems

  • Call Neon's API for project settings the other tools don't cover

Try asking

Things to ask an agent in a project chat once it's installed.

  • “Create a Neon branch of the production database called migration-test, apply the migration in this pull request to it, and report how long it took.”

  • “Run inspect_database on our Neon staging database and list the checks that failed, with the fix you would make for each.”

  • “Query the orders table on the Neon preview branch for rows with a null customer_id and tell me how many there are.”

Server

Server URL
https://mcp.neon.tech/mcp
Website
neon.com

How to connect Neon

  1. Open Marketplace

    In a project, open Settings → Connectors → MCP servers and press Marketplace.

  2. Install Neon

    Search for Neon and press Install. Aldena adds it as neon.

  3. Sign in to Neon

    Open the sign-in link Aldena shows and approve. The server then acts as you.

  4. Let agents use it

    Agents find its tools with mcp_search and call them with mcp_call. Each tool gets its own row in the project's permissions.

Related MCP servers

FAQ

How many rows does a Neon SQL query return to the agent?

By default run_sql returns up to 100 rows per statement, and the agent can raise that with max_rows, up to 10,000. That keeps a large result from flooding the conversation; for anything bigger, ask the agent for an aggregate or a sample instead of the full table.

Can the Neon server run read-only in Aldena?

Neon documents a read-only mode set through the server URL, but the marketplace installs the plain URL, so write tools are available. Press Edit on the server to change the URL if you want read-only, or set the SQL and branch tools to ask or deny in the project's permissions.

Why give an agent a Neon branch instead of the main database?

A branch is a copy-on-write copy of the database, so an agent can run a migration or a destructive query against real data shapes without touching the parent. When the change works, the agent reports what it measured; when it doesn't, the branch is deleted and nothing else is affected.

Ready when you are

Spin up your first project.

One project per client, product, or piece of work, staffed with intake, requirements, build and code review agents.