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 GitHubWhat 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.