Home / Servers / Cloudflare API / workers_kv_namespace_get_multiple_key_value_pairs

Get multiple key-value pairs

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

Get multiple key-value pairs Retrieves the text-based values of up to 100 keys from the specified Workers KV namespace. The… [POST /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/get]

Name on the gateway: cloudflare_api__workers_kv_namespace_get_multiple_key_value_pairs · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
namespace_id requiredstringnamespace_id parameter
keys requiredarrayArray of keys to retrieve (maximum of 100).
typetext | jsonReturn values as strings with text, or parse…
withMetadatabooleanWhether to include metadata in the response.

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__workers_kv_namespace_get_multiple_key_value_pairs",
  "arguments": {
    "account_id": "…",
    "namespace_id": "…",
    "keys": []
  }
}

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 get multiple key-value pairs tool with account_id set to ….

More from Cloudflare API