About Pfsense MCP Server
Pfsense MCP Server is an MCP server published by gensecaihq in the Security category: model Context Protocol (MCP) server for pfSense firewall management. Control firewall rules, VPNs, DNS, DHCP and diagnostics in natural language from Claude Desktop, Claude Code or any MCP client — 333 wire-format-verified tools for the pfSense REST API, with safety guardrails, config backup and rollback on every change. Conduid read 332 tools from its source: analyze_blocked_traffic, apply_dhcp_changes, apply_dns_forwarder_changes, apply_dns_resolver_changes, apply_firewall_changes, apply_haproxy_changes and 326 more. No package is published for it, so it installs from a source checkout.
The repository has 125 stars and 28 forks, is licensed MIT, and its last commit was on 9 Oct 2026. The latest release is v1.1.0 (23 Sep 2026): Overview pfSense MCP Server v1.1.0 is a correctness and safety release. The release before it was v1.0.0 (26 Mar 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include security.
Install
git clone https://github.com/gensecaihq/pfsense-mcp-serverTools (332)
analyze_blocked_trafficAnalyze blocked traffic patterns from firewall logs.apply_dhcp_changesApply pending DHCP server changesapply_dns_forwarder_changesApply pending DNS Forwarder changesapply_dns_resolver_changesApply pending DNS Resolver configuration changesapply_firewall_changesForce apply pending firewall changes and recompile the pf ruleset.apply_haproxy_changesApply pending HAProxy configuration changesapply_interface_changesApply pending interface changesapply_ipsec_changesApply pending IPsec configuration changes to the live system.apply_nat_changesApply pending NAT changes (outbound mappings, mode changes)apply_nat_onetoone_changesApply pending 1:1 NAT changesapply_routing_changesApply pending routing changes (gateways, static routes, gateway groups)apply_virtual_ip_changesApply pending virtual IP changesapply_wireguard_changesApply pending WireGuard configuration changesbulk_block_ipsBlock multiple IP addresses on the live pfSense firewall. WARNING: Creates block rules.check_tool_riskCheck the risk classification and guardrail requirements for a tool.compare_config_revisionsCompare two configuration revisions to see what changed.control_serviceStart, stop, or restart a service on the live pfSense appliance.create_acme_account_keyCreate an ACME account key for Let's Encryptcreate_acme_certificateCreate an ACME certificate entrycreate_aliasCreate a new firewall aliascreate_auth_serverCreate a new authentication server (LDAP or RADIUS)create_bind_zoneCreate a BIND DNS zonecreate_certificateCreate or import a certificate on pfSensecreate_certificate_authorityCreate or import a Certificate Authority on pfSensecreate_crlCreate a Certificate Revocation List (CRL) on pfSensecreate_cron_jobCreate a cron jobcreate_dhcp_address_poolCreate a DHCP address pool for an interfacecreate_dhcp_custom_optionCreate a DHCP custom optioncreate_dhcp_static_mappingCreate a DHCP static mapping (reservation)create_dns_access_listCreate a DNS Resolver access list entrycreate_dns_domain_overrideCreate a DNS domain override entrycreate_dns_forwarder_host_overrideCreate a DNS Forwarder host override entrycreate_dns_host_overrideCreate a DNS host override entrycreate_firewall_rule_advancedCreate a firewall rule on the live pfSense appliance.create_firewall_scheduleCreate a firewall schedule with an initial time range.create_freeradius_clientCreate a FreeRADIUS client (NAS device)create_freeradius_userCreate a FreeRADIUS usercreate_gatewayCreate a routing gatewaycreate_gateway_groupCreate a gateway group for multi-WAN failover or load balancingcreate_groupCreate a new pfSense user groupcreate_haproxy_backendCreate an HAProxy backend poolcreate_haproxy_frontendCreate an HAProxy frontend listenercreate_interfaceCreate (assign) a network interfacecreate_interface_bridgeCreate an interface bridgecreate_interface_groupCreate an interface groupcreate_ipsec_phase1Create an IPsec Phase 1 (IKE) entrycreate_ipsec_phase1_encryptionCreate an IPsec Phase 1 encryption algorithm entrycreate_ipsec_phase2Create an IPsec Phase 2 (Child SA / tunnel) entrycreate_ipsec_phase2_encryptionCreate an IPsec Phase 2 encryption entrycreate_nat_onetoone_mappingCreate a 1:1 NAT mappingcreate_nat_outbound_mappingCreate an outbound NAT mappingcreate_nat_port_forwardCreate a NAT port forwarding rulecreate_openvpn_clientCreate an OpenVPN client instance on pfSense.create_openvpn_serverCreate an OpenVPN server instance on pfSense.create_schedule_time_rangeCreate a time range within a firewall schedulecreate_shaper_queueCreate a traffic shaper queuecreate_static_routeCreate a static routecreate_system_tunableCreate a system tunable (sysctl value)create_traffic_limiterCreate a traffic limiter (dummynet pipe)create_traffic_shaperCreate a traffic shaper on an interfacecreate_userCreate a new pfSense local usercreate_virtual_ipCreate a virtual IP addresscreate_vlanCreate a VLANcreate_wireguard_peerCreate a new WireGuard peer on a tunnelcreate_wireguard_tunnelCreate a new WireGuard tunneldelete_acme_certificateDelete an ACME certificate entry by ID. WARNING: This is irreversible.delete_aliasDelete an alias by ID. WARNING: This is irreversible.delete_auth_serverDelete a pfSense authentication server by ID. WARNING: This is irreversible.delete_bind_zoneDelete a BIND DNS zone by ID. WARNING: This is irreversible.delete_certificateDelete a certificate by ID. WARNING: This is irreversible.delete_certificate_authorityDelete a Certificate Authority by ID. WARNING: This is irreversible.delete_config_revisionDelete a configuration history revision by ID. WARNING: This is irreversible.delete_crlDelete a Certificate Revocation List (CRL) by ID. WARNING: This is irreversible.delete_cron_jobDelete a cron job by ID. WARNING: This is irreversible.delete_dhcp_address_poolDelete a DHCP address pool by ID. WARNING: This is irreversible.delete_dhcp_custom_optionDelete a DHCP custom option by ID. WARNING: This is irreversible.delete_dhcp_static_mappingDelete a DHCP static mapping by ID. WARNING: This is irreversible.delete_dns_access_listDelete a DNS Resolver access list. WARNING: This is irreversible.delete_dns_domain_overrideDelete a DNS domain override by ID. WARNING: This is irreversible.delete_dns_forwarder_host_overrideDelete a DNS Forwarder host override by ID. WARNING: This is irreversible.delete_dns_host_overrideDelete a DNS host override by ID. WARNING: This is irreversible.delete_firewall_ruleDelete a firewall rule from the live pfSense appliance. WARNING: This is irreversible.delete_firewall_scheduleDelete a firewall schedule by ID. WARNING: This is irreversible.delete_firewall_stateDelete a specific firewall state (active connection) by ID. WARNING: This is irreversible.delete_freeradius_clientDelete a FreeRADIUS client by ID. WARNING: This is irreversible.delete_freeradius_userDelete a FreeRADIUS user by ID. WARNING: This is irreversible.delete_gatewayDelete a routing gateway by ID. WARNING: This is irreversible.delete_gateway_groupDelete a gateway group by ID. WARNING: This is irreversible.delete_groupDelete a pfSense user group by ID. WARNING: This is irreversible.delete_haproxy_backendDelete an HAProxy backend by ID. WARNING: This is irreversible.delete_haproxy_frontendDelete an HAProxy frontend by ID. WARNING: This is irreversible.delete_interfaceDelete (unassign) an interface by ID. WARNING: This is irreversible.delete_ipsec_phase1Delete an IPsec Phase 1 (IKE) entry by ID. WARNING: This is irreversible and will also remove associated Phase 2 entries.delete_ipsec_phase1_encryptionDelete an IPsec Phase 1 encryption algorithm entry by ID. WARNING: This is irreversible.delete_ipsec_phase2Delete an IPsec Phase 2 (Child SA / tunnel) entry by ID. WARNING: This is irreversible.delete_ipsec_phase2_encryptionDelete an IPsec Phase 2 encryption entry by ID. WARNING: This is irreversible.delete_nat_onetoone_mappingDelete a 1:1 NAT mapping by ID. WARNING: This is irreversible.delete_nat_outbound_mappingDelete an outbound NAT mapping by ID. WARNING: This is irreversible.delete_nat_port_forwardDelete a NAT port forwarding rule by ID. WARNING: This is irreversible.delete_openvpn_clientDelete an OpenVPN client instance by ID. WARNING: This is irreversible.delete_openvpn_serverDelete an OpenVPN server instance by ID. WARNING: This is irreversible.delete_schedule_time_rangeDelete a time range from a firewall schedule by ID. WARNING: This is irreversible.delete_shaper_queueDelete a shaper queue by ID. WARNING: This is irreversible.delete_static_routeDelete a static route by ID. WARNING: This is irreversible.delete_system_tunableDelete a system tunable by ID. WARNING: This is irreversible.delete_traffic_limiterDelete a traffic limiter by ID. WARNING: This is irreversible.delete_traffic_shaperDelete a traffic shaper by ID. WARNING: This is irreversible.delete_userDelete a pfSense local user by ID. WARNING: This is irreversible.delete_virtual_ipDelete a virtual IP by ID. WARNING: This is irreversible.delete_vlanDelete a VLAN by ID. WARNING: This is irreversible.delete_wireguard_peerDelete a WireGuard peer by ID. WARNING: This is irreversible.delete_wireguard_tunnelDelete a WireGuard tunnel by ID. WARNING: This is irreversible.diagnose_blocked_trafficComprehensive analysis of why traffic might be blocked.diagnose_connectivityTest connectivity to a host from the pfSense appliance.diagnose_dhcp_issuesAnalyze DHCP service health on an interface.diagnose_dns_resolutionCheck DNS resolver health.diagnose_high_availabilityCheck CARP/HA status if configured.diagnose_interface_issuesAnalyze an interface for problems.diagnose_service_healthComprehensive service health check.diagnose_vpn_statusComprehensive VPN health check across all VPN types.disable_hateoasDisable HATEOAS links in API responses on the pfSense server.disconnect_openvpn_clientDisconnect an active OpenVPN client connection. WARNING: This will terminate the client session.enable_hateoasEnable HATEOAS links in API responses on the pfSense server.export_certificate_pkcs12Export a certificate in PKCS#12 formatexport_openvpn_client_configExport an OpenVPN client configuration file or installer package.find_blocked_rulesFind all firewall rules that block or reject trafficfind_interfaces_by_statusFind interfaces by their current statusfind_object_by_fieldFind an object by a specific field value (safer than using IDs).follow_api_linkFollow a HATEOAS link from a previous API responsegenerate_certificateGenerate a new certificate signed by an existing CA on pfSenseget_acme_settingsGet the current ACME package settingsget_api_capabilitiesGet comprehensive API capabilities and configurationget_arp_tableGet the ARP table to discover devices on the network.get_available_interfacesGet a list of available (unassigned) network interfacesget_bind_settingsGet the current BIND DNS server settingsget_carp_statusGet the current CARP (Common Address Redundancy Protocol) statusget_config_historyGet configuration history revisions with paginationget_config_revisionGet a specific configuration history revision by IDget_default_gatewayGet the current default gateway settings (IPv4 and IPv6)get_dhcp_relay_settingsGet the DHCP relay settingsget_dhcp_server_configGet DHCP server configuration including pool ranges, lease times, etc.get_dns_resolver_settingsGet the current DNS Resolver (Unbound) settingsget_email_notification_settingsGet the email notification settingsget_firewall_advanced_settingsGet firewall advanced settingsget_firewall_logGet firewall log entries with optional filteringget_firewall_state_sizeGet the current firewall state table size and limitsget_gateway_statusGet real-time gateway status including latency, packet loss, and online/offline stateget_guardrail_statusGet the current guardrail configuration and recent action history.get_haproxy_settingsGet the current HAProxy service settingsget_ipsec_child_sa_statusGet IPsec Child Security Associations status showing active tunnel details.get_ipsec_statusGet IPsec Security Associations (SAs) status showing active tunnels and their state.get_log_fileRead the newest lines from a pfSense log file (dhcpd, filter, resolver, system, auth).get_log_settingsGet the system log settingsget_nat_outbound_modeGet the current outbound NAT mode (automatic, hybrid, advanced, or disabled)get_ntp_settingsGet the NTP service settingsget_openvpn_client_statusGet the status of all OpenVPN clientsget_openvpn_server_statusGet the status of all OpenVPN serversget_openvpn_statusGet the runtime status of all OpenVPN server and client instances.get_pf_rulesRead the compiled pf ruleset (/tmp/rules.debug) to verify what pf isget_pf_tableGet the contents of a specific pf firewall tableget_ssh_settingsGet the SSH service settingsget_system_consoleGet the system console settingsget_system_dnsGet the current system DNS server configurationget_system_health_reportFull system health dashboard — combines all diagnostics into one report.get_system_hostnameGet the current system hostname and domainget_system_timezoneGet the current system timezone settingget_system_versionGet the pfSense system version informationget_webgui_settingsGet the WebGUI settings (protocol, port, certificates, etc.)get_wireguard_settingsGet the current WireGuard service settingshalt_systemHalt (shut down) the pfSense system. WARNING: This will power off the system.issue_acme_certificateIssue (obtain) an ACME certificate from Let's Encryptmanage_acme_certificate_domainAdd or remove a domain (SAN) validation entry on an ACME certificatemanage_alias_addressesAdd or remove addresses from an existing aliasmanage_bind_access_listCreate or delete a BIND access control listmanage_bind_zone_recordCreate or delete a DNS record within a BIND zonemanage_dns_forwarder_host_override_aliasAdd or remove an alias for a DNS Forwarder host overridemanage_haproxy_backend_serverAdd or remove a server from an HAProxy backendmanage_haproxy_fileCreate or delete an HAProxy file (certificate, error page, Lua script, etc.)manage_haproxy_frontend_addressAdd or remove a bind address from an HAProxy frontendmanage_haproxy_frontend_certificateAdd or remove an additional SNI SSL certificate on an HAProxy frontendmanage_ntp_time_serverAdd or remove an NTP time servermanage_openvpn_csoCreate, update, or delete an OpenVPN Client Specific Override (CSO).manage_service_watchdogAdd or remove a service watchdog entrymanage_wireguard_peer_allowed_ipAdd or remove an allowed IP for a WireGuard peermanage_wireguard_tunnel_addressAdd or remove an address for a WireGuard tunnelmove_firewall_ruleMove a firewall rule to a new position in the rule orderreboot_systemReboot the pfSense system. WARNING: This will cause a service interruption.refresh_object_idsRefresh object IDs by re-querying an endpoint (handles ID changes after deletions).register_acme_account_keyRegister an ACME account key with the ACME server (Let's Encrypt)renew_acme_certificateRenew an existing ACME certificaterenew_certificateRenew an existing certificate by IDrun_ping_diagnosticRun a ping diagnostic from the pfSense firewallsearch_acme_account_keysSearch ACME account keys with filtering and paginationsearch_acme_certificate_domainsList the domain (SAN) validation entries configured on an ACME certificatesearch_acme_certificatesSearch ACME (Let's Encrypt) certificates with filtering and paginationsearch_aliasesSearch aliases with advanced filtering optionssearch_audit_trailSearch the guardrail audit log for recent destructive actions taken.search_auth_serversSearch pfSense authentication servers (LDAP, RADIUS) with optional filteringsearch_bind_access_listsSearch BIND access control listssearch_bind_zone_recordsSearch DNS records within a BIND zoneThe first 200 of 332 tools, in name order.
Security checks
- ✓README presentThe repository's README runs to about 3.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 44 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 3.5K words, fetched a month ago. The original in the repository is authoritative.
Read full README