Cloudflare D1

Overview
Cloudflare D1 is a managed, serverless SQL database that uses SQLite’s SQL semantics. It runs on Cloudflare’s global network and connects to Workers and Pages projects through a binding in the project configuration. It can also be reached over an HTTP API. Global read replication adds read-only copies of a database in regions closer to clients. Time Travel can restore a database to any minute in the last 30 days.
Billing is based on rows read, rows written and storage, and it scales to zero, so there’s no compute charge when no queries run. D1 supports separate databases for each user, tenant or project. It works with ORMs such as Prisma and Drizzle, and you can develop locally with the Wrangler CLI.
Categories
Features
View all 12 featuresProduct Features
- Point-in-time recovery
- Scale to zero
- Database backups
- Database migrations
- ORM compatibility
Security & Compliance
- SOC 2 Type II
- ISO 27001
- Audit Logs
- Encryption at rest and in transit
Data & Hosting
- EU Data Residency
- Data Export
Pricing
Cloudflare D1 offers a free plan, with paid plans from $0.001 per million rows read.
| Plan | Price |
|---|---|
| Workers Free | $0/pm |
| Workers Paid | From $0.001 per million rows read |
Last checked November 5, 2026. Prices come from Cloudflare D1’s website and may change. Confirm current pricing with Cloudflare D1 before you buy.
Use Cloudflare D1 with AI agents

Cloudflare Ai Gateway MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare API MCP
By Cloudflare
- Hosting
- Remote
- Tools
- 4

Cloudflare Auditlogs MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Autorag MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Bindings MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Browser Run MCP
By Cloudflare
- Hosting
- Remote
- Tools
- 13

Cloudflare Builds MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Container Sandbox MCP
By Cloudflare
- Hosting
- Remote
- Tools
- 7

Cloudflare Dns Analytics MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Graphql MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Logs MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Observability MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare One CASB server
By Cloudflare
- Hosting
- Remote
- Tools
- —

Cloudflare Radar MCP
By Cloudflare
- Hosting
- Remote
- Tools
- —

Digital Experience Monitoring server
By Cloudflare
- Hosting
- Remote
- Tools
- —
Showing 6 of 15 MCP servers
Cloudflare CLI (cf)
Alternatives to Cloudflare D1
CockroachDBDistributed SQL databaseUsage-Based
Prisma PostgresServerless PostgreSQL databaseFrom $10/pm
NeonServerless Postgres backendUsage-Based
Redis CloudManaged in-memory databaseUsage-Based
ClickHouse CloudManaged analytical databaseUsage-Based
Amazon AuroraServerless relational databaseUsage-Based