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
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
jurisdiction | eu | fedramp | us | Specify the location to restrict the D1 database… |
name required | string | D1 database name. |
primary_location_hint | wnam | enam | weur | eeur | apac | oc | Specify the region to create the D1 primary, if… |
read_replication | object | Configuration 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:
{
"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:
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 ….