Home / Servers / Cloudflare API / d1_create_database

Create D1 Database

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Create D1 Database Create a new D1 database in your account. [POST /accounts/{account_id}/d1/database]

Name on the gateway: cloudflare_api__d1_create_database · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
jurisdictioneu | fedramp | usSpecify the location to restrict the D1 database…
name requiredstringD1 database name.
primary_location_hintwnam | enam | weur | eeur | apac | ocSpecify the region to create the D1 primary, if…
read_replicationobjectConfiguration for D1 read replication.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__d1_create_database",
  "arguments": {
    "account_id": "…",
    "name": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create d1 database tool with account_id set to ….

More from Cloudflare API