Neon MCP
by Neon
Natural language interaction with Neon serverless Postgres databases
database Node.js Intermediate Self-hostable Verified
β 557 stars π
Updated: 1mo ago
Description
Open-source MCP server for natural language interaction with Neon serverless Postgres. Provides 30+ tools covering project management, branch operations, SQL execution, migrations, performance analysis, and query optimization. Features safe migration testing in temporary branches before applying changes to production, enabling developers to iterate confidently on schema changes. Supports both local STDIO transport via npx and a hosted remote endpoint at mcp.neon.tech for zero-install access.
β Best for
Teams using Neon serverless Postgres who want AI-assisted database management and safe migrations
βοΈ Skip if
You use self-hosted Postgres or another managed database provider
π‘ Use cases
- Running SQL queries and managing Neon Postgres databases through natural language
- Testing schema migrations safely in temporary branches before applying to production
- Analyzing slow queries and optimizing database performance with AI assistance
- Provisioning and managing Neon projects, branches, and authentication directly from AI tools
π Pros
- β Safe migration workflow with temporary branch testing before production changes
- β 30+ tools covering the full Neon platform lifecycle
- β Dual access via local npx install or hosted remote MCP endpoint
- β Official first-party server maintained by the Neon team
π Cons
- β Requires a Neon account and API key β not usable with generic Postgres instances
- β Remote endpoint adds latency compared to local STDIO transport
- β Branch-based migration workflow has a learning curve for traditional DB users
π§ Exposed tools (10 tools)
| Tool | Category | Description |
|---|---|---|
| provision_auth | auth | Provision authentication for a Neon project |
| create_branch | branching | Create a new database branch for safe development |
| search_docs | documentation | Search the Neon documentation |
| create_project | management | Create a new Neon project |
| list_projects | management | List all Neon projects in the account |
| prepare_migration | migration | Prepare a migration in a temporary branch for safe testing |
| complete_migration | migration | Apply a tested migration to the target branch |
| analyze_slow_queries | performance | Analyze and identify slow-running database queries |
| explain_query | performance | Get execution plan and optimization suggestions for a query |
| execute_sql | query | Execute SQL queries against a Neon database |
β‘ Installation
Prerequisites:
- β’ Node.js v18+
- β’ Neon API key
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
Use the remote endpoint at mcp.neon.tech/mcp for quick setup without local installation. The branch-based migration workflow lets you test schema changes in isolation β always use prepare_migration before complete_migration.
π Alternatives
Quick info
- Author
- Neon
- License
- MIT
- Runtime
- Node.js 18+
- Transport
- stdio
- Category
- database
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows