firewalla-mcp
This MCP server provides an interface to the Firewalla MSP API, enabling AI assistants to perform read and write operations on Firewalla network security devices. Here's what you can do:
Boxes
List all Firewalla boxes on your MSP account (
list_boxes)Get details for a specific box by GID (
get_box)
Devices
List network devices, optionally filtered by box GID or group ID (
list_devices)
Alarms
List alarms with advanced search syntax, pagination, sorting, and grouping (
list_alarms)Get a specific alarm by box GID and alarm ID (
get_alarm)Delete an alarm (
delete_alarm)
Firewall Rules
List rules with search/filter support (
list_rules)Create new block or allow rules (
create_rule)Pause, resume, or delete rules by ID (
pause_rule,resume_rule,delete_rule)
Network Flows
List network flows with time-range queries, pagination, sorting, and grouping (
list_flows)
Target Lists
List, get, create, update, and delete custom IP/domain target lists (
list_target_lists,get_target_list,create_target_list,update_target_list,delete_target_list)
Trends
Get daily blocked-flow counts (
get_flow_trends) and daily alarm counts (get_alarm_trends), optionally scoped to a box group
Provides tools for managing Firewalla network security boxes, including listing and inspecting boxes, alarms, devices, and flows, as well as creating, pausing, resuming, and deleting firewall rules and target lists through the Firewalla MSP API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@firewalla-mcp list devices on my Firewalla"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
firewalla-mcp
A local MCP server exposing the Firewalla MSP API — boxes, alarms, rules, devices, flows, target lists, and trends — as tools for Claude Code and other MCP-compatible clients.
Full read/write: list and inspect your Firewalla boxes, alarms, devices, and flows, and create/pause/resume/delete firewall rules and target lists, all from natural-language requests to your AI assistant.
Prerequisites
A Firewalla box managed by Firewalla MSP (the MSP API requires an active MSP subscription), and an MSP API personal access token (MSP dashboard → Settings → API)
uvinstalled (curl -LsSf https://astral.sh/uv/install.sh | sh)
Related MCP server: Firewalla MSP MCP Server
Configuration
The server reads its configuration from environment variables at startup:
Variable | Required | Description |
| yes | Your MSP domain, e.g. |
| yes | Your Firewalla MSP API personal access token |
| no | HTTP timeout in seconds (default |
Resolve the token from a secrets manager rather than storing it in plaintext:
export FIREWALLA_MSP_DOMAIN="your-alias.firewalla.net"
export FIREWALLA_TOKEN="$(op read 'op://Vault/Firewalla PAT/password')" # example using 1Password CLIRegister with Claude Code
No clone needed — run straight from GitHub with uvx:
claude mcp add firewalla \
--env FIREWALLA_MSP_DOMAIN="your-alias.firewalla.net" \
--env FIREWALLA_TOKEN="$(op read 'op://Vault/Firewalla PAT/password')" \
-- uvx --from git+https://github.com/djuntgen/firewalla-mcp firewalla-mcpOr from a local clone:
git clone https://github.com/djuntgen/firewalla-mcp.git && cd firewalla-mcp && uv sync
claude mcp add firewalla \
--env FIREWALLA_MSP_DOMAIN="your-alias.firewalla.net" \
--env FIREWALLA_TOKEN="$(op read 'op://Vault/Firewalla PAT/password')" \
-- uv run --project /path/to/firewalla-mcp firewalla-mcpThis registers the server at local scope (machine-specific, not committed to a shared .mcp.json).
Note on token storage:
--envvalues are stored in plaintext in your MCP client's config file (e.g.~/.claude.json). To keep the token out of persistent config entirely, register a small wrapper script as the command instead — it exports the variables (resolving the token live from your secrets manager) andexecsuvx --from git+https://github.com/djuntgen/firewalla-mcp firewalla-mcp. See SECURITY.md.
Tools
One tool per Firewalla MSP API v2 operation:
Category | Tools |
Boxes |
|
Devices |
|
People & apps |
|
Alarms |
|
Rules |
|
Flows |
|
Target Lists |
|
Trends |
|
Statistics |
|
Full read/write — there is no server-side dry-run gate on writes. Rely on your MCP client's normal confirmation prompts before destructive actions (delete_rule, delete_target_list, delete_alarm).
update_rulenote: Firewalla's MSP API has no rule-edit endpoint, soupdate_rulerecreates the rule (create replacement → delete original). The rule id changes, and the returned value reports both the deleted id and the new rule.
Error handling
HTTP 4xx responses fail immediately (no retry), raising
FirewallaAPIError(status_code, body); error bodies are truncated to keep failures readable.HTTP 429 (rate limited) is retried once, honoring
Retry-Afterup to 10s.HTTP 5xx and connection errors are retried once (0.5s backoff) — except for non-idempotent writes (
create_rule,create_target_list,update_device,mute_alarm,archive_alarm), which are never retried, so a timed-out request can't silently duplicate or double-apply a write.Non-JSON responses (e.g. an HTML error page from a proxy) raise a readable error instead of a decoder traceback.
Development
uv sync
uv run pytest -v
uv run ruff check . && uv run ruff format --check .Tests are fully mocked (respx) — no real Firewalla API calls or credentials are needed to run the suite. See CONTRIBUTING.md.
License
Available Tools
19 toolscreate_ruleB
Create a new firewall rule. rule is a Firewalla rule object; action must be 'block' or 'allow'.
Inputs: rule (required).
create_target_listC
Create a new target list of IPs/domains.
Inputs: name (required), targets (required), notes, owner, +1 more.
delete_alarmB
Delete an alarm by box gid and alarm id.
Inputs: aid (required), gid (required). Returns: result
delete_ruleB
Delete a firewall rule by id.
Inputs: rule_id (required). Returns: result
delete_target_listC
Delete a target list by id.
Inputs: list_id (required). Returns: result
get_alarmB
Get a single alarm by box gid and alarm id.
Inputs: aid (required), gid (required).
get_alarm_trendsC
Get daily alarm counts, optionally scoped to a box group.
Inputs: group. Returns: result
get_boxB
Get a single Firewalla box by its gid.
Inputs: gid (required).
get_flow_trendsB
Get daily blocked-flow counts, optionally scoped to a box group.
Inputs: group. Returns: result
get_target_listC
Get a single target list by id.
Inputs: list_id (required).
list_alarmsC
List alarms. query supports Firewalla's search syntax, e.g. 'status:active box: type:9'.
Inputs: limit, query, cursor, sort_by, +1 more.
list_boxesA
List all Firewalla boxes on this MSP account, optionally filtered by group ID.
Inputs: group. Returns: result
list_devicesB
List devices seen on the network, optionally filtered by box gid or group ID.
Inputs: box, group. Returns: result
list_flowsC
List network flows. query supports time-range syntax, e.g. 'ts:-'.
Inputs: limit, query, cursor, sort_by, +1 more.
list_rulesA
List firewall rules. query supports Firewalla's search syntax, e.g. 'status:paused action:allow'.
Inputs: query.
list_target_listsA
List target lists, optionally filtered by owner (a box gid; omit for global/Firewalla-managed lists).
Inputs: owner. Returns: result
pause_ruleB
Pause an existing firewall rule by id.
Inputs: rule_id (required). Returns: result
resume_ruleB
Resume a paused firewall rule by id.
Inputs: rule_id (required). Returns: result
update_target_listB
Update mutable fields of an existing target list. Only non-null fields are sent.
Inputs: list_id (required), name, notes, targets, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool targets a distinct resource or action. Tools for boxes, alarms, rules, target lists, flows, and devices are clearly separated with no overlapping purposes.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., create_rule, list_alarms, delete_target_list). No mixing of styles or vague verbs.
19 tools is on the higher end but still reasonable for comprehensive firewall management covering multiple resource types (boxes, alarms, rules, target lists, flows, devices). Each tool serves a distinct purpose.
CRUD coverage is mostly present for target lists (create, read, update, delete) and alarms (read, delete), but rules lack an update operation despite having pause/resume. Devices and flows are read-only, which is acceptable but leaves gaps for rule editing.
Maintenance
Related MCP Connectors
Run field service from Claude, ChatGPT or Copilot: dispatch, billing, customer messages, photos, and change the software itself, with a confirm step before every change. This address is the India region; US East, Canada, Norway and NZ addresses are at fieldproxy.ai/mcp.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Read and write Sage Intacct from Claude or ChatGPT. Write tools are flagged for approval.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with Firewalla network security devices for network monitoring, device management, traffic analysis, and security rule configuration through MCP tools.-
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants and MCP clients with API access to manage Firewalla MSP resources including boxes, devices, alarms, rules, flows, and target lists.19 npmGPL 3.0
- FlicenseNot gradedqualityAmaintenanceEnables natural-language control of pfSense firewalls from Claude Desktop, Claude Code, or any MCP client, covering firewall rules, NAT, VPN, DNS, DHCP, routing, certificates, users, and diagnostics through 332 wire-format-verified REST API tools. Destructive changes are gated behind explicit confirmation, rate limits, config-revision backups, and audit logging so an AI can safely diagnose and reconfigure a production firewall.-
- FlicenseNot gradedqualityAmaintenanceEnables Claude Desktop, Claude Code, and other MCP clients to manage a pfSense firewall through natural language — handling firewall rules, aliases, NAT, VPNs, routing, DNS, DHCP, certificates, users, services, logs, traffic shaping, and diagnostics across 332 API-verified tools. Every destructive change is guarded by confirmation prompts, rate limits, config-revision backup for rollback, and audit logging.-