Official Data & Analytics

Neon

Manage Neon serverless Postgres branches and queries.

Works with: Claude DesktopCursor

Official server · details last checked

Quick install
npx -y @neondatabase/mcp-server-neon

How to install the Neon MCP server

Add this to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "neon": {
      "command": "npx",
      "args": [
        "-y",
        "@neondatabase/mcp-server-neon"
      ]
    }
  }
}

Add this to your Cursor MCP configuration:

{
  "mcpServers": {
    "neon": {
      "command": "npx",
      "args": [
        "-y",
        "@neondatabase/mcp-server-neon"
      ]
    }
  }
}

Built by ContextBoltThis directory is built by ContextBolt: MCP-native memory and SEO tools that run alongside Neon in the same client.

Explore ContextBolt

The Neon MCP server manages Neon’s serverless Postgres: projects, branches, and the queries you run against them. The branching model is what makes this more interesting than a generic database server, because it gives an agent somewhere safe to make mistakes.

What it actually does

The server exposes Neon’s API and query interface as tools. The agent can list projects, create and delete branches, run SQL against any branch, and inspect schema. Creating a branch is close to instant and copy-on-write, so a full clone of production data is cheap enough to make per-task.

Practical patterns:

  • ‘Branch the production database, apply this migration to the branch, and tell me what breaks.’
  • ‘Compare the schema on this branch against main.’
  • ‘Run this query against a copy of production without touching production.‘

Why use it

Letting an agent near a schema is normally a bad idea, because the failure mode is destructive and irreversible. Branching changes that calculation completely: give it a disposable copy, let it try the migration, read the result, throw the branch away. It is the one arrangement where “let the AI attempt the database change” is a reasonable thing to do, and it turns a class of task from too risky into routine.

Gotchas

Branches are cheap, not free. An agent creating a branch per attempt will leave a trail of them consuming storage, so clean up as you go. Data in a branch is real data, so a branch of production carries the same privacy obligations as production; anonymise if that matters. And the safety argument only holds while the agent is pointed at a branch. Make sure the connection it uses is not quietly the main one.

Built by ContextBolt

This directory is built by ContextBolt

We build MCP-native tools that give your AI the context it cannot reach on its own. Bookmarks turns your saved posts into agent-queryable memory. SEO puts live keyword and ranking data inside Claude. Both run alongside Neon in the same client.

Explore the products →

Neon MCP server: FAQs

What does branching actually give me?

A copy-on-write clone of your database in seconds. The agent can run migrations against it and you discard the branch afterwards, so mistakes cost nothing.

Is it just Postgres underneath?

Yes. Anything that works against Postgres works here, so the Postgres server is an alternative if you only want to query.

Do branches cost money?

They consume storage and compute on your Neon plan. Clean up branches an agent created rather than letting them accumulate.

Can it run migrations?

Yes, and against a branch that is the point. Running them against production is a different risk entirely.