Neon

Neon

by Neon
v0.6.5
MIT
databasepostgresserverlessbranching

Summary

Neon's official MCP server — manage serverless Postgres projects, branch databases, and run migrations.

Features

  • Create and manage serverless Postgres projects and branches
  • Run SQL and apply migrations safely on a branch first
  • Database branching for testing schema changes

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "Neon" tools will be available.
{
  "mcpServers": {
    "neon": {
      "command": "npx",
      "args": [
        "-y",
        "@neondatabase/mcp-server-neon",
        "start",
        "<neon-api-key>"
      ]
    }
  }
}

Description

Neon's MCP server exposes its serverless Postgres platform to an AI assistant, and the branching model makes it unusually well suited to agent workflows.

What it enables

  • Project and branch management. Create databases and branches on demand, which is fast and cheap on Neon because branches are copy-on-write.
  • Safe migrations. The standout workflow: an assistant applies a schema change to a branch, verifies it works, and only then promotes it to the main branch. Getting a migration wrong costs a discarded branch rather than a production incident.
  • SQL execution against any branch, with schema inspection
  • Connection string retrieval for wiring the database into an application

Why branching matters here

The main risk of letting an agent touch a database is that mistakes are permanent. Branching converts that into a reversible operation, which changes what you are comfortable delegating.

Runs with npx @neondatabase/mcp-server-neon start <api-key>, or as a remote server for clients that support it.

Related MCP Servers

Browse all MCP servers →