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
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
validate_only | boolean | If true, only run validation without persisting… |
psks required | array | List 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:
{
"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:
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 ….