neon-postgres

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and pla…

neondatabase ↓ 55k
Claude Code
View source ↗

What it does

  • Existing database connection code
  • Existing Neon MCP server or Neon CLI configuration
  • Existence of a .env file and DATABASEURL environment variable
  • Existing ORM (Prisma, Drizzle, TypeORM) configuration
  • 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

Requirements & configuration

  • 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.
  • 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.
  • Use this when you need to pick the correct transport and driver based on runtime constraints (TCP, HTTP, WebSocket, edge, serverless, long-running).
  • Use this for direct HTTP automation, endpoint-level control, API key auth, rate-limit handling, and operation polling.
  • dataApi: true, // Data API (adds NEONDATAAPIURL); requires auth: true (or an external IdP)

Configuration: DATABASE_URL

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

Source

Repository: https://github.com/neondatabase/agent-skills

neon-postgres FAQ

What does the neon-postgres skill do?

>- Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods, branching, autoscaling, scale-to-zero, read replicas, connection pooling, Neon Auth, and the Neon CLI, MCP server, REST API, TypeScript SDK, and Python SDK. Use when users ask about "Neon setup", "connect to Neon", "Neon project", "DATABASE_URL", "serverless Postgres", "Neon CLI", "neon", "Neon MCP", "Neon Auth", "@neondatabase/serverless", "@neondatabase/neon-js", "scale to zero", "Neon autoscaling", "Neon read replica", or "Neon connection pooling". Existing database connection code Existing Neon MCP server or Neon CLI configuration

What does neon-postgres require?

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. 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. Use this when you need to pick the correct transport and driver based on runtime constraints (TCP, HTTP, WebSocket, edge, serverless, long-running). Use this for direct HTTP automation, endpoint-level control, API key auth, rate-limit handling, and operation polling. dataApi: true, // Data API (adds NEONDATAAPIURL); requires auth: true (or an external IdP) Configuration keys: DATABASE_URL.

How do I install neon-postgres?

Run: npx -y skills add https://github.com/neondatabase/agent-skills --skill neon-postgres --agent claude-code — the source lives at github.com/neondatabase/agent-skills.

Maintain neon-postgres?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

neon-postgres on getagentictools
[![neon-postgres on getagentictools](https://getagentictools.com/badge/skills/neondatabase-agent-skills-neon-postgres.svg)](https://getagentictools.com/skills/neondatabase-agent-skills-neon-postgres?ref=badge)
npx agentictools info skills/neondatabase-agent-skills-neon-postgres

The second line is the CLI lookup for this page — handy in READMEs and docs.