firewalla-mcp
Provides read-only access to Firewalla Gold local API for network security monitoring, allowing queries about alarms, devices, traffic flows, DNS queries, firewall rules, VPN status, and system info.
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 all devices on my network"
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 Server
A read-only Model Context Protocol (MCP) server that connects to your Firewalla Gold via its local API — no MSP subscription required.
Built for AI-powered network security monitoring. Connect it to Claude Code, Claude Desktop, or any MCP-compatible client and query your firewall's alarms, devices, traffic flows, and network stats using natural language.
Features
Read-only by design — cannot modify rules, dismiss alarms, or change any settings
100% local — talks directly to your Firewalla box on your LAN (port 8833), no cloud dependency
Free — uses the local API, no MSP subscription needed
MCP standard — works with any MCP client (Claude Code, Claude Desktop, etc.)
Related MCP server: Firewalla MCP Server
Tools
Devices & Traffic
Tool | Description |
| List all network devices (name, IP, MAC, manufacturer, last active) |
| Devices ranked by bandwidth usage (download, upload, total bytes) |
| Devices grouped by network segment/VLAN |
| Devices that recently went offline (configurable lookback window) |
| Recent network flows for a specific device (by MAC address) |
| Search individual flow records with filters (domain, IP, port, category, time range) |
| DNS query logs — every domain a device resolved (more complete than flow data) |
Security & Rules
Tool | Description |
| Security alarms with filtering by severity, type, and device |
| Blocked/allowed traffic decisions — see what your firewall rules caught |
| Firewall rules/policies with filtering by action/target, summary counts, disabled rule toggle |
| Block/allow target lists (custom domain lists, IP lists, and associated rules) |
| Enabled/disabled features, global + per-network policy overrides, DoH status, vulnerability scan results |
Network & System
Tool | Description |
| Ping/health check — is the Firewalla box alive? |
| Monthly bandwidth, speed test results, network monitor data |
| WAN latency, packet loss, DNS response times, connection quality |
| Per-WAN bandwidth breakdown (download/upload per interface) |
| Network segments, VLANs, WAN config, and network groups (sensitive data redacted) |
| Firmware version, model, uptime, public IP, CPU/memory usage |
| VPN connections — WireGuard, OpenVPN, mesh profiles and connected clients |
Prerequisites
Firewalla Gold (other models may work but are untested)
Node.js 18+
Your Mac/PC must be on the same network as the Firewalla
An ETP keypair (generated during one-time pairing — see below)
Installation
git clone https://github.com/scott-pallas/firewalla-mcp.git
cd firewalla-mcp
npm install
npm run buildPairing (One-Time Setup)
Before the MCP server can talk to your Firewalla, you need to generate an authentication keypair (ETP token). This is the same pairing mechanism the Firewalla mobile app uses — think of it as registering a new "device" with your Firewalla box.
This step uses a separate utility called firewalla-tools. It is not a dependency of this project — you only need it once to generate your .pem key files. After pairing is complete, you can delete it.
1. Clone firewalla-tools (temporary)
git clone https://github.com/lesleyxyz/firewalla-tools.git
cd firewalla-tools
npm install2. Enable Additional Pairing
In the Firewalla app on your phone:
Tap your Firewalla box
Go to Settings → Advanced → Allow Additional Pairing
Toggle it ON — a QR code will appear on screen
3. Get the QR Code JSON
The pairing tool needs the JSON data encoded in the QR code. To get it:
Screenshot the QR code shown in the Firewalla app
Scan the screenshot with a QR code reader app (or use your phone's built-in camera)
The QR code decodes to a JSON string that looks like:
{"gid":"...","seed":"...","license":"...","ek":"...","ipaddress":"..."}Copy that JSON string — you'll paste it in the next step
4. Generate the Keypair
From the firewalla-tools directory:
cd create-etp-token
node index.jsThe tool will prompt you for:
Email — just a label (e.g.,
you@example.com), used for display in the Firewalla appQR code JSON — paste the JSON string from step 3
Firewalla IP — your box's IP address (e.g.,
10.0.1.1— this is usually your default gateway)Create new keypair? — choose Yes
This generates etp.public.pem and etp.private.pem in the current directory.
Tip: To find your Firewalla's IP, run
netstat -rn | grep default— the gateway IP is your Firewalla.
5. Store the Keys
Move the .pem files somewhere secure:
mkdir -p ~/.firewalla
mv etp.public.pem etp.private.pem ~/.firewalla/
chmod 600 ~/.firewalla/*.pemKeep these files safe — they are your authentication credentials.
6. Clean Up
You no longer need firewalla-tools — feel free to delete it:
cd ../..
rm -rf firewalla-toolsUsage
With Claude Code
Add the server to your global config (~/.claude.json) under mcpServers:
{
"mcpServers": {
"firewalla": {
"type": "stdio",
"command": "node",
"args": ["/path/to/firewalla-mcp/dist/index.js"],
"env": {
"FIREWALLA_IP": "10.0.1.1",
"FIREWALLA_PUBLIC_KEY_PATH": "/Users/yourname/.firewalla/etp.public.pem",
"FIREWALLA_PRIVATE_KEY_PATH": "/Users/yourname/.firewalla/etp.private.pem"
}
}
}
}Then restart Claude Code. The Firewalla tools will be available in all sessions.
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"firewalla": {
"command": "node",
"args": ["/path/to/firewalla-mcp/dist/index.js"],
"env": {
"FIREWALLA_IP": "10.0.1.1",
"FIREWALLA_PUBLIC_KEY_PATH": "/Users/yourname/.firewalla/etp.public.pem",
"FIREWALLA_PRIVATE_KEY_PATH": "/Users/yourname/.firewalla/etp.private.pem"
}
}
}
}With MCP Inspector (debugging)
FIREWALLA_IP=10.0.1.1 \
FIREWALLA_PUBLIC_KEY_PATH=~/.firewalla/etp.public.pem \
FIREWALLA_PRIVATE_KEY_PATH=~/.firewalla/etp.private.pem \
npx @modelcontextprotocol/inspector node dist/index.jsEnvironment Variables
Variable | Required | Default | Description |
| Yes | — | Path to |
| Yes | — | Path to |
| No |
| Your Firewalla's IP address |
Example Queries
Once connected to an MCP client, try:
"Show me all active security alarms"
"List every device on my network"
"Who are the top bandwidth consumers?"
"Show me devices grouped by VLAN"
"Which devices went offline in the last 12 hours?"
"Show me network flows for device AA:BB:CC:DD:EE:FF"
"Search for all connections to netflix.com in the last 24 hours"
"What DNS queries did my smart TV make today?"
"What traffic has been blocked by the firewall today?"
"Show me all my firewall rules"
"What block/allow target lists do I have?"
"What Firewalla features are enabled?"
"Is my Firewalla box healthy?"
"What firmware version is running?"
"How's my WAN latency and packet loss?"
"Show me per-WAN bandwidth usage"
"What's the status of my VPN connections?"
"Show me my network segments and VLANs"
Project Structure
firewalla-mcp/
├── src/
│ ├── index.ts # MCP server entry (stdio transport)
│ ├── firewalla-client.ts # Firewalla local API wrapper
│ └── tools/
│ ├── alarms.ts # get_alarms
│ ├── devices.ts # get_devices, get_top_talkers, get_clients_by_network, get_offline_devices
│ ├── dns.ts # get_dns_queries
│ ├── flows.ts # get_device_flows, search_flows, get_audit_logs
│ ├── network.ts # get_network_status, get_network_stats, get_network_performance, get_wan_usage
│ ├── rules.ts # get_rules, get_features, get_target_lists
│ ├── system.ts # get_system_info
│ ├── vlans.ts # get_vlans
│ └── vpn.ts # get_vpn_status
├── dist/ # Compiled JS (after build)
├── package.json
├── tsconfig.json
└── CLAUDE.md # AI agent project specSecurity
Read-only only — this server cannot modify your Firewalla configuration
Local network only — communicates directly with your Firewalla box, no cloud relay
Key-based auth — uses the same ETP token mechanism as the Firewalla mobile app
Sensitive data redacted — WiFi passwords, WireGuard private keys, tokens, credentials, API keys, passphrases, and pre-shared keys are automatically stripped from output
Input limits — all
countparameters are clamped to a max of 5000 to prevent excessive data retrievalKeep your
.pemfiles secure — they grant read access to your network data
Credits
node-firewalla — Firewalla local API client library
firewalla-tools — One-time pairing utility for generating ETP auth keys (not a runtime dependency)
MCP TypeScript SDK — Model Context Protocol server framework
License
MIT — see LICENSE
Available Tools
19 toolsget_alarmsA
List active security alarms from Firewalla (intrusion attempts, abnormal uploads, etc.). Supports filtering by severity, type, and device.
Inputs: mac, type, count, severity.
get_audit_logsA
Get audit logs showing blocked and allowed traffic decisions. Shows which connections were blocked by firewall rules and why. Supports filtering by device MAC, domain, IP, and time range.
Inputs: ip, mac, count, domain, +1 more.
get_clients_by_networkA
Get connected devices grouped by network segment/VLAN. Shows which devices are on each network.
Inputs: count.
get_device_flowsA
Get recent network flows for a specific device by MAC address. Returns flow data from the Firewalla init payload.
Inputs: mac (required).
get_devicesA
List all devices on the network (hostname, IP, MAC, manufacturer, online status)
Inputs: no named parameters.
get_dns_queriesA
Get DNS query logs showing every domain a device attempted to resolve. More complete than flow data since it captures queries even for very brief connections. Supports filtering by device MAC, domain, and time range.
Inputs: mac, count, domain, hoursBack.
get_featuresA
List Firewalla features, global policy, per-network policy overrides, DoH (DNS over HTTPS) status, and system vulnerability scan status including external port scans, weak password scans, and UPnP port forwarding results
Inputs: no named parameters.
get_network_performanceB
Get network performance metrics: WAN latency, packet loss, DNS response times, and connection quality from the network monitor.
Inputs: no named parameters.
get_network_statsB
Get network statistics: monthly bandwidth usage, recent speed tests, and network monitor data
Inputs: no named parameters.
get_network_statusA
Ping/health check of the Firewalla box — returns uptime and timestamp
Inputs: no named parameters.
get_offline_devicesA
List devices that have gone offline recently. Returns devices sorted by most recently seen, filtered by how many hours back to look.
Inputs: hoursBack.
get_rulesA
List all firewall rules/policies including hit counts. Shows active rules including block rules, allow rules, route rules, and their targets (devices, groups, networks, domains, ports). Supports filtering by type and target.
Inputs: action, target, disabled.
get_system_infoA
Get Firewalla system information: firmware version, model, branch, uptime, public IP, CPU/memory usage, and hardware details
Inputs: no named parameters.
get_target_listsA
Get all target lists (block/allow lists) configured on the Firewalla. Shows custom domain lists, IP lists, and their associated rules.
Inputs: no named parameters.
get_top_talkersA
Get devices ranked by bandwidth usage (top talkers). Shows download, upload, and total bytes for each device over the recent period.
Inputs: count, direction.
get_vlansA
List network segments, VLANs, and network groups configured on the Firewalla. Shows network names, subnets, VLAN IDs, and which interfaces they're on.
Inputs: no named parameters.
get_vpn_statusA
Get VPN status including WireGuard, OpenVPN, and VPN mesh connections. Shows configured VPN profiles, connected clients, and connection health.
Inputs: no named parameters.
get_wan_usageA
Get per-WAN data usage breakdown. Shows bandwidth consumption per WAN interface with download/upload totals.
Inputs: no named parameters.
search_flowsA
Search individual network flow records with filters. Returns per-connection details including destination IP, domain, port, protocol, bytes transferred, country, and app category. Supports filtering by device MAC, domain, IP, port, category, and time range.
Inputs: ip, mac, port, count, +3 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 aspect of the Firewalla system: alarms, devices, network metrics, flows, rules, VPN, etc. Even closely related tools like get_devices, get_clients_by_network, and get_offline_devices have clear, non-overlapping purposes.
Every tool follows the verb_noun pattern with consistent snake_case (e.g., get_alarms, get_network_status, get_wan_usage). The get_ prefix uniformly signals read operations, making the naming highly predictable.
19 tools is on the higher side but each covers a distinct facet of the network security domain. The scope is broad but justified by the variety of data Firewalla exposes, and no tool feels redundant.
The tool set is entirely read-only (all getters). There are no create, update, delete, or action tools, so an agent cannot block devices, modify firewall rules, or manage target lists, which are core Firewalla operations. This is a significant gap for a management-oriented MCP server.
Maintenance
Related MCP Connectors
Ask your Quickbase apps in plain language. Read-only by default; writes need human approval.
Ask about your Kodem Security data and act on findings in plain language, with your permissions.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Ask your databases questions in plain English, run read-only SQL and set up data alerts.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA production-ready server that connects Claude Desktop to Firewalla network management capabilities, allowing users to monitor devices, analyze network traffic, manage security alerts, and configure firewall rules through natural language.-
- AlicenseNot gradedqualityNot gradedmaintenanceProvides real-time access to Firewalla firewall data through 28 specialized tools for network monitoring, security analysis, bandwidth tracking, and firewall rule management. Enables users to query security alerts, analyze network flows, monitor device status, and manage firewall configurations through natural language.289 npm1-
- AlicenseNot gradedqualityDmaintenanceEnables natural language management of OPNsense firewalls through AI clients, providing tools for firewall rules, system health, VPN monitoring, and more.AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables read-only querying and diagnostics of Fortigate firewalls via SSH, providing security analysis, traffic monitoring, and configuration inspection through natural language.MIT