Skip to main content
MCP server CX Codex

Neon · neondatabase-labs — Claude Code MCP server: what it does, how to install

Connects Lakebase Postgres on Neon to AI agents so you can manage branches, run queries, and apply schema changes with plain text.

no license updated 2026-10-29

Open on GitHub

What Neon does

This server translates natural language instructions into Neon API calls and database operations via Model Context Protocol. It lets you spin up Postgres projects, inspect schemas, create compute endpoints, and fetch data without drafting raw API payloads.

Database migration workflows take advantage of Neon branching to apply structural changes safely. Getting started locally requires Node.js 18.0.0 or higher. If IP Allow restrictions are turned on in your Neon account, you must add static IP addresses 34.192.103.46 and 23.22.233.166 beforehand.

The server is explicitly scoped to local development and IDE integrations: running it against production databases introduces risks of unintended data alterations.

What it helps with

  • provision a new Postgres database and tables via conversational prompts
  • execute schema migrations relying on Neon database branches
  • retrieve project summaries and table schemas across your Neon account
  • query database records without manual SQL console access

Example prompts for the agent

  • Create a new Postgres database named my-db and add a users table with id, name, and email columns
  • Run a migration on project my-project to add a created_at column to the accounts table
  • List all my Neon projects and summarize what tables exist in each

How to install Neon

Install

The MCP registry has no launch command for it: see the repository README

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 to install Neon in Claude Code?

Run npx neon@latest init to log in via OAuth and automatically configure your environment. You can also attach the remote endpoint directly by running npx add-mcp "https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema".

What does the Neon MCP server do?

It bridges your LLM client with the Neon API, executing actions like creating branches, running queries, and managing Postgres instances.

Is it safe to run this server in production environments?

The project documentation warns against production deployment because LLM actions can trigger unreviewed, destructive database mutations.

Similar MCP servers

All MCP servers for Data and databases →

Neon by other authors comes first.

Neon neon 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. CX Codex +1 1,350installs 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-postgres-egress-optimizer neondatabase neon-postgres-egress-optimizer finds Postgres queries that send unused data to an application and suggests changes that reduce network transfer. CX Codex +1 35,100installs neon-realtime neondatabase neon-realtime turns any SQL query live: the client subscribes to row changes in Lakebase Postgres and gets them in batches. Useful for dashboards, feeds and multi-device sync. CX Codex +1 24,200installs 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 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 using-neon sickn33 The using-neon skill guides agents through Neon Serverless Postgres work, from connection choices to APIs and features such as branching, autoscaling, and scale-to-zero. CX Codex +1 ★ 50,109repo stars

Project sponsors

Companies that keep this analytics open