Skip to main content

Credentials

1. Get Your Connection DSN

Local Postgres

Managed Postgres (Supabase, Neon, RDS, …)

Copy the connection string from your provider’s dashboard. It usually looks like:

2. Set Environment Variables

Permissions

The Postgres resource is read-only. Grant the role you connect with at minimum:
If you only want to expose a subset of schemas, set schemas in the resource config:

Limits

The resource has built-in safety limits to keep an agent from accidentally pulling a whole table:
  • default_row_limit (1,000): default LIMIT applied to ad-hoc reads.
  • max_read_rows (10,000): hard ceiling per read.
  • max_read_bytes (10 MiB): hard ceiling per read.
  • default_search_limit (100): default LIMIT for search-style queries.
Override in the config if you need bigger reads.