
claimable-postgres
✓ Official★ 615by neondatabase · part of neondatabase/mcp-server-neon
Create an instant Postgres database with Claimable Postgres by Neon ( pg.new ) for fast local development, demos, prototyping, and test environments.
Create an instant Postgres database with Claimable Postgres by Neon ( pg.new ) for fast local development, demos, prototyping, and test environments.
Inspect the full instructions your agent will receiveExpandCollapse
This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.
name: claimable-postgres description: >- Provision instant temporary Postgres databases via Claimable Postgres by Neon (pg.new) with no login, signup, or credit card. Use when users ask for a quick Postgres environment, a throwaway DATABASE_URL for prototyping/tests, or "just give me a DB now". Triggers include: "quick postgres", "temporary postgres", "no signup database", "no credit card database", "instant DATABASE_URL".
Claimable Postgres
Create an instant Postgres database with Claimable Postgres by Neon (pg.new) for fast local development, demos, prototyping, and test environments.
Databases are temporary by default (typically 72 hours) and can be claimed later to a Neon account for permanent use.
When to Use Which Method
CLI (npx get-db)
Use this by default for most users who want a fast setup in an existing project.
npx get-dbCommon flags:
-y, --yes: skip prompts-e, --env <path>: choose env file path-k, --key <name>: customize env var key (defaultDATABASE_URL)-s, --seed <path>: run SQL seed file-L, --logical-replication: enable logical replication-r, --ref <id>: set source/referrer id
SDK (get-db/sdk)
Use this for scripts and programmatic provisioning flows.
import { instantPostgres } from "get-db/sdk";
const db = await instantPostgres();
console.log(db.connectionString);REST API
Use this for non-Node environments or custom integrations.
curl -X POST https://pg.new/api/v1/database \
-H "Content-Type: application/json" \
-d '{"ref":"my-app"}'Agent Workflow
- Confirm user wants a temporary, no-signup database.
- Ask whether they want CLI, SDK, or API (default to CLI).
- If CLI, run
npx get-dbin the project root. - Verify
DATABASE_URLwas added to the intended env file. - Offer a quick connection test (
SELECT 1) in their stack. - Explain expiry and how to keep it via claim URL.
Output to Provide to the User
Always return:
- where the connection string was written (for example
.env) - which variable key was used (
DATABASE_URLor custom key) - whether a
PUBLIC_CLAIM_URLis present - a reminder that unclaimed DBs are temporary
Safety and UX Notes
- Do not overwrite existing env files; update in place.
- Ask before destructive seed SQL (
DROP,TRUNCATE, massDELETE). - For production workloads, recommend standard Neon provisioning instead of temporary claimable DBs.
- If users need long-term persistence, instruct them to open the claim URL immediately.
npx skills add https://github.com/neondatabase/mcp-server-neon --skill claimable-postgresRun this in your project — your agent picks the skill up automatically.
Quick Start
Run:
npx get-dbThis provisions a database and writes DATABASE_URL to .env.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.