Skip to main content
Glama
pfSense MCP Server

pfSense MCP Server

by gensecaihq

pfSense MCP 서버

Version License MCP 2025-11-25 pfSense REST API Tests Tools

자연어로 pfSense 방화벽을 관리하세요. 327개의 도구. 9단계 안전 장치. 한 번의 명령으로 시작.

You: "Block all traffic from 203.0.113.5 on WAN"
Claude: Creates block rule → applies changes → confirms with rollback instructions

pfSense MCP 서버는 Claude Desktop, Claude Code 및 기타 MCP 호환 AI 클라이언트를 pfSense 방화벽에 연결합니다. 질문하고, 문제를 진단하고, 방화벽을 관리하세요. 이 모든 것이 대화를 통해 이루어집니다.

이 서버가 존재하는 이유

pfSense 방화벽을 관리하려면 웹 UI 탭을 클릭하고, 필드 이름을 기억해야 하며, 실수로 규칙을 잘못 설정하여 접근이 차단되지 않기를 바라야 합니다. 이 MCP 서버를 사용하면 원하는 작업을 평이한 영어로 설명하기만 하면 AI가 REST API 호출을 처리하고, 입력을 검증하며, 파괴적인 작업이 발생하기 전에 경고를 보냅니다.

차별점:

  • 모든 파괴적인 작업은 명시적인 확인이 필요하며 정확히 어떤 일이 일어날지 보여줍니다.

  • 삭제/재부팅 전 자동 구성 백업 — 한 줄의 롤백 명령 제공.

  • 속도 제한(Rate limiting)을 통해 AI 루프가 방화벽에 규칙을 과도하게 생성하는 것을 방지합니다.

  • 입력 살균(Input sanitization)을 통해 모든 매개변수에서 명령 주입, 경로 탐색, XSS를 차단합니다.

Related MCP server: Firewalla MCP Server

빠른 시작

전제 조건: Python 3.10+, REST API v2 패키지가 설치된 pfSense

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으로 포트 포워딩을 생성해줘"

  • "전체 시스템 상태 점검을 실행해줘"

수행 가능한 작업

모든 주요 pfSense 하위 시스템에 걸친 327개의 도구:

도메인

도구

수행 가능한 작업

방화벽 규칙

9

규칙 생성, 업데이트, 삭제, 순서 변경. IP 대량 차단. 컴파일된 pf 규칙 세트 보기.

별칭(Aliases)

5

호스트/네트워크/포트/URL 별칭 관리. 주소 추가 및 제거.

NAT

16

포트 포워딩, 아웃바운드 NAT, 1:1 NAT — 전체 수명 주기 관리.

VPN

51

OpenVPN 서버 및 클라이언트, IPsec 터널, WireGuard 피어 — CRUD, 상태, 적용.

라우팅

16

게이트웨이, 게이트웨이 그룹, 정적 경로, 기본 게이트웨이 관리.

DNS

24

Unbound 리졸버 및 dnsmasq 포워더: 호스트 재정의, 도메인 재정의, 접근 제어 목록.

DHCP

17

임대, 정적 매핑, 주소 풀, 사용자 지정 옵션, 서버 구성.

인증서

15

인증서, CA, CRL — 생성, 갱신, PKCS12 내보내기.

사용자

12

사용자 계정, 그룹, LDAP/RADIUS 인증 서버 구성.

인터페이스

14

인터페이스 구성, VLAN, 브리지, 그룹.

시스템

44

상태, 설정, 진단, 구성 기록, 재부팅, 핑.

서비스

14

서비스 시작/중지/재시작. NTP, cron, SSH, 서비스 감시.

로그

3

파싱된 IPv4/IPv6 filterlog 데이터를 사용한 방화벽 로그 분석.

트래픽 셰이핑

12

대역폭 관리를 위한 셰이퍼, 큐 및 리미터.

일정

8

시간 기반 방화벽 규칙 예약.

가상 IP

5

CARP, ProxyARP 및 IP 별칭 관리.

문제 해결

10

연결성, 차단된 트래픽, VPN, DHCP, DNS, HA 진단. 전체 상태 보고서.

패키지

43

HAProxy, ACME/Let's Encrypt, BIND DNS, FreeRADIUS.

유틸리티

9

HATEOAS 탐색, 객체 ID 관리, 가드레일 상태.

안전 우선

프로덕션 방화벽을 관리하는 AI에는 안전 장치가 필요합니다. 이 서버는 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

v2.7.3

검증됨

pfSense Plus 25.11

v2.7.3

검증됨

pfSense CE 2.8.0

v2.6.0+

지원됨

pfSense Plus 24.11

v2.6.0+

지원됨

jaredhendrickson13의 pfSense REST API v2 패키지가 필요합니다.

인증

세 가지 방법 지원 (.env에서 구성):

방법

구성

용도

기본 인증

AUTH_METHOD=basic + 사용자명/비밀번호

빠른 설정, 로컬 사용자

API 키

AUTH_METHOD=api_key + 시스템 > REST API > 키에서 생성한 키

자동화, 서비스 계정

JWT

AUTH_METHOD=jwt + 사용자명/비밀번호

단기 토큰, 자동 갱신

배포 옵션

stdio (기본값) — Claude Desktop 및 Claude Code용:

python3 -m src.main

HTTP — 원격 접근 및 다중 클라이언트 설정용:

python3 -m src.main -t streamable-http --port 3000

Docker — 읽기 전용 파일 시스템이 적용된 강화된 컨테이너:

docker compose up

컨테이너 보안: 비루트 사용자 (mcp:1000), 읽기 전용 파일 시스템, 모든 기능 삭제, noexec tmpfs, no-new-privileges.

구성

변수

필수

기본값

설명

PFSENSE_URL

예

—

pfSense URL (예: https://192.168.1.1)

AUTH_METHOD

api_key

api_key, basic, 또는 jwt

PFSENSE_API_KEY

*

—

REST API 키

PFSENSE_USERNAME

*

—

pfSense 사용자명 (basic/jwt용)

PFSENSE_PASSWORD

*

—

pfSense 비밀번호 (basic/jwt용)

PFSENSE_VERSION

CE_2_8_0

CE_2_8_0, CE_2_8_1, CE_26_03, PLUS_24_11, PLUS_25_11

VERIFY_SSL

true

자체 서명 인증서의 경우 false

API_TIMEOUT

30

요청 시간 초과 (초)

MCP_READ_ONLY

false

읽기 전용 도구만 노출

변수

기본값

설명

ENABLE_HATEOAS

false

API 응답에서 HATEOAS 링크 활성화

LOG_LEVEL

INFO

DEBUG, INFO, WARNING, ERROR

MCP_TRANSPORT

stdio

stdio 또는 streamable-http

MCP_HOST

127.0.0.1

HTTP 모드용 바인딩 주소

MCP_PORT

3000

HTTP 모드용 포트

MCP_API_KEY

—

HTTP 전송용 Bearer 토큰 (필수)

MCP_ALLOWED_ORIGINS

localhost

쉼표로 구분된 허용된 오리진

MCP_AUDIT_LOG

—

감사 로그 파일 경로 (JSON 라인)

MCP_RATE_LIMIT_DELETE

10

60초당 최대 삭제 횟수

MCP_RATE_LIMIT_CREATE

20

60초당 최대 생성 횟수

MCP_RATE_LIMIT_CRITICAL

2

300초당 최대 중요 작업 횟수

MCP_ALLOWED_TOOLS

all

쉼표로 구분된 도구 허용 목록

MCP_ROLLBACK_BUFFER

50

메모리에 유지되는 롤백 항목

테스트

python3 -m pytest tests/ -v          # 308 tests
python3 -m pytest tests/ --cov=src   # with coverage

MCP 사양 준수

MCP 2025-11-25 (최신) 준수:

  • 327개 모든 도구에 ToolAnnotations 적용 (readOnlyHint, destructiveHint, idempotentHint)

  • serverInfo.version 및 instructions 제공

  • 오리진 헤더 검증 (필수 요구 사항)

  • 타이밍 안전 비교를 통한 Bearer 토큰 인증

  • 사양에 따른 기본 localhost 바인딩

  • 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을 확인하거나 다음을 수행하세요:

  1. 포크하고 기능 브랜치를 생성합니다.

  2. python3 -m pytest tests/ -v를 실행합니다.

  3. PR을 제출합니다.

아이디어: 실제 pfSense에 대한 통합 테스트, 추가 패키지 지원(Snort, Suricata), Ollama 로컬 LLM 브리지, 다중 인스턴스 관리.

라이선스

MIT

감사의 말

Available Tools

332 tools
analyze_blocked_trafficA
Read-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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_changesA
Idempotent

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_ipsA
Destructive

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_riskB
Read-only

Check the risk classification and guardrail requirements for a tool.

Inputs: tool_name (required). Returns: object

compare_config_revisionsA
Read-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_certificateA
Destructive

Delete an ACME certificate entry by ID. WARNING: This is irreversible.

Inputs: certificate_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_aliasA
Destructive

Delete an alias by ID. WARNING: This is irreversible.

Inputs: alias_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_auth_serverA
Destructive

Delete a pfSense authentication server by ID. WARNING: This is irreversible.

Inputs: auth_server_id (required), confirm, dry_run. Returns: object

delete_bind_zoneA
Destructive

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_certificateA
Destructive

Delete a certificate by ID. WARNING: This is irreversible.

Inputs: certificate_id (required), confirm, dry_run. Returns: object

delete_certificate_authorityA
Destructive

Delete a Certificate Authority by ID. WARNING: This is irreversible.

Inputs: ca_id (required), confirm, dry_run. Returns: object

delete_config_revisionA
Destructive

Delete a configuration history revision by ID. WARNING: This is irreversible.

Inputs: revision_id (required), confirm, dry_run. Returns: object

delete_crlA
Destructive

Delete a Certificate Revocation List (CRL) by ID. WARNING: This is irreversible.

Inputs: crl_id (required), confirm, dry_run. Returns: object

delete_cron_jobA
Destructive

Delete a cron job by ID. WARNING: This is irreversible.

Inputs: job_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_dhcp_address_poolA
Destructive

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_optionA
Destructive

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_mappingA
Destructive

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_listA
Destructive

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_overrideA
Destructive

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_overrideA
Destructive

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_overrideA
Destructive

Delete a DNS host override by ID. WARNING: This is irreversible.

Inputs: override_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_firewall_ruleA
Destructive

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_scheduleA
Destructive

Delete a firewall schedule by ID. WARNING: This is irreversible.

Inputs: schedule_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_firewall_stateA
Destructive

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_clientA
Destructive

Delete a FreeRADIUS client by ID. WARNING: This is irreversible.

Inputs: client_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_freeradius_userA
Destructive

Delete a FreeRADIUS user by ID. WARNING: This is irreversible.

Inputs: user_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_gatewayA
Destructive

Delete a routing gateway by ID. WARNING: This is irreversible.

Inputs: gateway_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_gateway_groupA
Destructive

Delete a gateway group by ID. WARNING: This is irreversible.

Inputs: group_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_groupA
Destructive

Delete a pfSense user group by ID. WARNING: This is irreversible.

Inputs: group_id (required), confirm, dry_run. Returns: object

delete_haproxy_backendA
Destructive

Delete an HAProxy backend by ID. WARNING: This is irreversible.

Inputs: backend_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_haproxy_frontendA
Destructive

Delete an HAProxy frontend by ID. WARNING: This is irreversible.

Inputs: frontend_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_interfaceA
Destructive

Delete (unassign) an interface by ID. WARNING: This is irreversible.

Inputs: interface_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_ipsec_phase1A
Destructive

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_encryptionA
Destructive

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_phase2A
Destructive

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_encryptionA
Destructive

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_mappingA
Destructive

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_mappingA
Destructive

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_forwardA
Destructive

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_clientA
Destructive

Delete an OpenVPN client instance by ID. WARNING: This is irreversible.

Inputs: client_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_openvpn_serverA
Destructive

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_rangeA
Destructive

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_queueA
Destructive

Delete a shaper queue by ID. WARNING: This is irreversible.

Inputs: queue_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_static_routeA
Destructive

Delete a static route by ID. WARNING: This is irreversible.

Inputs: route_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_system_tunableA
Destructive

Delete a system tunable by ID. WARNING: This is irreversible.

Inputs: tunable_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_traffic_limiterA
Destructive

Delete a traffic limiter by ID. WARNING: This is irreversible.

Inputs: limiter_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_traffic_shaperB
Destructive

Delete a traffic shaper by ID. WARNING: This is irreversible.

Inputs: shaper_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_userA
Destructive

Delete a pfSense local user by ID. WARNING: This is irreversible.

Inputs: user_id (required), confirm, dry_run. Returns: object

delete_virtual_ipA
Destructive

Delete a virtual IP by ID. WARNING: This is irreversible.

Inputs: vip_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_vlanA
Destructive

Delete a VLAN by ID. WARNING: This is irreversible.

Inputs: vlan_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_wireguard_peerA
Destructive

Delete a WireGuard peer by ID. WARNING: This is irreversible.

Inputs: peer_id (required), confirm, dry_run, apply_immediately. Returns: object

delete_wireguard_tunnelA
Destructive

Delete a WireGuard tunnel by ID. WARNING: This is irreversible.

Inputs: tunnel_id (required), confirm, dry_run, apply_immediately. Returns: object

diagnose_blocked_trafficA
Read-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_connectivityA
Read-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_issuesA
Read-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_resolutionA
Read-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_availabilityA
Read-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_issuesA
Read-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_healthA
Read-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_statusA
Read-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_hateoasA
DestructiveIdempotent

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_clientA
Destructive

Disconnect an active OpenVPN client connection. WARNING: This will terminate the client session.

Inputs: connection_id (required), confirm, dry_run. Returns: object

enable_hateoasA
DestructiveIdempotent

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_rulesA
Read-only

Find all firewall rules that block or reject traffic

Inputs: interface. Returns: object

find_interfaces_by_statusB
Read-only

Find interfaces by their current status

Inputs: status (required). Returns: object

find_object_by_fieldA
Read-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

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_settingsA
Read-only

Get the current ACME package settings

Inputs: no named parameters. Returns: object

get_api_capabilitiesB
Read-only

Get comprehensive API capabilities and configuration

Inputs: no named parameters. Returns: object

get_arp_tableA
Read-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_interfacesA
Read-only

Get a list of available (unassigned) network interfaces

Inputs: no named parameters. Returns: object

get_bind_settingsA
Read-only

Get the current BIND DNS server settings

Inputs: no named parameters. Returns: object

get_carp_statusA
Read-only

Get the current CARP (Common Address Redundancy Protocol) status

Inputs: no named parameters. Returns: object

get_config_historyB
Read-only

Get configuration history revisions with pagination

Inputs: page, sort_by, page_size. Returns: object

get_config_revisionA
Read-only

Get a specific configuration history revision by ID

Inputs: revision_id (required). Returns: object

get_default_gatewayA
Read-only

Get the current default gateway settings (IPv4 and IPv6)

Inputs: no named parameters. Returns: object

get_dhcp_relay_settingsA
Read-only

Get the DHCP relay settings

Inputs: no named parameters. Returns: object

get_dhcp_server_configA
Read-only

Get DHCP server configuration including pool ranges, lease times, etc.

Inputs: page, interface, page_size. Returns: object

get_dns_resolver_settingsA
Read-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_settingsB
Read-only

Get the email notification settings

Inputs: no named parameters. Returns: object

get_firewall_advanced_settingsA
Read-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_logA
Read-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_sizeA
Read-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_statusA
Read-only

Get real-time gateway status including latency, packet loss, and online/offline state

Inputs: no named parameters. Returns: object

get_guardrail_statusA
Read-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_settingsA
Read-only

Get the current HAProxy service settings

Inputs: no named parameters. Returns: object

get_ipsec_child_sa_statusA
Read-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_statusA
Read-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_fileA
Read-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_settingsA
Read-only

Get the system log settings

Inputs: no named parameters. Returns: object

get_nat_outbound_modeA
Read-only

Get the current outbound NAT mode (automatic, hybrid, advanced, or disabled)

Inputs: no named parameters. Returns: object

get_ntp_settingsB
Read-only

Get the NTP service settings

Inputs: no named parameters. Returns: object

get_openvpn_client_statusA
Read-only

Get the status of all OpenVPN clients

Inputs: no named parameters. Returns: object

get_openvpn_server_statusA
Read-only

Get the status of all OpenVPN servers

Inputs: no named parameters. Returns: object

get_openvpn_statusA
Read-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_rulesA
Read-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_tableA
Read-only

Get the contents of a specific pf firewall table

Inputs: name (required). Returns: object

get_ssh_settingsA
Read-only

Get the SSH service settings

Inputs: no named parameters. Returns: object

get_system_consoleB
Read-only

Get the system console settings

Inputs: no named parameters. Returns: object

get_system_dnsA
Read-only

Get the current system DNS server configuration

Inputs: no named parameters. Returns: object

get_system_health_reportA
Read-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_hostnameA
Read-only

Get the current system hostname and domain

Inputs: no named parameters. Returns: object

get_system_timezoneA
Read-only

Get the current system timezone setting

Inputs: no named parameters. Returns: object

get_system_versionB
Read-only

Get the pfSense system version information

Inputs: no named parameters. Returns: object

get_webgui_settingsA
Read-only

Get the WebGUI settings (protocol, port, certificates, etc.)

Inputs: no named parameters. Returns: object

get_wireguard_settingsA
Read-only

Get the current WireGuard service settings

Inputs: no named parameters. Returns: object

halt_systemA
Destructive

Halt (shut down) the pfSense system. WARNING: This will power off the system.

Inputs: confirm, dry_run. Returns: object

issue_acme_certificateA
Idempotent

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_addressesA
Idempotent

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_csoA
Destructive

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_ruleA
Idempotent

Move a firewall rule to a new position in the rule order

Inputs: rule_id (required), new_position (required), apply_immediately. Returns: object

reboot_systemA
Destructive

Reboot the pfSense system. WARNING: This will cause a service interruption.

Inputs: confirm, dry_run. Returns: object

refresh_object_idsA
Read-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_keyA
Idempotent

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_certificateA
Idempotent

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_diagnosticA
Read-only

Run a ping diagnostic from the pfSense firewall

Inputs: host (required), count. Returns: object

search_acme_account_keysA
Read-only

Search ACME account keys with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_acme_certificate_domainsA
Read-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_certificatesA
Read-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_aliasesB
Read-only

Search aliases with advanced filtering options

Inputs: page, sort_by, page_size, alias_type, +2 more. Returns: object

search_audit_trailA
Read-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_serversA
Read-only

Search pfSense authentication servers (LDAP, RADIUS) with optional filtering

Inputs: page, sort_by, page_size, search_term. Returns: object

search_bind_access_listsB
Read-only

Search BIND access control lists

Inputs: page, sort_by, page_size, search_term. Returns: object

search_bind_zone_recordsA
Read-only

Search DNS records within a BIND zone

Inputs: parent_id (required), page, sort_by, page_size, +2 more. Returns: object

search_bind_zonesA
Read-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_authoritiesA
Read-only

Search Certificate Authorities (CAs) configured on pfSense

Inputs: page, page_size, search_term. Returns: object

search_certificatesB
Read-only

Search certificates configured on pfSense with optional filtering

Inputs: page, page_size, search_term. Returns: object

search_crlsA
Read-only

Search Certificate Revocation Lists (CRLs) configured on pfSense

Inputs: page, page_size, search_term. Returns: object

search_cron_jobsA
Read-only

Search cron jobs with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_dhcp_address_poolsA
Read-only

Search DHCP server address pools with filtering and pagination

Inputs: page, sort_by, page_size, parent_id. Returns: object

search_dhcp_custom_optionsA
Read-only

Search DHCP server custom options with filtering and pagination

Inputs: page, sort_by, page_size, parent_id. Returns: object

search_dhcp_leasesA
Read-only

Search DHCP leases with advanced filtering

Inputs: page, state, sort_by, hostname, +4 more. Returns: object

search_dhcp_static_mappingsB
Read-only

Search DHCP static mappings (reservations) with filtering

Inputs: page, sort_by, hostname, interface, +3 more. Returns: object

search_dns_access_listsA
Read-only

Search DNS Resolver access lists with pagination

Inputs: page, sort_by, page_size. Returns: object

search_dns_domain_overridesA
Read-only

Search DNS domain overrides with filtering and pagination

Inputs: ip, page, descr, domain, +2 more. Returns: object

search_dns_forwarder_host_override_aliasesA
Read-only

Search aliases for a DNS Forwarder host override

Inputs: parent_id (required), page, sort_by, page_size. Returns: object

search_dns_forwarder_host_overridesB
Read-only

Search DNS Forwarder host overrides with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_dns_host_override_aliasesA
Read-only

Search aliases for a specific DNS host override

Inputs: parent_id (required), page, sort_by, page_size. Returns: object

search_dns_host_overridesB
Read-only

Search DNS host overrides with filtering and pagination

Inputs: host, page, domain, sort_by, +2 more. Returns: object

search_firewall_rulesB
Read-only

Search firewall rules with advanced filtering and pagination.

Inputs: page, sort_by, disabled, interface, +5 more. Returns: object

search_firewall_schedulesB
Read-only

Search firewall schedules with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_firewall_statesA
Read-only

Search firewall states (active connections) with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_freeradius_clientsA
Read-only

Search FreeRADIUS clients (NAS devices) with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_freeradius_usersA
Read-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_groupsA
Read-only

Search gateway groups with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_gatewaysA
Read-only

Search routing gateways with filtering and pagination

Inputs: page, sort_by, protocol, interface, +2 more. Returns: object

search_groupsA
Read-only

Search pfSense user groups with optional filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_haproxy_backendsA
Read-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_serversC
Read-only

Search servers within an HAProxy backend

Inputs: parent_id (required), page, sort_by, page_size, +1 more. Returns: object

search_haproxy_filesA
Read-only

Search HAProxy files (certificates, error pages, Lua scripts, etc.)

Inputs: page, sort_by, page_size, search_term. Returns: object

search_haproxy_frontend_addressesA
Read-only

List the bind addresses configured on an HAProxy frontend

Inputs: parent_id (required), page, page_size. Returns: object

search_haproxy_frontend_certificatesA
Read-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_frontendsB
Read-only

Search HAProxy frontends with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_installed_packagesA
Read-only

Search installed packages with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_interface_bridgesA
Read-only

Search interface bridges with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_interface_configsA
Read-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_groupsA
Read-only

Search interface groups with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_interfacesB
Read-only

Search and filter network interfaces with advanced options

Inputs: page, sort_by, page_size, search_term, +1 more. Returns: object

search_ipsec_phase1_encryptionsA
Read-only

Search IPsec Phase 1 encryption algorithm entries with filtering and pagination

Inputs: page, sort_by, page_size, parent_id. Returns: object

search_ipsec_phase1sA
Read-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_encryptionsA
Read-only

Search IPsec Phase 2 encryption entries with filtering and pagination

Inputs: page, sort_by, page_size, parent_id. Returns: object

search_ipsec_phase2sA
Read-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_ipA
Read-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_mappingsA
Read-only

Search 1:1 NAT mappings with filtering and pagination

Inputs: page, sort_by, interface, page_size, +1 more. Returns: object

search_nat_outbound_mappingsA
Read-only

Search outbound NAT mappings with filtering and pagination

Inputs: page, sort_by, interface, page_size, +1 more. Returns: object

search_nat_port_forwardsA
Read-only

Search NAT port forwarding rules with filtering and pagination

Inputs: page, sort_by, protocol, interface, +3 more. Returns: object

search_ntp_time_serversB
Read-only

Search NTP time servers with pagination

Inputs: page, sort_by, page_size. Returns: object

search_openvpn_client_export_configsB
Read-only

Search available OpenVPN client export configurations

Inputs: page, sort_by, page_size, server_id. Returns: object

search_openvpn_clientsA
Read-only

Search OpenVPN client instances with filtering and pagination.

Inputs: page, sort_by, protocol, interface, +3 more. Returns: object

search_openvpn_csosA
Read-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_connectionsB
Read-only

Search active OpenVPN server connections

Inputs: page, sort_by, page_size, server_id. Returns: object

search_openvpn_server_routesA
Read-only

Search OpenVPN server routing table entries

Inputs: page, sort_by, page_size, server_id. Returns: object

search_openvpn_serversA
Read-only

Search OpenVPN server instances with filtering and pagination.

Inputs: mode, page, sort_by, protocol, +3 more. Returns: object

search_pf_tablesB
Read-only

Search pf firewall tables with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_schedule_time_rangesA
Read-only

Search time ranges within a firewall schedule

Inputs: parent_id (required), page, sort_by, page_size, +1 more. Returns: object

search_servicesB
Read-only

Search and filter system services

Inputs: search_term, status_filter. Returns: object

search_service_watchdogsA
Read-only

Search service watchdogs with pagination

Inputs: page, sort_by, page_size. Returns: object

search_shaper_queuesA
Read-only

Search traffic shaper queues with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_static_routesA
Read-only

Search static routes with filtering and pagination

Inputs: page, gateway, sort_by, page_size, +1 more. Returns: object

search_system_tunablesA
Read-only

Search system tunables (sysctl values) with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_traffic_limitersB
Read-only

Search traffic limiters (dummynet pipes) with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_traffic_shapersA
Read-only

Search traffic shapers with filtering and pagination

Inputs: page, sort_by, interface, page_size, +1 more. Returns: object

search_usersA
Read-only

Search pfSense local users with optional filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_virtual_ipsA
Read-only

Search virtual IPs with filtering and pagination

Inputs: page, sort_by, interface, page_size, +2 more. Returns: object

search_vlansA
Read-only

Search VLANs with filtering and pagination

Inputs: page, sort_by, page_size, search_term. Returns: object

search_wireguard_peer_allowed_ipsA
Read-only

Search WireGuard peer allowed IPs with filtering and pagination

Inputs: page, peer_id, sort_by, page_size. Returns: object

search_wireguard_peersA
Read-only

Search WireGuard peers with filtering and pagination

Inputs: tun, page, sort_by, page_size, +1 more. Returns: object

search_wireguard_tunnel_addressesB
Read-only

Search WireGuard tunnel addresses with filtering and pagination

Inputs: page, sort_by, page_size, parent_id. Returns: object

search_wireguard_tunnelsA
Read-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_statusA
Read-only

Get current system status including CPU, memory, disk usage, and version info

Inputs: no named parameters. Returns: object

test_enhanced_connectionB
Read-only

Test enhanced API connection with feature validation

Inputs: no named parameters. Returns: object

update_acme_certificateA
Idempotent

Update an existing ACME certificate entry by ID

Inputs: certificate_id (required), name, descr, dnssleep, +4 more. Returns: object

update_aliasC
Idempotent

Update an existing alias by ID

Inputs: alias_id (required), name, details, addresses, +3 more. Returns: object

update_auth_serverA
Idempotent

Update an existing authentication server by ID

Inputs: auth_server_id (required), host, name, port, +15 more. Returns: object

update_bind_settingsB
Idempotent

Update BIND DNS server settings

Inputs: enable, listen_on, rate_limit, log_severity, +3 more. Returns: object

update_bind_zoneA
Idempotent

Update an existing BIND DNS zone by ID

Inputs: zone_id (required), name, type, descr, +1 more. Returns: object

update_carp_maintenanceB
Idempotent

Update CARP maintenance mode settings

Inputs: enable, maintenance_mode, apply_immediately. Returns: object

update_certificateA
Idempotent

Update an existing certificate by ID (idempotent)

Inputs: certificate_id (required), prv, cert, descr. Returns: object

update_certificate_authorityA
Idempotent

Update an existing Certificate Authority by ID (idempotent)

Inputs: ca_id (required), prv, cert, descr. Returns: object

update_crlB
Idempotent

Update a Certificate Revocation List (CRL) by ID

Inputs: crl_id (required), descr, lifetime. Returns: object

update_default_gatewayB
Idempotent

Update the default gateway settings

Inputs: defaultgw4, defaultgw6, apply_immediately. Returns: object

update_dhcp_address_poolA
Idempotent

Update an existing DHCP address pool by ID

Inputs: pool_id (required), descr, range_to, range_from, +1 more. Returns: object

update_dhcp_backendA
Idempotent

Update the DHCP server backend (ISC DHCP vs Kea)

Inputs: dhcpbackend (required), apply_immediately. Returns: object

update_dhcp_custom_optionB
Idempotent

Update an existing DHCP custom option by ID

Inputs: option_id (required), type, value, number, +1 more. Returns: object

update_dhcp_relay_settingsB
Idempotent

Update the DHCP relay settings

Inputs: enable, server, interface, agentoption, +1 more. Returns: object

update_dhcp_server_configC
Idempotent

Update DHCP server configuration (pool range, lease times, etc.)

Inputs: interface (required), domain, enable, gateway, +6 more. Returns: object

update_dhcp_static_mappingA
Idempotent

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_listB
Idempotent

Update an existing DNS Resolver access list

Inputs: access_list_id (required), descr, aclname, aclaction, +1 more. Returns: object

update_dns_domain_overrideA
Idempotent

Update an existing DNS domain override by ID

Inputs: override_id (required), ip, descr, domain, +2 more. Returns: object

update_dns_forwarder_host_overrideB
Idempotent

Update an existing DNS Forwarder host override by ID

Inputs: override_id (required), ip, host, descr, +2 more. Returns: object

update_dns_host_overrideB
Idempotent

Update an existing DNS host override by ID

Inputs: override_id (required), ip, host, descr, +3 more. Returns: object

update_dns_resolver_settingsC
Idempotent

Update DNS Resolver (Unbound) settings

Inputs: dnssec, enable, forwarding, register_dhcp, +4 more. Returns: object

update_email_notification_settingsC
Idempotent

Update the email notification settings

Inputs: ssl, port, timeout, disabled, +8 more. Returns: object

update_firewall_advanced_settingsC
Idempotent

Update firewall advanced settings

Inputs: disablescrub, maximumfrags, optimization, disablefilter, +5 more. Returns: object

update_firewall_ruleA
Idempotent

Update an existing firewall rule by ID

Inputs: rule_id (required), source, disabled, protocol, +10 more. Returns: object

update_firewall_scheduleB
Idempotent

Update an existing firewall schedule by ID

Inputs: schedule_id (required), name, descr, schedlabel, +1 more. Returns: object

update_firewall_state_sizeA
Idempotent

Update the firewall state table size

Inputs: maximumstates, defaultstatesize, apply_immediately. Returns: object

update_freeradius_clientB
Idempotent

Update an existing FreeRADIUS client by ID

Inputs: client_id (required), ip, descr, secret, +2 more. Returns: object

update_freeradius_userA
Idempotent

Update an existing FreeRADIUS user by ID

Inputs: user_id (required), ip, descr, password, +2 more. Returns: object

update_gatewayA
Idempotent

Update an existing routing gateway by ID

Inputs: gateway_id (required), name, descr, weight, +6 more. Returns: object

update_gateway_groupC
Idempotent

Update an existing gateway group by ID

Inputs: group_id (required), name, descr, trigger, +2 more. Returns: object

update_groupA
Idempotent

Update an existing pfSense user group by ID

Inputs: group_id (required), name, priv, descr, +2 more. Returns: object

update_haproxy_backendA
Idempotent

Update an existing HAProxy backend by ID

Inputs: backend_id (required), mode, name, descr, +3 more. Returns: object

update_haproxy_frontendA
Idempotent

Update an existing HAProxy frontend by ID

Inputs: frontend_id (required), name, type, descr, +6 more. Returns: object

update_haproxy_settingsC
Idempotent

Update HAProxy service settings

Inputs: enable, maxconn, nbthread, hard_stop_after, +3 more. Returns: object

update_interfaceB
Idempotent

Update an existing interface by ID

Inputs: interface_id (required), descr, enable, ipaddr, +6 more. Returns: object

update_ipsec_phase1A
Idempotent

Update an existing IPsec Phase 1 (IKE) entry by ID

Inputs: phase1_id (required), descr, iketype, disabled, +11 more. Returns: object

update_ipsec_phase2A
Idempotent

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_encryptionB
Idempotent

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_settingsA
Idempotent

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_mappingB
Idempotent

Update an existing 1:1 NAT mapping by ID

Inputs: mapping_id (required), type, descr, source, +5 more. Returns: object

update_nat_outbound_mappingB
Idempotent

Update an existing outbound NAT mapping by ID

Inputs: mapping_id (required), descr, source, target, +10 more. Returns: object

update_nat_outbound_modeC
Idempotent

Update the outbound NAT mode

Inputs: mode (required), apply_immediately. Returns: object

update_nat_port_forwardA
Idempotent

Update an existing NAT port forwarding rule by ID

Inputs: port_forward_id (required), source, target, disabled, +8 more. Returns: object

update_ntp_settingsC
Idempotent

Update the NTP service settings

Inputs: descr, enable, orphan, interface, +1 more. Returns: object

update_openvpn_clientA
Idempotent

Update an existing OpenVPN client instance by ID.

Inputs: client_id (required), ca, tls, cert, +19 more. Returns: object

update_openvpn_serverB
Idempotent

Update an existing OpenVPN server instance by ID.

Inputs: server_id (required), ca, tls, cert, +22 more. Returns: object

update_schedule_time_rangeA
Idempotent

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_queueB
Idempotent

Update an existing shaper queue by ID

Inputs: queue_id (required), name, descr, qlimit, +5 more. Returns: object

update_ssh_settingsB
Idempotent

Update the SSH service settings

Inputs: port, enable, sshdkeyonly, apply_immediately. Returns: object

update_static_routeB
Idempotent

Update an existing static route by ID

Inputs: route_id (required), descr, gateway, network, +2 more. Returns: object

update_system_consoleB
Idempotent

Update the system console settings

Inputs: serialspeed, primaryconsole, secondaryconsole, apply_immediately, +1 more. Returns: object

update_system_dnsC
Idempotent

Update system DNS server settings

Inputs: dnsserver, dnslocalhost, apply_immediately. Returns: object

update_system_hostnameB
Idempotent

Update the system hostname and/or domain

Inputs: domain, hostname, apply_immediately. Returns: object

update_system_timezoneC
Idempotent

Update the system timezone

Inputs: timezone_name (required), apply_immediately. Returns: object

update_system_tunableB
Idempotent

Update an existing system tunable by ID

Inputs: tunable_id (required), descr, value, tunable, +1 more. Returns: object

update_traffic_limiterC
Idempotent

Update an existing traffic limiter by ID

Inputs: limiter_id (required), aqm, mask, name, +7 more. Returns: object

update_traffic_shaperB
Idempotent

Update an existing traffic shaper by ID

Inputs: shaper_id (required), descr, enabled, bandwidth, +4 more. Returns: object

update_userA
Idempotent

Update an existing pfSense local user by ID

Inputs: user_id (required), name, priv, descr, +5 more. Returns: object

update_virtual_ipB
Idempotent

Update an existing virtual IP by ID

Inputs: vip_id (required), mode, type, vhid, +8 more. Returns: object

update_vlanA
Idempotent

Update an existing VLAN by ID

Inputs: vlan_id (required), pcp, tag, descr, +2 more. Returns: object

update_webgui_settingsC
Idempotent

Update the WebGUI settings

Inputs: port, protocol, ssl_certref, max_processes, +5 more. Returns: object

update_wireguard_peerB
Idempotent

Update an existing WireGuard peer by ID

Inputs: peer_id (required), tun, port, descr, +6 more. Returns: object

update_wireguard_settingsC
Idempotent

Update WireGuard service settings

Inputs: enable, keep_conf, interface_group, resolve_interval, +1 more. Returns: object

update_wireguard_tunnelA
Idempotent

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

    C2.9/5.0

    Scored across 332 tools

    Disambiguation2/5

    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.

    Naming Consistency3/5

    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.

    Tool Count1/5

    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.

    Completeness3/5

    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

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      B
      maintenance
      A server that enables managing OPNSense firewalls through natural language interactions with Claude Desktop, supporting VLAN management, firewall rules configuration, and network interface queries.
      64
      116 npm
      99
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      A 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.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      1
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables 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.
      -