mcp-pfsense
v0.3.1Manage pfSense firewalls through AI assistants — rules, DHCP, DNS, and more
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_system_status
Get pfSense system status including version, CPU, memory, uptime, and temperature.
get_interfaces
List all network interfaces with status and configuration.
list_firewall_rules
List firewall rules, optionally filtered by interface.
| Parameter | Type | Description |
|---|---|---|
interface |
add_firewall_rule
Add a firewall rule. Type is 'pass', 'block', or 'reject'. The rule is staged (not active) until apply_changes('firewall') is called or apply=true is passed here.
| Parameter | Type | Description |
|---|---|---|
interface * | string | |
type * | string | |
apply | boolean | |
descr | string | |
destination | string | |
dstport | ||
ipprotocol | string | |
protocol | ||
source | string |
delete_firewall_rule
Delete a firewall rule by its ID (the `id` from list_firewall_rules). Requires confirm=true. Staged until apply_changes('firewall') is called or apply=true is passed.
| Parameter | Type | Description |
|---|---|---|
rule_id * | integer | |
apply | boolean | |
confirm | boolean |
list_firewall_aliases
List firewall aliases (IP groups, port groups, URL lists).
list_dhcp_leases
List active DHCP leases showing IP, MAC, hostname, and lease times.
list_dhcp_static_mappings
List DHCP static mappings (IP reservations), optionally filtered by interface. Each mapping carries `parent_id` (its DHCP server / interface) — pass that as `interface` to delete_dhcp_static_mapping.
| Parameter | Type | Description |
|---|---|---|
interface |
add_dhcp_static_mapping
Create a DHCP static mapping (IP reservation) for a MAC address. Staged until apply_changes('dhcp') is called or apply=true is passed.
| Parameter | Type | Description |
|---|---|---|
interface * | string | |
ipaddr * | string | |
mac * | string | |
apply | boolean | |
descr | string | |
hostname | string |
delete_dhcp_static_mapping
Delete a DHCP static mapping. Requires confirm=true. `interface` is the mapping's DHCP server — the `parent_id` value returned by list_dhcp_static_mappings; `mapping_id` is its `id` there. Staged until apply_changes('dhcp') is called or apply=true is passed.
| Parameter | Type | Description |
|---|---|---|
interface * | string | |
mapping_id * | integer | |
apply | boolean | |
confirm | boolean |
list_dns_host_overrides
List DNS Resolver host overrides (local DNS entries).
add_dns_host_override
Create a DNS host override entry in Unbound DNS Resolver. Staged until apply_changes('dns') is called or apply=true is passed.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
host * | string | |
ip * | string | |
apply | boolean | |
descr | string |
delete_dns_host_override
Delete a DNS host override by ID. Requires confirm=true. Staged until apply_changes('dns') is called or apply=true is passed.
| Parameter | Type | Description |
|---|---|---|
override_id * | integer | |
apply | boolean | |
confirm | boolean |
get_pending_changes
Check whether a subsystem ('firewall', 'dhcp' or 'dns') has staged, unapplied changes.
| Parameter | Type | Description |
|---|---|---|
subsystem * | string |
apply_changes
Apply ALL staged changes of a subsystem ('firewall', 'dhcp' or 'dns'). Requires confirm=true. This reloads the subsystem, activating every pending change — including any a human staged in the pfSense WebGUI and has not reviewed yet.
| Parameter | Type | Description |
|---|---|---|
subsystem * | string | |
confirm | boolean |
get_gateway_status
Get gateway status including latency, packet loss, and online state.
get_arp_table
Get ARP table showing connected devices (IP, MAC, interface).
list_services
List all services and their running status.
restart_service
Restart a service by name. Requires confirm=true.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
confirm | boolean |
get_firewall_logs
Read-only view of recent firewall log entries. Each entry contains its ID and raw log text from pfrest. `limit` caps the number of entries (default 50). This tool only reads logs; it never writes to the firewall.
| Parameter | Type | Description |
|---|---|---|
limit | integer |