
Neon Postgres
Set up Neon serverless Postgres, connection strings, branching, pooling, auth, and tooling (CLI, MCP, SDKs) with answers grounded in official Neon docs.
Install
npx skills add https://github.com/neondatabase/agent-skills --skill neon-postgresWhat is this skill?
- Covers Neon serverless Postgres: autoscaling, scale-to-zero, branching, and instant restore
- Connection methods, connection pooling, and read replicas
- Neon Auth plus CLI (neonctl), MCP server, REST API, TypeScript and Python SDKs
- Instructs agents to verify claims against Neon docs including .md URL fetches
- Trigger phrases include DATABASE_URL, @neondatabase/serverless, and Neon MCP
Adoption & trust: 38.3k installs on skills.sh; 68 GitHub stars; 2/3 security scanners passed (skills.sh audits).
Recommended Skills
Supabase Postgres Best Practicessupabase/agent-skills
Lark Baselarksuite/cli
Convex Migration Helperget-convex/agent-skills
Firebase Firestore Standardfirebase/agent-skills
Postgresql Table Designwshobson/agents
Sql Optimization Patternswshobson/agents
Journey fit
Primary fit
Database choice and DATABASE_URL wiring are core Build/backend work for most indie SaaS and APIs. Backend is the shelf because the skill centers on Postgres connectivity, Neon project setup, and serverless database features—not frontend UI.
Common Questions / FAQ
Is Neon Postgres safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Neon Postgres
# Neon Serverless Postgres Guide the user through any Neon-related task: setup, connections, branching, and advanced features. Deliver a working Neon connection, a completed feature configuration, or a specific answer from the official Neon docs. Neon is a serverless Postgres platform that separates compute and storage to offer autoscaling, branching, instant restore, and scale-to-zero. It's fully compatible with Postgres and works with any language, framework, or ORM that supports Postgres. ## Neon Documentation The Neon documentation is the source of truth for all Neon-related information. Always verify claims against the official docs before responding. Neon features and APIs evolve, so prefer fetching current docs over relying on training data. ### Fetching Docs as Markdown Any Neon doc page can be fetched as markdown in two ways: 1. **Append `.md` to the URL** (simplest): https://neon.com/docs/introduction/branching.md 2. **Request `text/markdown`** on the standard URL: `curl -H "Accept: text/markdown" https://neon.com/docs/introduction/branching` Both return the same markdown content. Use whichever method your tools support. ### Finding the Right Page The docs index lists every available page with its URL and a short description: ``` https://neon.com/docs/llms.txt ``` Common doc URLs are organized in the topic links below. If you need a page not listed here, search the docs index: https://neon.com/docs/llms.txt. Don't guess URLs. ## What Is Neon Use this for architecture explanations and terminology (organizations, projects, branches, endpoints) before giving implementation advice. Link: https://neon.com/docs/introduction/architecture-overview.md ## Getting Started Use this section when guiding a user through first-time Neon setup. ### Check Status Quo Before starting setup, inspect the user's codebase and environment: - Existing database connection code - Existing Neon MCP server or Neon CLI configuration - Existence of a `.env` file and `DATABASE_URL` environment variable - Existing ORM (Prisma, Drizzle, TypeORM) configuration ### Self-Driving Setup With Neon's CLI or MCP Server Offer to inspect existing connected Neon projects or create new ones using the Neon CLI or MCP server. If neither is set up yet, run init with the `--agent` flag. Use `npx -y` to skip the package install prompt. Auth is handled automatically. If the user is not logged in, it opens their browser for OAuth and waits for completion before proceeding. ```bash npx -y neonctl@latest init --agent <agent-name> ``` Supported `--agent` values: `cursor`, `copilot`, `claude`, `claude-desktop`, `codex`, `opencode`, `cline`, `gemini-cli`, `goose`, `zed`. This installs the Neon extension (for Cursor/VS Code) or MCP server (for other agents), creates an API key, and adds the `neon-postgres` agent skill to the project. If `init` is not suitable, the individual steps can be run non-interactively: - **Extension:** `cursor --install-extension databricks.neon-local-connect` - **MCP server:** `npx -y add-mcp https://mcp.neon.tech/mcp -g -n Neon -y -a <agent-name>` - **Agent skill:** `npx skills add neondatabase/agent-skills --skill neon-postgres --agent <agent-name> -y` For full CLI installation options, see https://neon.com/docs/reference/cli-install.md ### Setup Flow **1. Select Organization and Project** Use MCP server