Skip to content

neon

Use when working with Neon serverless Postgres — project setup, branching,

ModelSource
sonnetpack: database
Full Reference

┏━ 🔧 neon ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with Neon serverless Postgres… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Neon is a serverless Postgres platform with copy-on-write branching and scale-to-zero compute. Instant database branches — full clones in milliseconds, zero impact on the parent.

ItemValue
API Basehttps://console.neon.tech/api/v2/
AuthBearer token (Authorization: Bearer $NEON_API_KEY)
MCP Serverhttps://mcp.neon.tech/mcp
Node.js Driver@neondatabase/serverless (v1.0.2, Node.js 19+)
AI Toolkit@neondatabase/toolkit
Rate Limits700 req/min; burst 40 req/sec per route; HTTP 429 on exceed
Docshttps://neon.com/docs
TopicFileWhen to use
MCP server setupreference/mcp-setup.mdSetting up Neon MCP in Claude Code or any MCP client
Auth, API keys, connection stringsreference/auth-and-connections.mdConnecting to Neon, environment variables, direct vs pooled
Serverless driver (@neondatabase/serverless)reference/serverless-driver.mdHTTP mode, WebSocket mode, ORM integration, Node.js setup
REST API (projects, branches, endpoints)reference/api-reference.mdProgrammatic project/branch/compute management
Branching workflowsreference/branching.mdPer-PR branches, point-in-time restore, branch limits
Connection pooling (PgBouncer)reference/connection-pooling.mdPooled vs direct, transaction mode limitations
Autoscaling and compute sizingreference/autoscaling-and-compute.mdCU sizing, scale-to-zero, cold starts, LFC
Pricing tiersreference/pricing.mdFree vs Launch vs Scale, billing model
Error codesreference/error-codes.mdHTTP errors, connection errors, branch errors
SDKs and CLI (neonctl)reference/sdks-and-cli.mdTypeScript, Python, Go SDKs; neonctl commands
GitHub Actionsreference/github-actions.mdPR preview branches, schema diff, CI/CD patterns

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.