Home / Servers / Cloudflare API / worker_script_upload_worker_module

Upload Worker

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

Upload Worker code and configuration. For ES module and other module-based Workers, use multipart/form-data with… [PUT /accounts/{account_id}/workers/scripts/{script_name}]

Name on the gateway: cloudflare_api__worker_script_upload_worker_module · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
script_name requiredstringscript_name parameter
bindings_inheritstrictWhen set to "strict", the upload will fail with…
filesarrayAn array of modules (often JavaScript files)…
metadata requiredobject

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__worker_script_upload_worker_module",
  "arguments": {
    "account_id": "…",
    "script_name": "…",
    "metadata": "…"
  }
}

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 upload worker tool with account_id set to ….

More from Cloudflare API