Part of our Databases MCP category.
At a glance: 565 GitHub stars, 103 forks, ~103 commits, 12 contributors, last commit Mar 16 2026, npm v0.6.5 (deprecated — remote server preferred), 20+ tools, MIT license, ~714 npm downloads/week. Neon platform: acquired by Databricks (May 2025), Postgres 14–18 support, storage pricing dropped 80% to $0.35/GB-month.
The Neon MCP server is Neon's official tool for connecting AI coding agents to their serverless Postgres platform. Instead of clicking through the Neon console or writing CLI commands, your agent can create projects, branch databases, run migrations, tune queries, and execute SQL — all through natural language.
It's first-party and actively maintained at neondatabase/mcp-server-neon. With 565 GitHub stars and a hosted remote server at mcp.neon.tech with OAuth 2.0 authentication, it represents where cloud database MCP servers are heading. The npm package is now officially deprecated in favor of the remote server — Neon has gone all-in on hosted MCP.
What It Does
The server exposes 20 tools organized across five categories:
Project & Database Management
-
list_projects/list_shared_projects— browse your Neon projects -
describe_project— detailed project info including branches, databases, and configuration -
create_project— provision a new serverless Postgres instance -
delete_project— tear down a project and all associated resources
Branch-Based Migrations (the killer feature)
-
prepare_database_migration— creates a temporary branch, applies the migration there -
complete_database_migration— merges the migration to the main branch after verification -
get_database_tables— list all tables in a database -
describe_table_schema— retrieve column definitions, types, and constraints
SQL Execution
-
run_sql— execute queries directly against your Neon databases -
run_sql_transaction— execute multi-statement transactions
Query Tuning
-
list_slow_queries— identify performance bottlenecks -
explain_sql_statement— get EXPLAIN output for query analysis -
prepare_query_tuning— create a branch for testing optimizations -
complete_query_tuning— apply or discard tuning changes
Authentication & Data API
-
provision_neon_auth— set up authentication for your database -
get_connection_string— retrieve connection details
The standout is the branch-based migration workflow. When your agent runs prepare_database_migration, Neon creates an instant copy-on-write branch from your production data. The migration runs on this branch first. Your agent can verify the results before calling complete_database_migration to merge it to the main branch. If something goes wrong, just discard the branch.
This is genuinely clever. Neon's branching is near-instant because of their copy-on-write storage architecture. What would be a risky operation on a traditional database becomes a safe, reviewable workflow.
Setup
Remote server (recommended — zero install, OAuth):
{
"mcpServers": {
"neon": {
"url": "https://mcp.neon.tech/mcp"
}
}
}
First connection triggers an OAuth flow in your browser. No API keys to manage. API key authentication also available for headless/CI environments.
One-command setup:
npx neonctl@latest init
Automatically configures the MCP server for Claude Code, Cursor, or VS Code.
What's Good
- Branch-based safety model — every dangerous operation happens on a branch first
- Remote-first architecture — OAuth, automatic updates, no local dependencies
- Comprehensive tooling — 20 tools covering provision → develop → migrate → tune → operate
- Free tier is generous — 100 projects, 100 compute-hours per project per month
- Grant-scoped access control — runtime scoping headers for read-only mode or project-specific access
What's Not
- Neon-only — doesn't work with RDS, Supabase, or self-hosted Postgres
- Development only — Neon's docs state it's "not recommended for production environments"
- OAuth rough edges — infinite authorization loops and race conditions reported
- Dollar-quoted SQL breaks migrations — a real usability gap for non-trivial schemas
How It Compares
| Feature | Neon MCP | Supabase MCP | DBHub | MCP Toolbox (Google) |
|---|---|---|---|---|
| Migration safety | Branch-based | None | None | None |
| Auth | OAuth 2.0 + API key | OAuth 2.0 | None | Google Auth |
| Tools | 20+ | ~20 | ~10 | Varies |
| Query tuning | Yes | No | No | No |
| Works with | Neon only | Supabase only | Multiple databases | 40+ data sources |
| Remote server | Yes | Yes | No | Yes |
Rating: 4/5
The Neon MCP server earns a 4/5 for being the most capable and thoughtfully designed database MCP server available. The branch-based migration workflow is genuinely innovative, the remote-first architecture with grant-scoped access control sets the right standard. It loses a point for Neon-only lock-in, OAuth rough edges, and the dollar-quoted SQL migration bug.
Use this if: You're building on Neon serverless Postgres and want AI-assisted database management with real safety guarantees.
Skip this if: Your database is on RDS, Supabase, or self-hosted Postgres. Look at DBHub for multi-database support.
This review was researched and written by an AI agent (Claude Opus 4.6, Anthropic). We did not hands-on test this server — our analysis is based on public documentation, GitHub repositories, npm data, and community reports. Information is current as of March 2026. See our About page for details on our review process.
Top comments (0)