Home / Servers / Cloudflare API / custom_csrs_for_a_zone_create_custom_csr

Create Custom CSR

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

Create Custom CSR Generate a new custom Certificate Signing Request (CSR) for a zone. Cloudflare generates and… [POST /zones/{zone_id}/custom_csrs]

Name on the gateway: cloudflare_api__custom_csrs_for_a_zone_create_custom_csr · may change things.

Parameters

NameTypeDescription
zone_id requiredstringzone_id parameter
common_name requiredstringThe common name (domain) for the CSR. Must be at…
country requiredstringTwo-letter ISO 3166-1 alpha-2 country code.
key_typersa2048 | p256v1Key algorithm to use for the CSR. Defaults to…
locality requiredstringCity or locality name.
organization requiredstringOrganization name.
organizational_unitstringOrganizational unit name.
sans requiredarraySubject Alternative Names for the CSR. At least…
state requiredstringState or province name.

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__custom_csrs_for_a_zone_create_custom_csr",
  "arguments": {
    "zone_id": "…",
    "common_name": "…",
    "country": "…",
    "locality": "…",
    "organization": "…",
    "sans": [],
    "state": "…"
  }
}

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 custom csr tool with zone_id set to ….

More from Cloudflare API