Home / Servers / DigitalOcean API / firewalls_create

Create a New Firewall

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

Create a New Firewall To create a new firewall, send a POST request to /v2/firewalls. The request must contain at least one inbound or outbound access rule. [POST /v2/firewalls]

Name on the gateway: digitalocean_api__firewalls_create · may change things.

Parameters

NameTypeDescription
idstringA unique ID that can be used to identify and reference a firewall.
statuswaiting | succeeded | failedA status string indicating the current state of the firewall. This can be…
created_atstringA time value given in ISO8601 combined date and time format that represents…
pending_changesarrayAn array of objects each containing the fields "droplet_id", "removing", and…
name requiredstringA human-readable name for a firewall. The name must begin with an alphanumeric…
droplet_idsarrayAn array containing the IDs of the Droplets assigned to the firewall. Requires…
tagsarrayA flat array of tag names as strings to be applied to the resource. Tag names…
inbound_rules requiredarray
outbound_rulesarray

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": "digitalocean_api__firewalls_create",
  "arguments": {
    "name": "…",
    "inbound_rules": []
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a new firewall tool with id set to ….

More from DigitalOcean API