Cloudflare Hyperdrive API

Accelerates connections from Cloudflare Workers to remote PostgreSQL databases by maintaining persistent regional connection pools and caching query results at the edge.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Other cloudflare workers database connection-pooling postgres edge latency pgbouncer
⚙ Agent Friendliness
61
/ 100
Can an agent use this?
🔒 Security
89
/ 100
Is it safe for agents?
⚡ Reliability
78
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
85
Error Messages
80
Auth Simplicity
82
Rate Limits
75

🔒 Security

TLS Enforcement
100
Auth Strength
85
Scope Granularity
82
Dep. Hygiene
88
Secret Handling
90

Database credentials are stored encrypted and never exposed to Worker code — only a connection proxy is accessible. API tokens use fine-grained Cloudflare permission scopes. TLS enforced on all paths.

⚡ Reliability

Uptime/SLA
85
Version Stability
75
Breaking Changes
72
Error Recovery
80
AF Security Reliability

Best When

Your agent runs on Cloudflare Workers and needs efficient, low-latency access to a PostgreSQL database without managing connection pooling infrastructure.

Avoid When

Your agent runs outside of Cloudflare Workers, or you are using a non-PostgreSQL database.

Use Cases

  • Connect a Cloudflare Workers-based agent to a remote PostgreSQL database without per-request connection overhead or cold-start latency
  • Cache frequent read queries at the edge so agents running in Workers avoid round-trips to a geographically distant database
  • Use the Hyperdrive API to provision and manage database connection configurations programmatically during agent deployments
  • Replace a naive pg connection in a Worker agent with a Hyperdrive binding to get connection pooling without managing pgBouncer
  • Reduce database load from many concurrent Workers invocations by funneling connections through Hyperdrive's regional pool

Not For

  • Non-Cloudflare-Workers environments — Hyperdrive only works as a binding within the Workers runtime
  • Non-PostgreSQL databases (MySQL, MongoDB, Redis) — Hyperdrive is Postgres-specific
  • Persistent long-lived connections or subscriptions requiring server-push (use a message queue or pub/sub service)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: api_key api_token
OAuth: No Scopes: Yes

Uses Cloudflare API tokens with Hyperdrive-scoped permissions (create, read, update, delete configs). Within Workers, the database connection string (including credentials) is stored encrypted in Hyperdrive config and never exposed to Worker code.

Pricing

Model: usage_based
Free tier: Yes
Requires CC: No

Currently no separate Hyperdrive charge beyond the Workers subscription. Pricing model may change when the feature reaches general availability.

Agent Metadata

Pagination
offset
Idempotent
Partial
Retry Guidance
Not documented

Known Gotchas

  • Hyperdrive is only accessible as a Workers binding — agents cannot use Hyperdrive from Node.js, Python, or other runtimes outside of the Workers sandbox
  • The database password is stored in Hyperdrive config and cannot be read back after creation — agents must securely store credentials separately if they need to rotate them
  • Query caching is enabled by default; agents running transactional workloads that need strict read-after-write consistency must disable caching or use cache bypass headers
  • Hyperdrive does not support all PostgreSQL features available in direct connections — agents using advanced pg features (LISTEN/NOTIFY, COPY, certain extensions) may find them unsupported
  • Config updates (e.g., rotating database credentials) require a Worker redeploy to pick up the new binding — agents cannot hot-swap credentials without redeployment

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Cloudflare Hyperdrive API.

$99

Scores are editorial opinions as of 2026-03-06.

5178
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered