Database Integrations: Connecting Workers to Neon, PlanetScale, and Supabase
Setting up a database connection often slows developers down more than it should. You have to find a compatible driver, figure out the right connection string, and translate examples to your platform. Cloudflare's new Database Integrations feature aims to remove those obstacles by letting you connect a Worker to a supported database through a short OAuth flow, with credentials stored as encrypted environment variables.
The initial release covers three database providers that support HTTP connections: Neon, PlanetScale, and Supabase. Support for more platforms—including Prisma, Fauna, and MongoDB Atlas—is on the roadmap.
From Discovery to Connection
Getting started begins with the Integrations tab in the Cloudflare dashboard. There you'll see the available database providers and can add an integration directly to your Worker. This makes it easy to survey options before committing to one.

After you select a provider, the setup walks you through an OAuth2 flow. This eliminates the need to manually copy and paste database credentials into your Worker's configuration. The integration retrieves the correct connection configuration automatically and stores it as encrypted environment variables on your Worker.

The resulting connection lets you use the data platform's own client library. Cloudflare provides documentation with examples for querying your database once the credentials are set up. Templates for faster project bootstrapping are also in the works.
Reducing Configuration Friction
Database Integrations complement other recent efforts to improve database connectivity from Workers. The platform now supports outbound TCP sockets via a connect() API, and a feature called Smart Placement can move code execution closer to your backend to reduce latency. While those enhancements address transport and performance, Database Integrations tackle the remaining configuration overhead: each database has its own drivers, APIs, and vendor-specific quirks. The goal is to make the connection process nearly foolproof.
The feature works alongside D1, Cloudflare's serverless SQL database, which continues to evolve toward production readiness. Database Integrations recognize that developers often prefer other data platforms and should be able to pair them with Cloudflare's compute.
What's on the Horizon
Several improvements to Database Integrations are in development:
- An integrations platform that lets database providers build their own integrations with Workers, keeping pace with the changing database landscape.
- Wrangler support, so you can create integrations from the CLI rather than the dashboard.
- Account-level environment variables, making it possible to share an integration across all Workers in your account.



