pfSense MCP Server
pfSense MCP Server
Управляйте своим межсетевым экраном pfSense с помощью естественного языка. 327 инструментов. 9 уровней безопасности. Одна команда для запуска.
You: "Block all traffic from 203.0.113.5 on WAN"
Claude: Creates block rule → applies changes → confirms with rollback instructionspfSense MCP Server подключает Claude Desktop, Claude Code и другие AI-клиенты, совместимые с MCP, к вашему межсетевому экрану pfSense. Задавайте вопросы, диагностируйте проблемы и управляйте своим межсетевым экраном — всё через диалог.
Зачем это нужно
Управление межсетевым экраном pfSense означает бесконечные клики по вкладкам веб-интерфейса, запоминание названий полей и надежду на то, что вы случайно не удалите правило, которое заблокирует вам доступ. С этим MCP-сервером вы описываете то, что хотите, на обычном английском языке, а ИИ выполняет вызовы REST API, проверяет входные данные и предупреждает вас перед выполнением любых деструктивных действий.
Что делает его особенным:
Каждая деструктивная операция требует явного подтверждения и показывает вам, что именно произойдет
Автоматическое резервное копирование конфигурации перед каждым удалением/перезагрузкой — с командой отката в одну строку
Ограничение частоты запросов (rate limiting) предотвращает зацикливание ИИ, которое могло бы перегрузить ваш межсетевой экран правилами
Санитаризация входных данных блокирует внедрение команд, обход путей и XSS в каждом параметре
Related MCP server: Firewalla MCP Server
Быстрый старт
Предварительные требования: Python 3.10+, pfSense с установленным пакетом REST API v2
git clone https://github.com/gensecaihq/pfsense-mcp-server.git
cd pfsense-mcp-server
pip install -r requirements.txt
cp .env.example .env
# Edit .env: set PFSENSE_URL, AUTH_METHOD, and credentialsПодключение к Claude Desktop — добавьте в ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"pfsense": {
"command": "python3",
"args": ["-m", "src.main"],
"cwd": "/path/to/pfsense-mcp-server",
"env": {
"PFSENSE_URL": "https://192.168.1.1",
"AUTH_METHOD": "basic",
"PFSENSE_USERNAME": "admin",
"PFSENSE_PASSWORD": "your-password",
"PFSENSE_VERSION": "CE_2_8_0",
"VERIFY_SSL": "false"
}
}
}
}Начните общение с вашим межсетевым экраном. Откройте Claude Desktop и спросите:
"Покажи мне весь заблокированный трафик за последний час"
"Какие службы запущены?"
"Создай проброс порта 443 на 192.168.1.50"
"Запусти полную проверку состояния системы"
Что вы можете делать
327 инструментов для каждой основной подсистемы pfSense:
Домен | Инструменты | Что вы можете делать |
Правила Firewall | 9 | Создание, обновление, удаление, изменение порядка правил. Массовая блокировка IP. Просмотр скомпилированного набора правил pf. |
Алиасы | 5 | Управление алиасами хостов/сетей/портов/URL. Добавление и удаление адресов. |
NAT | 16 | Проброс портов, исходящий NAT, 1:1 NAT — полный жизненный цикл управления. |
VPN | 51 | OpenVPN серверы и клиенты, IPsec туннели, WireGuard пиры — CRUD, статус, применение. |
Маршрутизация | 16 | Шлюзы, группы шлюзов, статические маршруты, управление шлюзом по умолчанию. |
DNS | 24 | Unbound resolver и dnsmasq forwarder: переопределения хостов, переопределения доменов, списки доступа. |
DHCP | 17 | Аренды, статические привязки, пулы адресов, пользовательские опции, конфигурация сервера. |
Сертификаты | 15 | Сертификаты, CA, CRL — генерация, обновление, экспорт PKCS12. |
Пользователи | 12 | Учетные записи пользователей, группы, конфигурация сервера аутентификации LDAP/RADIUS. |
Интерфейсы | 14 | Конфигурация интерфейсов, VLAN, мосты, группы. |
Система | 44 | Статус, настройки, диагностика, история конфигурации, перезагрузка, ping. |
Службы | 14 | Запуск/остановка/перезапуск служб. NTP, cron, SSH, сторожевой таймер служб. |
Логи | 3 | Анализ логов межсетевого экрана с разобранными данными filterlog IPv4/IPv6. |
Traffic Shaping | 12 | Шейперы, очереди и ограничители для управления пропускной способностью. |
Расписания | 8 | Планирование правил межсетевого экрана на основе времени. |
Виртуальные IP | 5 | Управление CARP, ProxyARP и IP Alias. |
Устранение неполадок | 10 | Диагностика подключения, заблокированного трафика, VPN, DHCP, DNS, HA. Полный отчет о состоянии. |
Пакеты | 43 | HAProxy, ACME/Let's Encrypt, BIND DNS, FreeRADIUS. |
Утилиты | 9 | HATEOAS навигация, управление ID объектов, статус защиты. |
Безопасность прежде всего
ИИ, управляющий промышленным межсетевым экраном, нуждается в защитных барьерах. Этот сервер имеет 9 уровней:
"Delete firewall rule 5"
1. CLASSIFY → HIGH risk (destructive)
2. ALLOWLIST → tool is permitted
3. SANITIZE → parameters clean (no injection)
4. RATE LIMIT → under 10 deletes/minute
5. DRY RUN? → user can preview first
6. CONFIRM → blocked until confirm=True
7. BACKUP → config revision captured
8. EXECUTE → API call made
9. AUDIT LOG → action recorded with redacted params
Response includes:
"config_backup": {
"pre_change_revision_id": 42,
"rollback_instruction": "restore_config_backup(revision_id=42, confirm=True)"
}Каждая деструктивная операция (52 инструмента удаления/перезагрузки/остановки) требует confirm=True. Каждая операция создания и обновления (112 инструментов) ограничена по частоте и санитаризирована. Каждый чувствительный параметр (пароли, ключи, токены) скрывается в логах и выводах.
Вы также можете:
Передать
dry_run=Trueдля предварительного просмотра любой деструктивной операции без её выполненияПередать
verify_descr="Allow HTTPS"для проверки того, что вы удаляете правильное правило (защита от сдвига ID)Установить
MCP_READ_ONLY=true, чтобы открыть доступ только к 118 инструментам для чтения (поиск, получение, диагностика)Установить
MCP_ALLOWED_TOOLS=search_firewall_rules,get_firewall_logдля ограничения доступа конкретными инструментами
Поддерживаемые версии pfSense
Версия | REST API | Статус |
pfSense CE 2.8.1 | Проверено | |
pfSense Plus 25.11 | Проверено | |
pfSense CE 2.8.0 | v2.6.0+ | Поддерживается |
pfSense Plus 24.11 | v2.6.0+ | Поддерживается |
Требуется пакет pfSense REST API v2 от jaredhendrickson13.
Аутентификация
Поддерживаются три метода (настраиваются в .env):
Метод | Конфигурация | Лучше всего для |
Basic Auth |
| Быстрая настройка, локальные пользователи |
API Key |
| Автоматизация, сервисные учетные записи |
JWT |
| Краткосрочные токены, автообновление |
Варианты развертывания
stdio (по умолчанию) — для Claude Desktop и Claude Code:
python3 -m src.mainHTTP — для удаленного доступа и многоклиентских настроек:
python3 -m src.main -t streamable-http --port 3000Docker — защищенный контейнер с файловой системой только для чтения:
docker compose upБезопасность контейнера: пользователь без прав root (mcp:1000), файловая система только для чтения, все возможности (capabilities) сброшены, noexec tmpfs, no-new-privileges.
Конфигурация
Переменная | Обязательно | По умолчанию | Описание |
| Да | — | URL pfSense (например, |
|
|
| |
| * | — | Ключ REST API |
| * | — | Имя пользователя pfSense (для basic/jwt) |
| * | — | Пароль pfSense (для basic/jwt) |
|
|
| |
|
|
| |
|
| Тайм-аут запроса в секундах | |
|
| Открыть доступ только к инструментам для чтения |
Переменная | По умолчанию | Описание |
|
| Включить HATEOAS ссылки в ответах API |
|
|
|
|
|
|
|
| Адрес привязки для HTTP режима |
|
| Порт для HTTP режима |
| — | Bearer токен для HTTP транспорта (обязательно) |
| localhost | Разрешенные источники через запятую |
| — | Путь к файлу аудита (JSON lines) |
|
| Макс. удалений за 60 секунд |
|
| Макс. созданий за 60 секунд |
|
| Макс. критических операций за 300 секунд |
| all | Список разрешенных инструментов через запятую |
|
| Записи отката, хранящиеся в памяти |
Тестирование
python3 -m pytest tests/ -v # 308 tests
python3 -m pytest tests/ --cov=src # with coverageСоответствие спецификации MCP
Соответствует MCP 2025-11-25 (последняя версия):
ToolAnnotationsдля всех 327 инструментов (readOnlyHint, destructiveHint, idempotentHint)Предоставлены
serverInfo.versionиinstructionsВалидация заголовка Origin (обязательное требование)
Аутентификация по Bearer токену с использованием сравнения, устойчивого к временным атакам
Привязка по умолчанию к localhost согласно спецификации SHOULD
Транспорты stdio и Streamable HTTP
Структура проекта
src/
main.py Entry point
server.py FastMCP instance + API client
client.py pfSense REST API v2 HTTP client
guardrails.py 9-layer defense-in-depth system
helpers.py Validation, parsing, safety guards
models.py Data models
middleware.py HTTP auth + Origin validation
tools/ 34 tool modules (327 tools)
tests/ 308 testsВклад в проект
Нам нужно реальное тестирование в различных средах pfSense. См. CONTRIBUTING или:
Сделайте форк и создайте ветку для функции
Запустите
python3 -m pytest tests/ -vОтправьте PR
Идеи: интеграционные тесты с реальным pfSense, поддержка дополнительных пакетов (Snort, Suricata), мост к локальной LLM Ollama, управление несколькими экземплярами.
Лицензия
Благодарности
jaredhendrickson13 / pfrest — пакет pfSense REST API v2
JeremiahChurch — модульная переработка (PR #5)
shawnpetersen — обнаружение эндпоинтов API v2 (PR #3)
Netgate — pfSense
FastMCP — фреймворк MCP
Available Tools
332 toolsanalyze_blocked_trafficARead-only
Analyze blocked traffic patterns from firewall logs.
Retrieves recent blocked log entries and groups them by source IP, showing hit counts, destination IPs, and a simple threat score. Firewall logs are raw text — IPs are extracted via pattern matching.
WARNING (tracked by upstream PR #860): this endpoint may fail on firewalls with large log files due to a known pfSense REST API bug (server-side OOM at the 512 MB PHP limit). If it fails, suggest reviewing logs via SSH or the pfSense web UI instead.
Inputs: limit, group_by_source. Returns: object
apply_dhcp_changesAIdempotent
Apply pending DHCP server changes
Use this after making changes with apply_immediately=False to batch-apply them.
Inputs: no named parameters. Returns: object
apply_dns_forwarder_changesAIdempotent
Apply pending DNS Forwarder changes
Use this after making changes with apply_immediately=False to batch-apply them.
Inputs: no named parameters. Returns: object
apply_dns_resolver_changesAIdempotent
Apply pending DNS Resolver configuration changes
Sends a POST to the DNS Resolver apply endpoint to activate any pending host override, domain override, access list, or settings changes.
Inputs: no named parameters. Returns: object
apply_firewall_changesAIdempotent
Force apply pending firewall changes and recompile the pf ruleset.
Use this after any firewall config change to ensure the compiled ruleset (/tmp/rules.debug) matches the configuration. The apply_immediately parameter on other tools doesn't always trigger full recompilation.
Inputs: no named parameters. Returns: object
apply_haproxy_changesAIdempotent
Apply pending HAProxy configuration changes
Use this after making changes with apply_immediately=False to batch-apply them.
Inputs: no named parameters. Returns: object
apply_interface_changesAIdempotent
Apply pending interface changes
Use this after making changes with apply_immediately=False to batch-apply them.
Inputs: no named parameters. Returns: object
apply_ipsec_changesAIdempotent
Apply pending IPsec configuration changes to the live system.
Call this after making IPsec configuration changes with apply_immediately=False to activate them all at once.
Inputs: no named parameters. Returns: object
apply_nat_changesAIdempotent
Apply pending NAT changes (outbound mappings, mode changes)
Use this after making changes with apply_immediately=False to batch-apply them. This shares the firewall apply endpoint.
Inputs: no named parameters. Returns: object
apply_nat_onetoone_changesAIdempotent
Apply pending 1:1 NAT changes
Use this after making changes with apply_immediately=False to batch-apply them. This shares the firewall apply endpoint.
Inputs: no named parameters. Returns: object
apply_routing_changesAIdempotent
Apply pending routing changes (gateways, static routes, gateway groups)
Use this after making changes with apply_immediately=False to batch-apply them.
Inputs: no named parameters. Returns: object
apply_virtual_ip_changesAIdempotent
Apply pending virtual IP changes
Use this after making changes with apply_immediately=False to batch-apply them.
Inputs: no named parameters. Returns: object
apply_wireguard_changesAIdempotent
Apply pending WireGuard configuration changes
Sends a POST to the WireGuard apply endpoint to activate any pending tunnel, peer, or settings changes.
Inputs: no named parameters. Returns: object
bulk_block_ipsADestructive
Block multiple IP addresses on the live pfSense firewall. WARNING: Creates block rules.
Inputs: ip_addresses (required), confirm, dry_run, interface, +1 more. Returns: object
check_tool_riskBRead-only
Check the risk classification and guardrail requirements for a tool.
Inputs: tool_name (required). Returns: object
compare_config_revisionsARead-only
Compare two configuration revisions to see what changed.
If revision_id_after is not provided, compares against the current running config.
Inputs: revision_id_before (required), revision_id_after. Returns: object
control_serviceA
Start, stop, or restart a service on the live pfSense appliance.
WARNING: Stopping critical services (dhcpd, unbound, sshd) will disrupt network operations.
Inputs: action (required), service_name (required). Returns: object
create_acme_account_keyB
Create an ACME account key for Let's Encrypt
Inputs: name (required), email (required), descr, acmeserver, +1 more. Returns: object
create_acme_certificateA
Create an ACME certificate entry
The pfSense API rejects a certificate with no domains ("Field
a_domainlist is required"), so at least one domain/SAN validation entry
must be provided at creation time.
Inputs: name (required), a_domainlist (required), descr, dnssleep, +3 more. Returns: object
create_aliasC
Create a new firewall alias
Inputs: name (required), addresses (required), alias_type (required), details, +2 more. Returns: object
create_auth_serverA
Create a new authentication server (LDAP or RADIUS)
Inputs: host (required), name (required), type (required), port, +14 more. Returns: object
create_bind_zoneB
Create a BIND DNS zone
Inputs: name (required), type, descr, apply_immediately. Returns: object
create_certificateA
Create or import a certificate on pfSense
Import and internal generation use different API endpoints with different
required fields, so this routes on method.
Inputs: descr (required), method (required), prv, cert, +12 more. Returns: object
create_certificate_authorityA
Create or import a Certificate Authority on pfSense
Import and internal generation use different API endpoints; this routes on
method.
Inputs: descr (required), method (required), prv, cert, +10 more. Returns: object
create_crlB
Create a Certificate Revocation List (CRL) on pfSense
Inputs: caref (required), descr (required), method, lifetime. Returns: object
create_cron_jobB
Create a cron job
Inputs: who (required), hour (required), mday (required), wday (required), +4 more. Returns: object
create_dhcp_address_poolB
Create a DHCP address pool for an interface
Inputs: range_to (required), parent_id (required), range_from (required), descr, +1 more. Returns: object
create_dhcp_custom_optionB
Create a DHCP custom option
Inputs: type (required), value (required), number (required), parent_id (required), +1 more. Returns: object
create_dhcp_static_mappingA
Create a DHCP static mapping (reservation)
Lease times are not optional in effect: the API package materialises defaultleasetime 7200 and maxleasetime 86400 whenever the field is absent from the request, and a later PATCH sending an explicit null returns 200 but reads back unchanged. Pass the values you want at create time.
Whether the DHCP daemon acts on the per-host values is unverified. On an ISC deployment they were present in config.xml but absent from the generated dhcpd.conf; the Kea config was not readable.
Inputs: interface (required), ip_address (required), mac_address (required), domain, +7 more. Returns: object
create_dns_access_listA
Create a DNS Resolver access list entry
Inputs: aclname (required), aclaction (required), descr, networks, +1 more. Returns: object
create_dns_domain_overrideC
Create a DNS domain override entry
Inputs: ip (required), domain (required), descr, apply_immediately, +1 more. Returns: object
create_dns_forwarder_host_overrideB
Create a DNS Forwarder host override entry
Inputs: ip (required), host (required), domain (required), descr, +1 more. Returns: object
create_dns_host_overrideB
Create a DNS host override entry
Inputs: ip (required), host (required), domain (required), descr, +2 more. Returns: object
create_firewall_rule_advancedA
Create a firewall rule on the live pfSense appliance.
WARNING: This modifies the running firewall configuration.
Inputs: source (required), protocol (required), interface (required), rule_type (required), +11 more. Returns: object
create_firewall_scheduleA
Create a firewall schedule with an initial time range.
The pfSense API requires at least one time range at creation. Use create_schedule_time_range to add further ranges afterwards.
Inputs: hour (required), name (required), day, descr, +5 more. Returns: object
create_freeradius_clientB
Create a FreeRADIUS client (NAS device)
Inputs: ip (required), secret (required), descr, shortname, +1 more. Returns: object
create_freeradius_userA
Create a FreeRADIUS user
Inputs: password (required), username (required), ip, descr, +1 more. Returns: object
create_gatewayB
Create a routing gateway
Inputs: name (required), gateway (required), interface (required), descr, +5 more. Returns: object
create_gateway_groupA
Create a gateway group for multi-WAN failover or load balancing
Inputs: name (required), trigger (required), priorities (required), descr, +1 more. Returns: object
create_groupA
Create a new pfSense user group
Inputs: name (required), priv, descr, scope, +1 more. Returns: object
create_haproxy_backendB
Create an HAProxy backend pool
Inputs: name (required), mode, descr, balance, +2 more. Returns: object
create_haproxy_frontendC
Create an HAProxy frontend listener
Inputs: name (required), type, descr, status, +5 more. Returns: object
create_interfaceC
Create (assign) a network interface
Inputs: interface_port (required), descr, enable, ipaddr, +6 more. Returns: object
create_interface_bridgeC
Create an interface bridge
Inputs: members (required), descr, apply_immediately. Returns: object
create_interface_groupC
Create an interface group
Inputs: ifname (required), members (required), descr, apply_immediately. Returns: object
create_ipsec_phase1B
Create an IPsec Phase 1 (IKE) entry
Inputs: iketype (required), protocol (required), interface (required), remote_gateway (required), +10 more. Returns: object
create_ipsec_phase1_encryptionB
Create an IPsec Phase 1 encryption algorithm entry
Inputs: parent_id (required), encryption_algorithm_name (required), dhgroup, prf_algorithm, +3 more. Returns: object
create_ipsec_phase2B
Create an IPsec Phase 2 (Child SA / tunnel) entry
Inputs: mode (required), ikeid (required), localid_type (required), descr, +8 more. Returns: object
create_ipsec_phase2_encryptionC
Create an IPsec Phase 2 encryption entry
Inputs: parent_id (required), encryption_algorithm_name (required), dhgroup, prf_algorithm, +3 more. Returns: object
create_nat_onetoone_mappingB
Create a 1:1 NAT mapping
Inputs: source (required), external (required), interface (required), type, +4 more. Returns: object
create_nat_outbound_mappingB
Create an outbound NAT mapping
Inputs: source (required), interface (required), descr, target, +9 more. Returns: object
create_nat_port_forwardB
Create a NAT port forwarding rule
Inputs: target (required), protocol (required), interface (required), local_port (required), +8 more. Returns: object
create_openvpn_clientB
Create an OpenVPN client instance on pfSense.
Inputs: dev_mode (required), protocol (required), interface (required), server_addr (required), +18 more. Returns: object
create_openvpn_serverB
Create an OpenVPN server instance on pfSense.
Inputs: mode (required), dev_mode (required), protocol (required), interface (required), +21 more. Returns: object
create_schedule_time_rangeA
Create a time range within a firewall schedule
Inputs: parent_id (required), day, hour, month, +3 more. Returns: object
create_shaper_queueB
Create a traffic shaper queue
Inputs: name (required), parent_id (required), descr, qlimit, +5 more. Returns: object
create_static_routeC
Create a static route
Inputs: gateway (required), network (required), descr, disabled, +1 more. Returns: object
create_system_tunableA
Create a system tunable (sysctl value)
Inputs: value (required), tunable (required), descr, apply_immediately. Returns: object
create_traffic_limiterB
Create a traffic limiter (dummynet pipe)
Inputs: name (required), bandwidth (required), bandwidthtype (required), aqm, +6 more. Returns: object
create_traffic_shaperB
Create a traffic shaper on an interface
Inputs: bandwidth (required), interface (required), scheduler (required), bandwidthtype (required), +3 more. Returns: object
create_userA
Create a new pfSense local user
Inputs: name (required), password (required), priv, descr, +4 more. Returns: object
create_virtual_ipB
Create a virtual IP address
Inputs: mode (required), subnet (required), interface (required), subnet_bits (required), +7 more. Returns: object
create_vlanC
Create a VLAN
Inputs: tag (required), parent_interface (required), pcp, descr, +1 more. Returns: object
create_wireguard_peerA
Create a new WireGuard peer on a tunnel
Inputs: tun (required), publickey (required), port, descr, +5 more. Returns: object
create_wireguard_tunnelB
Create a new WireGuard tunnel
Inputs: name (required), listenport (required), privatekey (required), mtu, +3 more. Returns: object
delete_acme_certificateADestructive
Delete an ACME certificate entry by ID. WARNING: This is irreversible.
Inputs: certificate_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_aliasADestructive
Delete an alias by ID. WARNING: This is irreversible.
Inputs: alias_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_auth_serverADestructive
Delete a pfSense authentication server by ID. WARNING: This is irreversible.
Inputs: auth_server_id (required), confirm, dry_run. Returns: object
delete_bind_zoneADestructive
Delete a BIND DNS zone by ID. WARNING: This is irreversible.
This will also remove all records within the zone.
Inputs: zone_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_certificateADestructive
Delete a certificate by ID. WARNING: This is irreversible.
Inputs: certificate_id (required), confirm, dry_run. Returns: object
delete_certificate_authorityADestructive
Delete a Certificate Authority by ID. WARNING: This is irreversible.
Inputs: ca_id (required), confirm, dry_run. Returns: object
delete_config_revisionADestructive
Delete a configuration history revision by ID. WARNING: This is irreversible.
Inputs: revision_id (required), confirm, dry_run. Returns: object
delete_crlADestructive
Delete a Certificate Revocation List (CRL) by ID. WARNING: This is irreversible.
Inputs: crl_id (required), confirm, dry_run. Returns: object
delete_cron_jobADestructive
Delete a cron job by ID. WARNING: This is irreversible.
Inputs: job_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_dhcp_address_poolADestructive
Delete a DHCP address pool by ID. WARNING: This is irreversible.
Inputs: pool_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_dhcp_custom_optionADestructive
Delete a DHCP custom option by ID. WARNING: This is irreversible.
Inputs: option_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_dhcp_static_mappingADestructive
Delete a DHCP static mapping by ID. WARNING: This is irreversible.
Inputs: interface (required), mapping_id (required), confirm, dry_run, +1 more. Returns: object
delete_dns_access_listADestructive
Delete a DNS Resolver access list. WARNING: This is irreversible.
Inputs: access_list_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_dns_domain_overrideADestructive
Delete a DNS domain override by ID. WARNING: This is irreversible.
Inputs: override_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_dns_forwarder_host_overrideADestructive
Delete a DNS Forwarder host override by ID. WARNING: This is irreversible.
Inputs: override_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_dns_host_overrideADestructive
Delete a DNS host override by ID. WARNING: This is irreversible.
Inputs: override_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_firewall_ruleADestructive
Delete a firewall rule from the live pfSense appliance. WARNING: This is irreversible.
Inputs: rule_id (required), confirm, dry_run, verify_descr, +1 more. Returns: object
delete_firewall_scheduleADestructive
Delete a firewall schedule by ID. WARNING: This is irreversible.
Inputs: schedule_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_firewall_stateADestructive
Delete a specific firewall state (active connection) by ID. WARNING: This is irreversible.
Terminating a state will immediately drop the associated connection.
Inputs: id (required), confirm, dry_run. Returns: object
delete_freeradius_clientADestructive
Delete a FreeRADIUS client by ID. WARNING: This is irreversible.
Inputs: client_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_freeradius_userADestructive
Delete a FreeRADIUS user by ID. WARNING: This is irreversible.
Inputs: user_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_gatewayADestructive
Delete a routing gateway by ID. WARNING: This is irreversible.
Inputs: gateway_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_gateway_groupADestructive
Delete a gateway group by ID. WARNING: This is irreversible.
Inputs: group_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_groupADestructive
Delete a pfSense user group by ID. WARNING: This is irreversible.
Inputs: group_id (required), confirm, dry_run. Returns: object
delete_haproxy_backendADestructive
Delete an HAProxy backend by ID. WARNING: This is irreversible.
Inputs: backend_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_haproxy_frontendADestructive
Delete an HAProxy frontend by ID. WARNING: This is irreversible.
Inputs: frontend_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_interfaceADestructive
Delete (unassign) an interface by ID. WARNING: This is irreversible.
Inputs: interface_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_ipsec_phase1ADestructive
Delete an IPsec Phase 1 (IKE) entry by ID. WARNING: This is irreversible and will also remove associated Phase 2 entries.
Inputs: phase1_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_ipsec_phase1_encryptionADestructive
Delete an IPsec Phase 1 encryption algorithm entry by ID. WARNING: This is irreversible.
Inputs: encryption_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_ipsec_phase2ADestructive
Delete an IPsec Phase 2 (Child SA / tunnel) entry by ID. WARNING: This is irreversible.
Inputs: phase2_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_ipsec_phase2_encryptionADestructive
Delete an IPsec Phase 2 encryption entry by ID. WARNING: This is irreversible.
Inputs: encryption_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_nat_onetoone_mappingADestructive
Delete a 1:1 NAT mapping by ID. WARNING: This is irreversible.
Inputs: mapping_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_nat_outbound_mappingADestructive
Delete an outbound NAT mapping by ID. WARNING: This is irreversible.
Inputs: mapping_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_nat_port_forwardADestructive
Delete a NAT port forwarding rule by ID. WARNING: This is irreversible.
Inputs: port_forward_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_openvpn_clientADestructive
Delete an OpenVPN client instance by ID. WARNING: This is irreversible.
Inputs: client_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_openvpn_serverADestructive
Delete an OpenVPN server instance by ID. WARNING: This is irreversible.
Inputs: server_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_schedule_time_rangeADestructive
Delete a time range from a firewall schedule by ID. WARNING: This is irreversible.
Inputs: time_range_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_shaper_queueADestructive
Delete a shaper queue by ID. WARNING: This is irreversible.
Inputs: queue_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_static_routeADestructive
Delete a static route by ID. WARNING: This is irreversible.
Inputs: route_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_system_tunableADestructive
Delete a system tunable by ID. WARNING: This is irreversible.
Inputs: tunable_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_traffic_limiterADestructive
Delete a traffic limiter by ID. WARNING: This is irreversible.
Inputs: limiter_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_traffic_shaperBDestructive
Delete a traffic shaper by ID. WARNING: This is irreversible.
Inputs: shaper_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_userADestructive
Delete a pfSense local user by ID. WARNING: This is irreversible.
Inputs: user_id (required), confirm, dry_run. Returns: object
delete_virtual_ipADestructive
Delete a virtual IP by ID. WARNING: This is irreversible.
Inputs: vip_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_vlanADestructive
Delete a VLAN by ID. WARNING: This is irreversible.
Inputs: vlan_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_wireguard_peerADestructive
Delete a WireGuard peer by ID. WARNING: This is irreversible.
Inputs: peer_id (required), confirm, dry_run, apply_immediately. Returns: object
delete_wireguard_tunnelADestructive
Delete a WireGuard tunnel by ID. WARNING: This is irreversible.
Inputs: tunnel_id (required), confirm, dry_run, apply_immediately. Returns: object
diagnose_blocked_trafficARead-only
Comprehensive analysis of why traffic might be blocked.
Searches firewall logs for the source IP, finds matching block/reject rules, checks alias memberships, and suggests fixes.
Inputs: source_ip (required), protocol, destination_ip, destination_port. Returns: object
diagnose_connectivityARead-only
Test connectivity to a host from the pfSense appliance.
Runs ping, checks the ARP table for the target IP, and checks gateway status to give a combined connectivity diagnosis.
Inputs: host (required), count. Returns: object
diagnose_dhcp_issuesARead-only
Analyze DHCP service health on an interface.
Checks DHCP server config, lease pool utilization, IP conflicts, and optionally looks up a specific MAC or IP address.
Inputs: interface, ip_address, mac_address. Returns: object
diagnose_dns_resolutionARead-only
Check DNS resolver health.
Gets DNS resolver settings, host/domain override counts, system DNS servers, and runs a connectivity check to verify upstream reachability.
Inputs: no named parameters. Returns: object
diagnose_high_availabilityARead-only
Check CARP/HA status if configured.
Gets CARP status, virtual IPs, and checks if any CARP VIPs are in an unexpected state (e.g., backup when they should be master).
Inputs: no named parameters. Returns: object
diagnose_interface_issuesARead-only
Analyze an interface for problems.
Checks interface status, configuration, gateway status, and ARP entries on the specified interface.
Inputs: interface (required). Returns: object
diagnose_service_healthARead-only
Comprehensive service health check.
Gets all services and their status, identifies stopped services, and checks system resource utilization (CPU, memory, disk).
Inputs: no named parameters. Returns: object
diagnose_vpn_statusARead-only
Comprehensive VPN health check across all VPN types.
Gets status for OpenVPN servers, OpenVPN clients, IPsec SAs, and WireGuard peers. Returns per-VPN summary with connected/disconnected/error counts.
Inputs: no named parameters. Returns: object
disable_hateoasADestructiveIdempotent
Disable HATEOAS links in API responses on the pfSense server.
WARNING: This modifies the pfSense REST API server-wide setting via PATCH /system/restapi/settings. It affects ALL API consumers, not just this MCP session.
Inputs: confirm. Returns: object
disconnect_openvpn_clientADestructive
Disconnect an active OpenVPN client connection. WARNING: This will terminate the client session.
Inputs: connection_id (required), confirm, dry_run. Returns: object
enable_hateoasADestructiveIdempotent
Enable HATEOAS links in API responses on the pfSense server.
WARNING: This modifies the pfSense REST API server-wide setting via PATCH /system/restapi/settings. It affects ALL API consumers, not just this MCP session.
Inputs: confirm. Returns: object
export_certificate_pkcs12B
Export a certificate in PKCS#12 format
Inputs: certificate_id (required), passphrase. Returns: object
export_openvpn_client_configA
Export an OpenVPN client configuration file or installer package.
Generates downloadable client configuration for connecting to a pfSense OpenVPN server instance.
Inputs: server_id (required), port, use_tls, hostname, +9 more. Returns: object
find_blocked_rulesARead-only
Find all firewall rules that block or reject traffic
Inputs: interface. Returns: object
find_interfaces_by_statusBRead-only
Find interfaces by their current status
Inputs: status (required). Returns: object
find_object_by_fieldARead-only
Find an object by a specific field value (safer than using IDs).
Use this instead of IDs when you need a stable reference to an object, since pfSense object IDs change after deletions.
Inputs: field (required), value (required), endpoint (required). Returns: object
follow_api_linkARead-only
Follow a HATEOAS link from a previous API response
Inputs: link_url (required). Returns: object
generate_certificateA
Generate a new certificate signed by an existing CA on pfSense
Inputs: caref (required), descr (required), dn_commonname (required), type, +5 more. Returns: object
get_acme_settingsARead-only
Get the current ACME package settings
Inputs: no named parameters. Returns: object
get_api_capabilitiesBRead-only
Get comprehensive API capabilities and configuration
Inputs: no named parameters. Returns: object
get_arp_tableARead-only
Get the ARP table to discover devices on the network.
Shows IP-to-MAC address mappings for all devices that have recently communicated on the network, including those without static DHCP mappings.
Inputs: page, interface, page_size, ip_address, +1 more. Returns: object
get_available_interfacesARead-only
Get a list of available (unassigned) network interfaces
Inputs: no named parameters. Returns: object
get_bind_settingsARead-only
Get the current BIND DNS server settings
Inputs: no named parameters. Returns: object
get_carp_statusARead-only
Get the current CARP (Common Address Redundancy Protocol) status
Inputs: no named parameters. Returns: object
get_config_historyBRead-only
Get configuration history revisions with pagination
Inputs: page, sort_by, page_size. Returns: object
get_config_revisionARead-only
Get a specific configuration history revision by ID
Inputs: revision_id (required). Returns: object
get_default_gatewayARead-only
Get the current default gateway settings (IPv4 and IPv6)
Inputs: no named parameters. Returns: object
get_dhcp_relay_settingsARead-only
Get the DHCP relay settings
Inputs: no named parameters. Returns: object
get_dhcp_server_configARead-only
Get DHCP server configuration including pool ranges, lease times, etc.
Inputs: page, interface, page_size. Returns: object
get_dns_resolver_settingsARead-only
Get the current DNS Resolver (Unbound) settings
Returns the full Unbound configuration including enable state, DNSSEC, forwarding mode, DHCP registration, and custom options.
Inputs: no named parameters. Returns: object
get_email_notification_settingsBRead-only
Get the email notification settings
Inputs: no named parameters. Returns: object
get_firewall_advanced_settingsARead-only
Get firewall advanced settings
Returns advanced firewall configuration including optimization mode, state timeout values, and other tuning parameters.
Inputs: no named parameters. Returns: object
get_firewall_logARead-only
Get firewall log entries with optional filtering
WARNING (tracked by upstream PR #860): this endpoint may fail on firewalls with large log files due to a known pfSense REST API bug (server-side OOM at the 512 MB PHP limit). If it fails, suggest reviewing logs via SSH or the pfSense web UI instead.
Inputs: lines, protocol, interface, source_ip, +3 more. Returns: object
get_firewall_state_sizeARead-only
Get the current firewall state table size and limits
Returns the current number of active states and the configured maximum.
Inputs: no named parameters. Returns: object
get_gateway_statusARead-only
Get real-time gateway status including latency, packet loss, and online/offline state
Inputs: no named parameters. Returns: object
get_guardrail_statusARead-only
Get the current guardrail configuration and recent action history.
Shows risk classification for tools, rate limits, allowlist status, and recent rollback entries for destructive operations.
Inputs: no named parameters. Returns: object
get_haproxy_settingsARead-only
Get the current HAProxy service settings
Inputs: no named parameters. Returns: object
get_ipsec_child_sa_statusARead-only
Get IPsec Child Security Associations status showing active tunnel details.
Returns detailed status of all IPsec Child SAs including traffic selectors, bytes transferred, encryption/integrity algorithms in use, and uptime.
Inputs: no named parameters. Returns: object
get_ipsec_statusARead-only
Get IPsec Security Associations (SAs) status showing active tunnels and their state.
Returns the current state of all IPsec IKE SAs including connection status, established time, local/remote identities, and child SA counts.
Inputs: no named parameters. Returns: object
get_log_fileARead-only
Read the newest lines from a pfSense log file (dhcpd, filter, resolver, system, auth).
Reads the plain-text log file server-side with tail (and grep when a pattern is given), so it works for log types the REST API log endpoints don't expose (notably resolver) and avoids the known server-side OOM bug on /status/logs/ endpoints.
Inputs: log_file (required), grep, lines. Returns: object
get_log_settingsARead-only
Get the system log settings
Inputs: no named parameters. Returns: object
get_nat_outbound_modeARead-only
Get the current outbound NAT mode (automatic, hybrid, advanced, or disabled)
Inputs: no named parameters. Returns: object
get_ntp_settingsBRead-only
Get the NTP service settings
Inputs: no named parameters. Returns: object
get_openvpn_client_statusARead-only
Get the status of all OpenVPN clients
Inputs: no named parameters. Returns: object
get_openvpn_server_statusARead-only
Get the status of all OpenVPN servers
Inputs: no named parameters. Returns: object
get_openvpn_statusARead-only
Get the runtime status of all OpenVPN server and client instances.
Returns connection status, connected clients, traffic statistics, and uptime information for all active OpenVPN tunnels.
Inputs: no named parameters. Returns: object
get_pf_rulesARead-only
Read the compiled pf ruleset (/tmp/rules.debug) to verify what pf is actually enforcing vs what's in config.xml.
Returns the raw compiled rules that the packet filter is using.
Inputs: no named parameters. Returns: object
get_pf_tableARead-only
Get the contents of a specific pf firewall table
Inputs: name (required). Returns: object
get_ssh_settingsARead-only
Get the SSH service settings
Inputs: no named parameters. Returns: object
get_system_consoleBRead-only
Get the system console settings
Inputs: no named parameters. Returns: object
get_system_dnsARead-only
Get the current system DNS server configuration
Inputs: no named parameters. Returns: object
get_system_health_reportARead-only
Full system health dashboard — combines all diagnostics into one report.
Checks system status, interface health, service status, gateway status, VPN status, DHCP utilization, recent blocked traffic, and firewall rule counts. Returns severity-coded findings.
Inputs: no named parameters. Returns: object
get_system_hostnameARead-only
Get the current system hostname and domain
Inputs: no named parameters. Returns: object
get_system_timezoneARead-only
Get the current system timezone setting
Inputs: no named parameters. Returns: object
get_system_versionBRead-only
Get the pfSense system version information
Inputs: no named parameters. Returns: object
get_webgui_settingsARead-only
Get the WebGUI settings (protocol, port, certificates, etc.)
Inputs: no named parameters. Returns: object
get_wireguard_settingsARead-only
Get the current WireGuard service settings
Inputs: no named parameters. Returns: object
halt_systemADestructive
Halt (shut down) the pfSense system. WARNING: This will power off the system.
Inputs: confirm, dry_run. Returns: object
issue_acme_certificateAIdempotent
Issue (obtain) an ACME certificate from Let's Encrypt
Triggers the ACME challenge/validation process and obtains the certificate.
Inputs: id (required). Returns: object
manage_acme_certificate_domainA
Add or remove a domain (SAN) validation entry on an ACME certificate
Each ACME certificate needs at least one domain entry describing how pfSense proves ownership to Let's Encrypt (HTTP-01, DNS-01 via a provider API, manual DNS, etc.) before a certificate can be issued. This manages entries one at a time instead of replacing the whole a_domainlist array (see update_acme_certificate for a full-replace).
Inputs: action (required), parent_id (required), name, method, +4 more. Returns: object
manage_alias_addressesAIdempotent
Add or remove addresses from an existing alias
Inputs: action (required), alias_id (required), addresses (required). Returns: object
manage_bind_access_listB
Create or delete a BIND access control list
Inputs: action (required), name, descr, confirm, +3 more. Returns: object
manage_bind_zone_recordB
Create or delete a DNS record within a BIND zone
Inputs: action (required), parent_id (required), name, type, +4 more. Returns: object
manage_dns_forwarder_host_override_aliasB
Add or remove an alias for a DNS Forwarder host override
Inputs: action (required), parent_id (required), host, descr, +4 more. Returns: object
manage_haproxy_backend_serverA
Add or remove a server from an HAProxy backend
Inputs: action (required), parent_id (required), ssl, name, +7 more. Returns: object
manage_haproxy_fileB
Create or delete an HAProxy file (certificate, error page, Lua script, etc.)
Inputs: action (required), name, confirm, content, +2 more. Returns: object
manage_haproxy_frontend_addressB
Add or remove a bind address from an HAProxy frontend
Inputs: action (required), parent_id (required), confirm, extaddr, +5 more. Returns: object
manage_haproxy_frontend_certificateA
Add or remove an additional SNI SSL certificate on an HAProxy frontend
To set the frontend's default certificate instead (used whenever SNI doesn't match one of these additional certs), use update_haproxy_frontend's ssloffloadcert parameter.
Inputs: action (required), parent_id (required), confirm, certificate_id, +2 more. Returns: object
manage_ntp_time_serverB
Add or remove an NTP time server
Inputs: action (required), type, prefer, confirm, +4 more. Returns: object
manage_openvpn_csoADestructive
Create, update, or delete an OpenVPN Client Specific Override (CSO).
CSOs allow per-client configuration such as assigning static tunnel IPs, pushing custom routes, or blocking specific clients.
Inputs: action (required), block, cso_id, confirm, +13 more. Returns: object
manage_service_watchdogB
Add or remove a service watchdog entry
Inputs: action (required), name, confirm, description, +2 more. Returns: object
manage_wireguard_peer_allowed_ipB
Add or remove an allowed IP for a WireGuard peer
Inputs: action (required), peer_id (required), mask, descr, +4 more. Returns: object
manage_wireguard_tunnel_addressC
Add or remove an address for a WireGuard tunnel
Inputs: action (required), tunnel_id (required), descr, address, +3 more. Returns: object
move_firewall_ruleAIdempotent
Move a firewall rule to a new position in the rule order
Inputs: rule_id (required), new_position (required), apply_immediately. Returns: object
reboot_systemADestructive
Reboot the pfSense system. WARNING: This will cause a service interruption.
Inputs: confirm, dry_run. Returns: object
refresh_object_idsARead-only
Refresh object IDs by re-querying an endpoint (handles ID changes after deletions).
pfSense object IDs are non-persistent array indices that change after any deletion. Call this before performing update/delete operations to get fresh IDs.
Inputs: endpoint (required). Returns: object
register_acme_account_keyAIdempotent
Register an ACME account key with the ACME server (Let's Encrypt)
This sends the account key to the ACME server and completes registration.
Inputs: id (required). Returns: object
renew_acme_certificateAIdempotent
Renew an existing ACME certificate
Triggers the renewal process for a previously issued certificate.
Inputs: id (required). Returns: object
renew_certificateA
Renew an existing certificate by ID
Inputs: certificate_id (required). Returns: object
run_ping_diagnosticARead-only
Run a ping diagnostic from the pfSense firewall
Inputs: host (required), count. Returns: object
search_acme_account_keysARead-only
Search ACME account keys with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_acme_certificate_domainsARead-only
List the domain (SAN) validation entries configured on an ACME certificate
The pfSense API embeds each certificate's domain list (a_domainlist)
inline on the certificate object rather than exposing a standalone list
endpoint, so this fetches the parent certificate and returns its domains.
Inputs: parent_id (required), search_term. Returns: object
search_acme_certificatesARead-only
Search ACME (Let's Encrypt) certificates with filtering and pagination
Requires the ACME package to be installed on pfSense.
Inputs: page, sort_by, page_size, search_term. Returns: object
search_aliasesBRead-only
Search aliases with advanced filtering options
Inputs: page, sort_by, page_size, alias_type, +2 more. Returns: object
search_audit_trailARead-only
Search the guardrail audit log for recent destructive actions taken.
Checks the in-memory rollback history and, if MCP_AUDIT_LOG is configured, reads recent entries from the audit log file.
Inputs: limit, risk_filter, tool_filter. Returns: object
search_auth_serversARead-only
Search pfSense authentication servers (LDAP, RADIUS) with optional filtering
Inputs: page, sort_by, page_size, search_term. Returns: object
search_bind_access_listsBRead-only
Search BIND access control lists
Inputs: page, sort_by, page_size, search_term. Returns: object
search_bind_zone_recordsARead-only
Search DNS records within a BIND zone
Inputs: parent_id (required), page, sort_by, page_size, +2 more. Returns: object
search_bind_zonesARead-only
Search BIND DNS zones with filtering and pagination
Requires the BIND package to be installed on pfSense.
Inputs: page, sort_by, page_size, zone_type, +1 more. Returns: object
search_certificate_authoritiesARead-only
Search Certificate Authorities (CAs) configured on pfSense
Inputs: page, page_size, search_term. Returns: object
search_certificatesBRead-only
Search certificates configured on pfSense with optional filtering
Inputs: page, page_size, search_term. Returns: object
search_crlsARead-only
Search Certificate Revocation Lists (CRLs) configured on pfSense
Inputs: page, page_size, search_term. Returns: object
search_cron_jobsARead-only
Search cron jobs with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_dhcp_address_poolsARead-only
Search DHCP server address pools with filtering and pagination
Inputs: page, sort_by, page_size, parent_id. Returns: object
search_dhcp_custom_optionsARead-only
Search DHCP server custom options with filtering and pagination
Inputs: page, sort_by, page_size, parent_id. Returns: object
search_dhcp_leasesARead-only
Search DHCP leases with advanced filtering
Inputs: page, state, sort_by, hostname, +4 more. Returns: object
search_dhcp_static_mappingsBRead-only
Search DHCP static mappings (reservations) with filtering
Inputs: page, sort_by, hostname, interface, +3 more. Returns: object
search_dns_access_listsARead-only
Search DNS Resolver access lists with pagination
Inputs: page, sort_by, page_size. Returns: object
search_dns_domain_overridesARead-only
Search DNS domain overrides with filtering and pagination
Inputs: ip, page, descr, domain, +2 more. Returns: object
search_dns_forwarder_host_override_aliasesARead-only
Search aliases for a DNS Forwarder host override
Inputs: parent_id (required), page, sort_by, page_size. Returns: object
search_dns_forwarder_host_overridesBRead-only
Search DNS Forwarder host overrides with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_dns_host_override_aliasesARead-only
Search aliases for a specific DNS host override
Inputs: parent_id (required), page, sort_by, page_size. Returns: object
search_dns_host_overridesBRead-only
Search DNS host overrides with filtering and pagination
Inputs: host, page, domain, sort_by, +2 more. Returns: object
search_firewall_rulesBRead-only
Search firewall rules with advanced filtering and pagination.
Inputs: page, sort_by, disabled, interface, +5 more. Returns: object
search_firewall_schedulesBRead-only
Search firewall schedules with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_firewall_statesARead-only
Search firewall states (active connections) with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_freeradius_clientsARead-only
Search FreeRADIUS clients (NAS devices) with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_freeradius_usersARead-only
Search FreeRADIUS users with filtering and pagination
Requires the FreeRADIUS package to be installed on pfSense.
Inputs: page, sort_by, page_size, search_term. Returns: object
search_gateway_groupsARead-only
Search gateway groups with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_gatewaysARead-only
Search routing gateways with filtering and pagination
Inputs: page, sort_by, protocol, interface, +2 more. Returns: object
search_groupsARead-only
Search pfSense user groups with optional filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_haproxy_backendsARead-only
Search HAProxy backends with filtering and pagination
Requires the HAProxy package to be installed on pfSense.
Inputs: page, sort_by, page_size, search_term. Returns: object
search_haproxy_backend_serversCRead-only
Search servers within an HAProxy backend
Inputs: parent_id (required), page, sort_by, page_size, +1 more. Returns: object
search_haproxy_filesARead-only
Search HAProxy files (certificates, error pages, Lua scripts, etc.)
Inputs: page, sort_by, page_size, search_term. Returns: object
search_haproxy_frontend_addressesARead-only
List the bind addresses configured on an HAProxy frontend
Inputs: parent_id (required), page, page_size. Returns: object
search_haproxy_frontend_certificatesARead-only
List the additional SNI SSL certificates bound to an HAProxy frontend
Note: this lists the frontend's additional SNI certificates
(ha_certificates), not its default certificate. The default certificate
is the frontend's ssloffloadcert field, set via update_haproxy_frontend
and visible in search_haproxy_frontends.
Inputs: parent_id (required), page, page_size. Returns: object
search_haproxy_frontendsBRead-only
Search HAProxy frontends with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_installed_packagesARead-only
Search installed packages with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_interface_bridgesARead-only
Search interface bridges with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_interface_configsARead-only
Search interface configurations with filtering and pagination
Each result carries an "id" of "wan", "lan", or "optN", which is what update_interface and delete_interface take as interface_id.
Inputs: page, sort_by, page_size, search_term. Returns: object
search_interface_groupsARead-only
Search interface groups with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_interfacesBRead-only
Search and filter network interfaces with advanced options
Inputs: page, sort_by, page_size, search_term, +1 more. Returns: object
search_ipsec_phase1_encryptionsARead-only
Search IPsec Phase 1 encryption algorithm entries with filtering and pagination
Inputs: page, sort_by, page_size, parent_id. Returns: object
search_ipsec_phase1sARead-only
Search IPsec Phase 1 (IKE) entries with filtering and pagination
Inputs: page, iketype, sort_by, page_size, +2 more. Returns: object
search_ipsec_phase2_encryptionsARead-only
Search IPsec Phase 2 encryption entries with filtering and pagination
Inputs: page, sort_by, page_size, parent_id. Returns: object
search_ipsec_phase2sARead-only
Search IPsec Phase 2 (Child SA / tunnel) entries with filtering and pagination
Inputs: mode, page, ikeid, sort_by, +2 more. Returns: object
search_logs_by_ipARead-only
Search logs for activity related to a specific IP address
WARNING (tracked by upstream PR #860): this endpoint may fail on firewalls with large log files due to a known pfSense REST API bug (server-side OOM at the 512 MB PHP limit). If it fails, suggest reviewing logs via SSH or the pfSense web UI instead.
Inputs: ip_address (required), lines, log_type. Returns: object
search_nat_onetoone_mappingsARead-only
Search 1:1 NAT mappings with filtering and pagination
Inputs: page, sort_by, interface, page_size, +1 more. Returns: object
search_nat_outbound_mappingsARead-only
Search outbound NAT mappings with filtering and pagination
Inputs: page, sort_by, interface, page_size, +1 more. Returns: object
search_nat_port_forwardsARead-only
Search NAT port forwarding rules with filtering and pagination
Inputs: page, sort_by, protocol, interface, +3 more. Returns: object
search_ntp_time_serversBRead-only
Search NTP time servers with pagination
Inputs: page, sort_by, page_size. Returns: object
search_openvpn_client_export_configsBRead-only
Search available OpenVPN client export configurations
Inputs: page, sort_by, page_size, server_id. Returns: object
search_openvpn_clientsARead-only
Search OpenVPN client instances with filtering and pagination.
Inputs: page, sort_by, protocol, interface, +3 more. Returns: object
search_openvpn_csosARead-only
Search OpenVPN Client Specific Overrides (CSOs) with filtering and pagination.
CSOs allow per-client configuration overrides such as static IPs, custom routes, and pushed settings.
Inputs: page, server, sort_by, page_size, +2 more. Returns: object
search_openvpn_server_connectionsBRead-only
Search active OpenVPN server connections
Inputs: page, sort_by, page_size, server_id. Returns: object
search_openvpn_server_routesARead-only
Search OpenVPN server routing table entries
Inputs: page, sort_by, page_size, server_id. Returns: object
search_openvpn_serversARead-only
Search OpenVPN server instances with filtering and pagination.
Inputs: mode, page, sort_by, protocol, +3 more. Returns: object
search_pf_tablesBRead-only
Search pf firewall tables with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_schedule_time_rangesARead-only
Search time ranges within a firewall schedule
Inputs: parent_id (required), page, sort_by, page_size, +1 more. Returns: object
search_servicesBRead-only
Search and filter system services
Inputs: search_term, status_filter. Returns: object
search_service_watchdogsARead-only
Search service watchdogs with pagination
Inputs: page, sort_by, page_size. Returns: object
search_shaper_queuesARead-only
Search traffic shaper queues with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_static_routesARead-only
Search static routes with filtering and pagination
Inputs: page, gateway, sort_by, page_size, +1 more. Returns: object
search_system_tunablesARead-only
Search system tunables (sysctl values) with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_traffic_limitersBRead-only
Search traffic limiters (dummynet pipes) with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_traffic_shapersARead-only
Search traffic shapers with filtering and pagination
Inputs: page, sort_by, interface, page_size, +1 more. Returns: object
search_usersARead-only
Search pfSense local users with optional filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_virtual_ipsARead-only
Search virtual IPs with filtering and pagination
Inputs: page, sort_by, interface, page_size, +2 more. Returns: object
search_vlansARead-only
Search VLANs with filtering and pagination
Inputs: page, sort_by, page_size, search_term. Returns: object
search_wireguard_peer_allowed_ipsARead-only
Search WireGuard peer allowed IPs with filtering and pagination
Inputs: page, peer_id, sort_by, page_size. Returns: object
search_wireguard_peersARead-only
Search WireGuard peers with filtering and pagination
Inputs: tun, page, sort_by, page_size, +1 more. Returns: object
search_wireguard_tunnel_addressesBRead-only
Search WireGuard tunnel addresses with filtering and pagination
Inputs: page, sort_by, page_size, parent_id. Returns: object
search_wireguard_tunnelsARead-only
Search WireGuard tunnels with filtering and pagination
Inputs: page, enabled, sort_by, page_size, +1 more. Returns: object
send_wake_on_lanB
Send a Wake-on-LAN magic packet
Inputs: mac (required), interface (required). Returns: object
system_statusARead-only
Get current system status including CPU, memory, disk usage, and version info
Inputs: no named parameters. Returns: object
test_enhanced_connectionBRead-only
Test enhanced API connection with feature validation
Inputs: no named parameters. Returns: object
update_acme_certificateAIdempotent
Update an existing ACME certificate entry by ID
Inputs: certificate_id (required), name, descr, dnssleep, +4 more. Returns: object
update_aliasCIdempotent
Update an existing alias by ID
Inputs: alias_id (required), name, details, addresses, +3 more. Returns: object
update_auth_serverAIdempotent
Update an existing authentication server by ID
Inputs: auth_server_id (required), host, name, port, +15 more. Returns: object
update_bind_settingsBIdempotent
Update BIND DNS server settings
Inputs: enable, listen_on, rate_limit, log_severity, +3 more. Returns: object
update_bind_zoneAIdempotent
Update an existing BIND DNS zone by ID
Inputs: zone_id (required), name, type, descr, +1 more. Returns: object
update_carp_maintenanceBIdempotent
Update CARP maintenance mode settings
Inputs: enable, maintenance_mode, apply_immediately. Returns: object
update_certificateAIdempotent
Update an existing certificate by ID (idempotent)
Inputs: certificate_id (required), prv, cert, descr. Returns: object
update_certificate_authorityAIdempotent
Update an existing Certificate Authority by ID (idempotent)
Inputs: ca_id (required), prv, cert, descr. Returns: object
update_crlBIdempotent
Update a Certificate Revocation List (CRL) by ID
Inputs: crl_id (required), descr, lifetime. Returns: object
update_default_gatewayBIdempotent
Update the default gateway settings
Inputs: defaultgw4, defaultgw6, apply_immediately. Returns: object
update_dhcp_address_poolAIdempotent
Update an existing DHCP address pool by ID
Inputs: pool_id (required), descr, range_to, range_from, +1 more. Returns: object
update_dhcp_backendAIdempotent
Update the DHCP server backend (ISC DHCP vs Kea)
Inputs: dhcpbackend (required), apply_immediately. Returns: object
update_dhcp_custom_optionBIdempotent
Update an existing DHCP custom option by ID
Inputs: option_id (required), type, value, number, +1 more. Returns: object
update_dhcp_relay_settingsBIdempotent
Update the DHCP relay settings
Inputs: enable, server, interface, agentoption, +1 more. Returns: object
update_dhcp_server_configCIdempotent
Update DHCP server configuration (pool range, lease times, etc.)
Inputs: interface (required), domain, enable, gateway, +6 more. Returns: object
update_dhcp_static_mappingAIdempotent
Update an existing DHCP static mapping by ID
Only the parameters you pass are sent, so unset ones keep their stored values.
Inputs: mapping_id (required), hostname, interface, ip_address, +5 more. Returns: object
update_dns_access_listBIdempotent
Update an existing DNS Resolver access list
Inputs: access_list_id (required), descr, aclname, aclaction, +1 more. Returns: object
update_dns_domain_overrideAIdempotent
Update an existing DNS domain override by ID
Inputs: override_id (required), ip, descr, domain, +2 more. Returns: object
update_dns_forwarder_host_overrideBIdempotent
Update an existing DNS Forwarder host override by ID
Inputs: override_id (required), ip, host, descr, +2 more. Returns: object
update_dns_host_overrideBIdempotent
Update an existing DNS host override by ID
Inputs: override_id (required), ip, host, descr, +3 more. Returns: object
update_dns_resolver_settingsCIdempotent
Update DNS Resolver (Unbound) settings
Inputs: dnssec, enable, forwarding, register_dhcp, +4 more. Returns: object
update_email_notification_settingsCIdempotent
Update the email notification settings
Inputs: ssl, port, timeout, disabled, +8 more. Returns: object
update_firewall_advanced_settingsCIdempotent
Update firewall advanced settings
Inputs: disablescrub, maximumfrags, optimization, disablefilter, +5 more. Returns: object
update_firewall_ruleAIdempotent
Update an existing firewall rule by ID
Inputs: rule_id (required), source, disabled, protocol, +10 more. Returns: object
update_firewall_scheduleBIdempotent
Update an existing firewall schedule by ID
Inputs: schedule_id (required), name, descr, schedlabel, +1 more. Returns: object
update_firewall_state_sizeAIdempotent
Update the firewall state table size
Inputs: maximumstates, defaultstatesize, apply_immediately. Returns: object
update_freeradius_clientBIdempotent
Update an existing FreeRADIUS client by ID
Inputs: client_id (required), ip, descr, secret, +2 more. Returns: object
update_freeradius_userAIdempotent
Update an existing FreeRADIUS user by ID
Inputs: user_id (required), ip, descr, password, +2 more. Returns: object
update_gatewayAIdempotent
Update an existing routing gateway by ID
Inputs: gateway_id (required), name, descr, weight, +6 more. Returns: object
update_gateway_groupCIdempotent
Update an existing gateway group by ID
Inputs: group_id (required), name, descr, trigger, +2 more. Returns: object
update_groupAIdempotent
Update an existing pfSense user group by ID
Inputs: group_id (required), name, priv, descr, +2 more. Returns: object
update_haproxy_backendAIdempotent
Update an existing HAProxy backend by ID
Inputs: backend_id (required), mode, name, descr, +3 more. Returns: object
update_haproxy_frontendAIdempotent
Update an existing HAProxy frontend by ID
Inputs: frontend_id (required), name, type, descr, +6 more. Returns: object
update_haproxy_settingsCIdempotent
Update HAProxy service settings
Inputs: enable, maxconn, nbthread, hard_stop_after, +3 more. Returns: object
update_interfaceBIdempotent
Update an existing interface by ID
Inputs: interface_id (required), descr, enable, ipaddr, +6 more. Returns: object
update_ipsec_phase1AIdempotent
Update an existing IPsec Phase 1 (IKE) entry by ID
Inputs: phase1_id (required), descr, iketype, disabled, +11 more. Returns: object
update_ipsec_phase2AIdempotent
Update an existing IPsec Phase 2 (Child SA / tunnel) entry by ID
Inputs: phase2_id (required), mode, descr, ikeid, +9 more. Returns: object
update_ipsec_phase2_encryptionBIdempotent
Update an existing IPsec Phase 2 encryption entry by ID
Inputs: encryption_id (required), dhgroup, prf_algorithm, hash_algorithm, +3 more. Returns: object
update_log_settingsAIdempotent
Update the system log settings
The pfSense REST API field names are mirrored verbatim. Note that to
actually enable Remote Syslog you must set enableremotelogging=True —
setting remoteserver/ipprotocol alone leaves the feature off and
pfSense will normalise the remote-* fields back to null.
Inputs: ppp, vpn, auth, dhcp, +21 more. Returns: object
update_nat_onetoone_mappingBIdempotent
Update an existing 1:1 NAT mapping by ID
Inputs: mapping_id (required), type, descr, source, +5 more. Returns: object
update_nat_outbound_mappingBIdempotent
Update an existing outbound NAT mapping by ID
Inputs: mapping_id (required), descr, source, target, +10 more. Returns: object
update_nat_outbound_modeCIdempotent
Update the outbound NAT mode
Inputs: mode (required), apply_immediately. Returns: object
update_nat_port_forwardAIdempotent
Update an existing NAT port forwarding rule by ID
Inputs: port_forward_id (required), source, target, disabled, +8 more. Returns: object
update_ntp_settingsCIdempotent
Update the NTP service settings
Inputs: descr, enable, orphan, interface, +1 more. Returns: object
update_openvpn_clientAIdempotent
Update an existing OpenVPN client instance by ID.
Inputs: client_id (required), ca, tls, cert, +19 more. Returns: object
update_openvpn_serverBIdempotent
Update an existing OpenVPN server instance by ID.
Inputs: server_id (required), ca, tls, cert, +22 more. Returns: object
update_schedule_time_rangeAIdempotent
Update an existing time range within a firewall schedule by ID
Inputs: time_range_id (required), day, hour, month, +4 more. Returns: object
update_shaper_queueBIdempotent
Update an existing shaper queue by ID
Inputs: queue_id (required), name, descr, qlimit, +5 more. Returns: object
update_ssh_settingsBIdempotent
Update the SSH service settings
Inputs: port, enable, sshdkeyonly, apply_immediately. Returns: object
update_static_routeBIdempotent
Update an existing static route by ID
Inputs: route_id (required), descr, gateway, network, +2 more. Returns: object
update_system_consoleBIdempotent
Update the system console settings
Inputs: serialspeed, primaryconsole, secondaryconsole, apply_immediately, +1 more. Returns: object
update_system_dnsCIdempotent
Update system DNS server settings
Inputs: dnsserver, dnslocalhost, apply_immediately. Returns: object
update_system_hostnameBIdempotent
Update the system hostname and/or domain
Inputs: domain, hostname, apply_immediately. Returns: object
update_system_timezoneCIdempotent
Update the system timezone
Inputs: timezone_name (required), apply_immediately. Returns: object
update_system_tunableBIdempotent
Update an existing system tunable by ID
Inputs: tunable_id (required), descr, value, tunable, +1 more. Returns: object
update_traffic_limiterCIdempotent
Update an existing traffic limiter by ID
Inputs: limiter_id (required), aqm, mask, name, +7 more. Returns: object
update_traffic_shaperBIdempotent
Update an existing traffic shaper by ID
Inputs: shaper_id (required), descr, enabled, bandwidth, +4 more. Returns: object
update_userAIdempotent
Update an existing pfSense local user by ID
Inputs: user_id (required), name, priv, descr, +5 more. Returns: object
update_virtual_ipBIdempotent
Update an existing virtual IP by ID
Inputs: vip_id (required), mode, type, vhid, +8 more. Returns: object
update_vlanAIdempotent
Update an existing VLAN by ID
Inputs: vlan_id (required), pcp, tag, descr, +2 more. Returns: object
update_webgui_settingsCIdempotent
Update the WebGUI settings
Inputs: port, protocol, ssl_certref, max_processes, +5 more. Returns: object
update_wireguard_peerBIdempotent
Update an existing WireGuard peer by ID
Inputs: peer_id (required), tun, port, descr, +6 more. Returns: object
update_wireguard_settingsCIdempotent
Update WireGuard service settings
Inputs: enable, keep_conf, interface_group, resolve_interval, +1 more. Returns: object
update_wireguard_tunnelAIdempotent
Update an existing WireGuard tunnel by ID
Inputs: tunnel_id (required), mtu, name, descr, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 332 tools
Despite each tool having a detailed description, the sheer number and overlapping terminology make selection risky. Near-synonyms like search_interfaces/search_interface_configs, get_openvpn_status/get_openvpn_server_status, and get_log_file/get_firewall_log/search_logs_by_ip blur boundaries, and manage_* tools inconsistently mean add/remove or full CRUD. An agent would frequently need to read descriptions to avoid choosing the wrong tool.
Most tools follow a readable verb_noun snake_case pattern (search_, create_, update_, delete_, get_, apply_), which provides a strong baseline. However, there are many deviations: create_firewall_rule_advanced, system_status, get_openvpn_server_status vs get_openvpn_status, and inconsistent singular/plural names like search_ipsec_phase2_encryptions vs create_ipsec_phase2_encryption. The pattern is recognizable but not reliable enough for a 4.
332 tools is an extreme mismatch for any tool surface, even one covering the full pfSense feature set. This many tools will overwhelm context windows and make tool selection slow and error-prone. Most CRUD families could be consolidated into parameterized resource tools or grouped sub-servers.
The server covers an enormous breadth of pfSense domains and most resources have full CRUD plus apply/diagnostic helpers. However, there are notable gaps: interface groups and bridges have create/search but no update/delete, cron jobs lack update, IPsec Phase 1 encryption entries lack update, ACME account keys lack delete/update, and there is no restore-config-revision tool. These are workable for some cases by delete+recreate, but will block or complicate otherwise expected workflows.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted CallRail MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted WooCommerce MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseCqualityBmaintenanceA server that enables managing OPNSense firewalls through natural language interactions with Claude Desktop, supporting VLAN management, firewall rules configuration, and network interface queries.64116 npm99MIT
- -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 gradedqualityDmaintenanceEnables natural language interaction and management of pfSense firewalls through Claude and other GenAI applications using the Model Context Protocol. It provides advanced tools for firewall rule configuration, interface management, and intelligent log analysis via a REST API integration.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables natural-language management of pfSense firewalls—creating and reordering rules, NAT, VPNs, aliases, DNS, DHCP, certificates, services and diagnostics—directly from Claude Desktop, Claude Code, or any MCP client, with confirmation guardrails and rollback points on every change.-