3rd Party Integrations

Last updated Apr 23, 2026

Background

Connect to databases by configuring connection strings and credentials as secrets in your Worker.

Connecting to a regional database from a Worker?

If your Worker is connecting to a regional database, you can reduce your query latency by using Hyperdrive and Smart Placement which are both included in any Workers plan. Hyperdrive will pool your databases connections globally across Cloudflare's network. Smart Placement will monitor your application to run your Workers closest to your backend infrastructure when this reduces the latency of your Worker invocations. Learn more about how Smart Placement works.

Database credentials

When you rotate or update database credentials, you must update the corresponding secrets in your Worker. Use the wrangler secret put command to update secrets securely or update the secret directly in the Cloudflare dashboard ↗︎.

Database limits

You can connect to multiple databases by configuring separate sets of secrets for each database connection. Use descriptive secret names to distinguish between different database connections (for example, DATABASE_URL_PROD and DATABASE_URL_STAGING).

Was this helpful?

YesNo

On this page

3rd Party Integrations - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/workers/databases/third-party-integrations/#page","headline":"3rd Party Integrations","description":"Connect to third-party databases such as Supabase, Turso and PlanetScale)","url":"https://developers.cloudflare.com/workers/databases/third-party-integrations/","inLanguage":"en","image":"https://developers.cloudflare.com/workers/databases/third-party-integrations/og.png?v=d2f09c2fa0fcf394","dateModified":"2026-04-23","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Connect Cloudflare Workers to MongoDB using the native Node.js driver or Mongoose. title: MongoDB image: https://developers.cloudflare.com/workers/databases/third-party-integrations/mongodb/og.png?v=456970d4b9f269d4


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/workers/llms.txt
Use this file to discover all available pages before exploring further.