Skip to main content
MCP server CX Codex

Neon · neon — Claude Code MCP server: PostgreSQL management

Manage Neon projects, branches, and databases directly from Claude Code, Cursor, or GitHub Copilot. Execute SQL queries, create temporary branches for safe schema migrations, and optimize query performance with built-in analysis.

no license 1,350 installs updated 2026-01-29

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http neon https://neon.run.tools
Open on GitHub

What Neon does

Neon is an MCP server that connects eight IDEs and code assistants to Neon's database management platform. You can list and create projects, execute SQL statements and transactions, manage branches, inspect table schemas, and compare database structures across branches.

For safe migrations, the server creates temporary branches where you test DDL changes separately before applying them to production. Slow query detection hooks into pg_stat_statements to surface performance bottlenecks and suggest optimizations based on execution plans.

The server also provisions Neon Auth (a managed authentication layer) and Neon Data API (HTTP endpoints for database access with JWT). You need a Neon account to use it; the server communicates with https://neon.run.tools.

What it helps with

  • Run a SQL query against a Neon database without leaving the IDE
  • Test a schema migration on a temporary branch before deploying to the main database
  • Identify slow queries and get performance tuning recommendations
  • Check what changed in the database schema between two branches
  • Set up Neon Auth or the Data API on a branch in one step

Example prompts for the agent

  • List all my Neon projects and show details for the one named "app-db"
  • Create a temporary branch and add an email column to the users table, then explain the changes
  • Which queries are running slowest in my database right now?

How to install Neon

Platform CLI: remote server

claude mcp add --transport http neon https://neon.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Neon

How do I install Neon in Claude Code?

Run claude mcp add --transport http neon https://neon.run.tools. For Codex, use codex mcp add neon-neon --url https://neon.run.tools. For Cursor, add an entry to your config: {"neon-neon": {"url": "https://neon.run.tools"}}.

What does the Neon MCP server do?

It gives your AI assistant access to manage Neon projects, branches, and PostgreSQL databases from your IDE. You can run SQL, create branches for testing migrations, analyze slow queries, and provision services like managed auth and HTTP APIs.

Do I need a Neon account to use this server?

Yes. You need a Neon account with at least one project. The server communicates with your Neon account via API.

Similar MCP servers

All MCP servers for Backend and APIs →

Neon by other authors comes first.

Neon neondatabase Runs Neon projects and Lakebase Postgres databases from chat: branches, queries, migrations. Useful when you would rather not open the console or hand-write SQL. CX Codex +1 ★ 667repo stars Neon neondatabase-labs Connects Lakebase Postgres on Neon to AI agents so you can manage branches, run queries, and apply schema changes with plain text. CX Codex +1 neon-postgres neondatabase neon-postgres is a Claude Code skill for working with Neon databases, from connections and schemas to branches. It activates for existing database, SQL, inspection, and search tasks. CX Codex +1 315,000installs neon-postgres-branches neondatabase neon-postgres-branches is a Claude Code skill that provisions Neon database branches via CLI or MCP. It supports migration testing on real data and staging isolation. CX Codex +1 37,300installs neon-database-architect davila7 neon-database-architect — a Claude Code subagent that designs Neon database schemas and writes Drizzle ORM code. It starts on the first mention of a database in a task: scans configs, proposes migrations, and checks queries. CX Codex 478installs neon-auth-specialist davila7 neon-auth-specialist configures Stack Auth integration with Neon database synchronization. Helps set up user management, protected routes, and safe query patterns. CX Codex 387installs Neon Migration Specialist official github Neon Migration Specialist — a GitHub Copilot subagent that rehearses Postgres migrations on Neon branches and leaves the main database alone. Useful when schema changes can't take downtime. CX Codex +1 ★ 41,430repo stars Neon Performance Analyzer official github Neon Performance Analyzer identifies slow Postgres queries on Neon, tests schema fixes inside isolated database branches, and prepares PRs with execution metrics. CX Codex +1 ★ 41,430repo stars

Project sponsors

Companies that keep this analytics open