Home / Servers / Cloudflare API / magic_ipsec_tunnels_set_pre_shared_keys_for_ipsec_tunnels

Set Pre-Shared Keys (PSK) for IPsec tunnels

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

Set Pre-Shared Keys (PSK) for IPsec tunnels Sets Pre-Shared Keys for multiple IPsec tunnels associated with an account. Use… [POST /accounts/{account_id}/magic/ipsec_tunnels/psk]

Name on the gateway: cloudflare_api__magic_ipsec_tunnels_set_pre_shared_keys_for_ipsec_tunnels · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
validate_onlybooleanIf true, only run validation without persisting…
psks requiredarrayList of tunnel ID and PSK pairs.

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__magic_ipsec_tunnels_set_pre_shared_keys_for_ipsec_tunnels",
  "arguments": {
    "account_id": "…",
    "psks": []
  }
}

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 set pre-shared keys (psk) for ipsec tunnels tool with account_id set to ….

More from Cloudflare API