[Home](/index.md) › [Tools](/tools.md) › Cloudflare D1

# Cloudflare D1

Serverless SQLite database

Website: [https://www.cloudflare.com/products/d1/](https://parible.co/go/cloudflare-d1?link=website&from=markdown)

![Cloudflare D1 homepage](https://ohtvsdyfknahbwffwdqi.supabase.co/storage/v1/object/public/tool-screenshots/4ff87fa6-fb9a-45a8-9270-c322e75205a4/1793888254664-1800.webp)

## Overview

Cloudflare D1 is a managed, serverless SQL [database](/categories/backend-and-infrastructure.md) 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

- [Databases](/categories/backend-and-infrastructure/databases.md)

## Features

- SOC 2 Type II
- ISO 27001
- Point-in-time recovery
- EU Data Residency
- Data Export
- Audit Logs
- Scale to zero
- Database backups
- Encryption at rest and in transit
- Database migrations
- ORM compatibility
- Generated columns

[View all features](/tools/cloudflare-d1/features.md)

## Pricing

Cloudflare D1 offers a free plan, with paid plans from $0.001 per million rows read.

| Plan | Price |
| --- | --- |
| Workers Free | $0/month |
| Workers Paid | From $0.001 per million rows read |

Last checked November 5, 2026. We aim to show the cheapest entry price for each pricing plan. Where possible this is the monthly price, otherwise we show the per-month price billed yearly, or the yearly price when that is all the vendor lists. Usage prices are shown per unit. Prices come from Cloudflare D1’s website and may change. [Confirm current pricing with Cloudflare D1](https://developers.cloudflare.com/d1/platform/pricing/) before you buy.

## Use Cloudflare D1 with AI agents

### Remote MCP

#### Cloudflare Ai Gateway MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://ai-gateway.mcp.cloudflare.com/mcp
```

```
https://ai-gateway.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Ai Gateway MCP](/mcp/cloudflare-ai-gateway.md)

#### Cloudflare API MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://mcp.cloudflare.com/mcp
```

[Read the MCP docs](https://github.com/cloudflare/mcp#get-started)

[View details of Cloudflare API MCP](/mcp/cloudflare-api.md)

#### Cloudflare Auditlogs MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://auditlogs.mcp.cloudflare.com/mcp
```

```
https://auditlogs.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Auditlogs MCP](/mcp/cloudflare-auditlogs.md)

#### Cloudflare Autorag MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://autorag.mcp.cloudflare.com/mcp
```

```
https://autorag.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Autorag MCP](/mcp/cloudflare-autorag.md)

#### Cloudflare Bindings MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://bindings.mcp.cloudflare.com/mcp
```

```
https://bindings.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Bindings MCP](/mcp/cloudflare-bindings.md)

#### Cloudflare Browser Run MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://browser.mcp.cloudflare.com/mcp
```

[Read the MCP docs](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/browser-rendering#connect-to-the-mcp-server)

[View details of Cloudflare Browser Run MCP](/mcp/cloudflare-browser-run.md)

#### Cloudflare Builds MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://builds.mcp.cloudflare.com/mcp
```

```
https://builds.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Builds MCP](/mcp/cloudflare-builds.md)

#### Cloudflare Container Sandbox MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://containers.mcp.cloudflare.com/mcp
```

[Read the MCP docs](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/sandbox-container#connect-to-the-mcp-server)

[View details of Cloudflare Container Sandbox MCP](/mcp/cloudflare-container-sandbox.md)

#### Cloudflare Dns Analytics MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://dns-analytics.mcp.cloudflare.com/mcp
```

```
https://dns-analytics.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Dns Analytics MCP](/mcp/cloudflare-dns-analytics.md)

#### Cloudflare Graphql MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://graphql.mcp.cloudflare.com/mcp
```

```
https://graphql.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Graphql MCP](/mcp/cloudflare-graphql.md)

#### Cloudflare Logs MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://logs.mcp.cloudflare.com/mcp
```

```
https://logs.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Logs MCP](/mcp/cloudflare-logs.md)

#### Cloudflare Observability MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://observability.mcp.cloudflare.com/mcp
```

```
https://observability.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Observability MCP](/mcp/cloudflare-observability.md)

#### Cloudflare One CASB server

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://casb.mcp.cloudflare.com/mcp
```

[Read the MCP docs](https://developers.cloudflare.com/agent-setup/claude-code/)

[View details of Cloudflare One CASB server](/mcp/cloudflare-one-casb.md)

#### Cloudflare Radar MCP

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://radar.mcp.cloudflare.com/mcp
```

```
https://radar.mcp.cloudflare.com/sse
```

[Read the MCP docs](https://registry.modelcontextprotocol.io/v0/servers/com.cloudflare.mcp%2Fmcp/versions/latest)

[View details of Cloudflare Radar MCP](/mcp/cloudflare-radar.md)

#### Digital Experience Monitoring server

Cloudflare D1 has an MCP server available for your AI agent. Connect using the URL below.

```
https://dex.mcp.cloudflare.com/mcp
```

[Read the MCP docs](https://developers.cloudflare.com/agent-setup/claude-code/)

[View details of Digital Experience Monitoring server](/mcp/digital-experience-monitoring.md)

### CLI

#### Wrangler

Cloudflare D1 has CLI tools available so your agent can run commands in the terminal. Install the CLI using the command below.

[Read the CLI docs](https://developers.cloudflare.com/d1/wrangler-commands/index.md)

#### Cloudflare CLI (cf)

Cloudflare D1 has CLI tools available so your agent can run commands in the terminal. Install the CLI using the command below.

```sh
npm install --global cf
```

[Read the CLI docs](https://developers.cloudflare.com/cf/get-started/index.md)

## Alternatives to Cloudflare D1

- [CockroachDB](/tools/cockroachdb.md): Distributed SQL database
- [Prisma Postgres](/tools/prisma-postgres.md): Serverless PostgreSQL database
- [Neon](/tools/neon.md): Serverless Postgres backend
- [Redis Cloud](/tools/redis-cloud.md): Managed in-memory database
- [ClickHouse Cloud](/tools/clickhouse-cloud.md): Managed analytical database
- [Amazon Aurora](/tools/amazon-aurora.md): Serverless relational database

[View all alternatives](/tools/cloudflare-d1/alternatives.md)

## Frequently asked questions

### How much does Cloudflare D1 cost?

Cloudflare D1 has both free and paid plans. Paid plans start from $0.001 per million rows read.

### Is Cloudflare D1 free?

Yes, Cloudflare D1 can be used for free with its Workers Free plan. Paid plans start from $0.001 per million rows read.

### Does Cloudflare D1 have a free trial?

Cloudflare D1 does not currently list a free trial on its site, but it can be used for free with its Workers Free plan.

### Does Cloudflare D1 have an MCP server?

Yes, Cloudflare D1 has a remote MCP server, so AI agents can work with it directly. See the [AI agents section](#ai-agents) for how to connect it.

### Does Cloudflare D1 have AI features?

We haven’t confirmed any AI features for Cloudflare D1 yet.

### Does Cloudflare D1 have an enterprise plan?

Cloudflare D1 does not currently list an enterprise-specific plan on its site.

### What are the alternatives to Cloudflare D1?

Popular alternatives to Cloudflare D1 include [CockroachDB](/tools/cockroachdb.md), [Prisma Postgres](/tools/prisma-postgres.md), [Neon](/tools/neon.md), [Redis Cloud](/tools/redis-cloud.md), [ClickHouse Cloud](/tools/clickhouse-cloud.md), and [Amazon Aurora](/tools/amazon-aurora.md). To find more alternatives to Cloudflare D1, view our [full list of alternatives](/tools/cloudflare-d1/alternatives.md).
