mcpservers.md

Neon MCP

Official Neon serverless Postgres MCP server — manage branches, run queries, and handle migrations through AI.

TRUSTED · Official
{
  "mcpServers": {
    "neon": {
      "command": "npx",
      "args": ["-y", "@neondatabase/mcp-server-neon", "start", "<your-neon-api-key>"]
    }
  }
}

Paste into your client's MCP configuration file.

"List all my Neon projects and their current branches"

Easy Setup

API key or simple config

Light usage
  • You use Neon for serverless Postgres and want AI help managing it
  • You need to create ephemeral branches for testing migrations
  • You want to query databases across branches conversationally
  • You're setting up new projects and want AI to scaffold them
  • You self-host Postgres (use postgres-mcp instead)
  • You use Supabase, PlanetScale, or another managed Postgres
  • You need features not exposed by Neon's API (like custom extensions)
1

Branch-Based Testing

Create a database branch from production to safely test migrations.

"Create a branch of my production database called 'test-migration' and run the new migration there"

2

Multi-Branch Queries

Compare data or schemas across branches to verify changes.

"Compare the user table schema between the main branch and the staging branch"

3

Project Scaffolding

Create a new Neon project with the right settings for a new app.

"Create a new Neon project in us-east-2 and give me the connection string"

Imagine telling your AI: 'Create a new branch of my production database for testing' or 'Run this migration on the staging branch' — and it manages Neon for you. This server connects your AI to Neon's serverless Postgres so it can manage projects, create branches, run queries, and handle migrations through conversation.

The official Neon MCP server gives AI assistants full control over Neon serverless Postgres databases. Create and manage database branches, run queries, handle migrations, inspect schemas, and monitor usage — all through natural language.

Maintained by Neon with deep integration into Neon's branching workflow. Ideal for teams using Neon's serverless Postgres.

GitHub 2.1kUpdated Feb 13, 2025MIT
Claude Cursor Windsurf Cline
#neon#postgres#serverless#database#official