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ファイアウォールの管理には、Web UIのタブをクリックし、フィールド名を覚え、設定ミスで締め出されないことを祈る必要があります。このMCPサーバーを使えば、やりたいことを平易な英語で説明するだけで、AIがREST API呼び出しを処理し、入力を検証し、破壊的な操作を行う前に警告を表示します。

特徴:

  • すべての破壊的な操作には明示的な確認が必要であり、何が起こるかを正確に表示します

  • 削除/再起動のたびに自動的に設定をバックアップし、1行のコマンドでロールバック可能

  • レート制限により、AIの暴走ループがファイアウォールにルールを大量送信するのを防ぎます

  • 入力サニタイズにより、すべてのパラメータにおけるコマンドインジェクション、パストラバーサル、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を開いて以下のように尋ねてください:

  • "Show me all blocked traffic in the last hour" (過去1時間のブロックされたトラフィックをすべて表示して)

  • "What services are running?" (現在実行中のサービスは何?)

  • "Create a port forward for port 443 to 192.168.1.50" (ポート443から192.168.1.50へのポートフォワードを作成して)

  • "Run a full system health check" (システム全体のヘルスチェックを実行して)

何ができるか

pfSenseの主要なサブシステム全体で327個のツールが利用可能です:

ドメイン

ツール数

何ができるか

ファイアウォールルール

9

ルールの作成、更新、削除、並べ替え。IPの一括ブロック。コンパイル済みpfルールセットの表示。

エイリアス

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

ステータス、設定、診断、設定履歴、再起動、ping。

サービス

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パッケージ が必要です。

認証

3つのメソッドをサポート(.envで設定):

メソッド

設定

用途

Basic Auth

AUTH_METHOD=basic + ユーザー名/パスワード

クイックセットアップ、ローカルユーザー

API Key

AUTH_METHOD=api_key + システム > REST API > Keysのキー

自動化、サービスアカウント

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

コンテナのセキュリティ: 非rootユーザー (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 lines)

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 を提供

  • Originヘッダーの検証 (MUST要件)

  • タイミング攻撃耐性のある比較を用いたBearerトークン認証

  • 仕様SHOULDに従い、デフォルトで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.
      -