Home / Servers / Hetzner Cloud API / apply_firewall_to_resources
Apply to Resources
An MCP tool from the Hetzner Cloud API server, hosted on mcp.hjlabs.in.
Apply to Resources Applies a Firewall to multiple resources. Supported resources: - Servers (with a public network interface) - Label Selectors A Server can be applied to a maximum of 5 Firewalls. This limit applies… [POST /firewalls/{id}/actions/apply_to_resources]
Name on the gateway: hetzner_api__apply_firewall_to_resources · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
id required | integer | ID of the Firewall. |
apply_to required | array | Resources to apply the Firewall to. Extends existing resources. |
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": "hetzner_api__apply_firewall_to_resources",
"arguments": {
"id": 0,
"apply_to": []
}
}Or connect the Hetzner Cloud API server directly, which lists 178 tools including this one:
claude mcp add --transport http hj-hetzner-api https://mcp.hjlabs.in/mcp/hetzner-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the apply to resources tool with id set to ….