Skip to main content
Glama
pfSense MCP Server

pfSense MCP Server

by gensecaihq

🛡️ pfSense MCP Server

Manage your pfSense firewall in plain English — from Claude Desktop, Claude Code, or any MCP client.

332 tools across every subsystem · wire-format verified against the pfSense REST API · safety guardrails on every change

Release CI MCP 2025-11-25 pfSense API v2.10.2 Python 3.11–3.13 Tests License: MIT PRs welcome


You:     Block all traffic from 203.0.113.5 on WAN
Claude:  ✓ created block rule  →  ✓ applied changes  →  rollback point: config revision 42

You:     Why can't 192.168.1.50 reach the internet?
Claude:  ran diagnostics → gateway WAN_DHCP is down, and a block rule on LAN matches this host

You:     Add a WireGuard peer for my laptop and show me the config
Claude:  ✓ created peer on tun_wg0  →  here's the client config to import

pfSense MCP Server connects Claude Desktop, Claude Code, and any other MCP client to your pfSense firewall. Ask questions, diagnose issues, and change configuration through conversation. Every destructive action needs explicit confirmation, and the server records the config revision it can be rolled back to.

Letting an AI change a production firewall is only safe if the details are right, and that's where the work went:

  • A contract-test layer checks every tool's request format against the pfSense REST API schema.

  • Every change goes through a multi-layer guardrail pipeline.

  • CI runs 661 tests on Python 3.11–3.13, plus an end-to-end MCP protocol test.

Latest release: v1.1.0 · Changelog

TIP

Jump to theQuick Start. Setup takes about two minutes with uvx, and you don't need to clone anything. If this project is useful to you, a ⭐ helps others find it.

Contents

Why this exists · Quick start · What you can do · Safety · Supported versions · Authentication · Deployment · Configuration · Testing · MCP compliance · Known limitations · Architecture · Contributing

Related MCP server: Firewalla MCP Server

Why This Exists

Managing a pfSense firewall means clicking through web UI tabs, remembering field names, and hoping you don't fat-finger a rule that locks you out. With this MCP server, you describe what you want in plain English and the AI handles the REST API calls, validates inputs, and warns you before anything destructive happens.

What makes it different:

  • Every destructive operation requires explicit confirmation and shows you exactly what will happen

  • The config revision is captured before every high-risk change. The response gives the revision ID to restore from Diagnostics › Backup & Restore › Config History in the webGUI, or warns explicitly if no revision could be captured.

  • Rate limits on every tool that changes configuration stop a runaway AI loop from flooding your firewall

  • Positive input validation (IP/port/MAC/CIDR) plus path-traversal/XSS screening, and secrets redacted from logs and API error responses

  • Wire-format verified against the pfSense REST API v2.10.2 schema by a contract-test layer, so tools send exactly what the API expects

Quick Start

Prerequisites:

IMPORTANT

This project isnot published on PyPI. A different, unrelated project uses the PyPI name pfsense-mcp-server, so never run pip install pfsense-mcp-server. Install from Git or from the release assets as shown below.

Option A: run without cloning (uvx):

uvx --from git+https://github.com/gensecaihq/pfsense-mcp-server@v1.1.0 pfsense-mcp-server

Option B: clone for development:

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

Connect to Claude Desktop. Add the server to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/

  • Windows: %APPDATA%\Claude\

Using the installed entry point (Option A):

{
  "mcpServers": {
    "pfsense": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/gensecaihq/pfsense-mcp-server@v1.1.0", "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_1",
        "PFSENSE_CA_FILE": "/path/to/pfsense-ca.pem"
      }
    }
  }
}

Or running from a clone (Option B):

{
  "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_1",
        "PFSENSE_CA_FILE": "/path/to/pfsense-ca.pem"
      }
    }
  }
}

Remove PFSENSE_CA_FILE if your pfSense certificate is signed by a public CA.

About the CA file. pfSense ships with a self-signed certificate from its own CA, and Python does not read your OS trust store, so verification fails out of the box. Export the CA at System > Cert. Manager > CAs (the export-certificate icon), save the PEM anywhere readable, and point PFSENSE_CA_FILE at it. A missing or unparseable file is a startup error, never a silent downgrade.

VERIFY_SSL=false also connects, and is fine for a throwaway lab. Understand what it costs: nothing authenticates the firewall, so anything that can intercept the connection can read the API key and act as the firewall. This tool changes firewall rules — treat that credential accordingly.

Start talking to your firewall. Open Claude Desktop and ask:

  • "Show me all blocked traffic in the last hour"

  • "What services are running?"

  • "Create a port forward for port 443 to 192.168.1.50"

  • "Run a full system health check"

What You Can Do

332 tools across every major pfSense subsystem:

Domain

Tools

What You Can Do

Firewall Rules

9

Create, update, delete, reorder rules. Bulk block IPs. View compiled pf ruleset.

Aliases

5

Manage host/network/port/URL aliases. Add and remove addresses.

NAT

16

Port forwards, outbound NAT, 1:1 NAT — full lifecycle management.

VPN

51

OpenVPN servers and clients, IPsec tunnels, WireGuard peers — CRUD, status, apply.

Routing

16

Gateways, gateway groups, static routes, default gateway management.

DNS

23

Unbound resolver and dnsmasq forwarder: host overrides, domain overrides, access lists.

DHCP

17

Leases, static mappings, address pools, custom options, server config.

Certificates

15

Certs, CAs, CRLs — generate, renew, export PKCS12.

Users

12

User accounts, groups, LDAP/RADIUS auth server config.

Interfaces

14

Interface config, VLANs, bridges, groups.

System

43

Status, settings, diagnostics, state table, config history, reboot, ping.

Services

14

Start/stop/restart services. NTP, cron, SSH, service watchdog.

Logs

4

Firewall log analysis with parsed IPv4/IPv6 filterlog data. Raw tail/grep reads of the dhcpd/filter/resolver/system/auth log files.

Traffic Shaping

12

Shapers, queues, and limiters for bandwidth management.

Schedules

8

Time-based firewall rule scheduling.

Virtual IPs

5

CARP, ProxyARP, and IP Alias management.

Troubleshooting

10

Diagnose connectivity, blocked traffic, VPN, DHCP, DNS, HA. Full health report.

Packages

49

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

Utility

9

HATEOAS navigation, object ID management, guardrail status.

Safety First

AI managing a production firewall needs guardrails. This server has 9 layers:

"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": "To undo this change, restore revision 42 manually in the pfSense webGUI: Diagnostics > Backup & Restore > Config History."
  }

All 201 tools that change configuration carry a guardrail, and a test fails the build if a new one ships without it.

  • Every change tool is rate-limited, audit-logged and checked against the allowlist.

  • High-risk tools (51): deletes, disconnects, reboot, halt and bulk block are also blocked until the caller passes confirm=True.

  • manage_* tools: these require confirm=True for their remove and delete actions.

  • Secrets: passwords, keys, PSKs, bind passwords and tokens are redacted in the audit log and in echoed API error responses.

confirm=True is a parameter the MCP client sends. It is not a separate human-approval step, so keep your client's tool-approval prompts on for destructive tools.

You can also:

  • Pass dry_run=True to preview any destructive operation without running it.

  • Pass verify_descr="Allow HTTPS" to check that you're changing or deleting the rule you expect. This guards against rule IDs shifting.

  • Set MCP_READ_ONLY=true to expose only the 131 read-only tools (search, get, diagnose).

  • Set MCP_ALLOWED_TOOLS=create_firewall_rule_advanced,delete_firewall_rule to permit only the listed write tools. Read tools stay available.

See SECURITY.md for the vulnerability-disclosure policy and deployment-hardening guidance.

Supported pfSense Versions

Version

REST API package

Status

pfSense CE 2.9.0

v2.10.2 (latest)

Supported

pfSense CE 2.8.1

v2.10.2 (latest)

Verified

pfSense Plus 26.07

v2.10.2 (latest)

Supported

pfSense Plus 26.03.1

v2.10.2 (latest)

Supported

pfSense Plus 26.03

v2.10.2 (latest)

Verified

pfSense Plus 25.11.1

v2.10.2 (latest)

Supported

pfSense Plus 25.11

v2.7.3 (legacy)

Verified

pfSense CE 2.8.0

v2.7.3 (legacy)

Supported

pfSense Plus 24.11

v2.7.3 (legacy)

Supported

Requires the pfSense REST API v2 package by jaredhendrickson13. Package v2.8.x+ ships builds only for CE 2.8.1 and Plus 25.11.1/26.03/26.03.1; CE 2.9.0 and Plus 26.07 need v2.10.1+; v2.7.3 is the last release with builds for CE 2.8.0 and Plus 24.11/25.11.

Security note: run REST API package v2.10.0+. It fixes a command-injection flaw in the interface-group endpoints (GHSA-w3w4-mvcc-vmgr) and adds core command auto-escaping; v2.9.0 fixed an earlier settings-sync privilege escalation (GHSA-8q8g-9f77-8g8g).

v2.10.0 also marks OpenVPNClient.auth_pass, User.ipsecpsk, and WireGuardPeer.presharedkey as sensitive, so the API no longer returns them by default. This server still sets them normally; if a workflow needs to read one back, add a sensitive-field override in the REST API settings.

Authentication

Three methods supported (configure in .env):

Method

Config

Best For

Basic Auth

AUTH_METHOD=basic + username/password

Quick setup, local users

API Key

AUTH_METHOD=api_key + key from System > REST API > Keys

Automation, service accounts

JWT

AUTH_METHOD=jwt + username/password

Short-lived tokens, obtained and renewed automatically (assumes pfSense's default 1-hour lifetime)

Deployment Options

stdio (default) — for Claude Desktop and Claude Code:

python3 -m src.main          # from a clone
pfsense-mcp-server           # via the installed console entry point (pip/uvx/pipx)

HTTP: for remote access and multi-client setups. It requires MCP_API_KEY, and the server refuses to start with an empty, placeholder or short token.

export MCP_API_KEY="$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')"
python3 -m src.main -t streamable-http --port 3000

The HTTP transport is plain HTTP. Put it behind a TLS-terminating reverse proxy before exposing it beyond localhost.

Docker: a hardened container running the HTTP transport.

cp .env.example .env        # set PFSENSE_URL, credentials, and MCP_API_KEY
docker compose up -d

The published port binds to 127.0.0.1 by default. Set MCP_BIND_ADDR=0.0.0.0 to expose it, but only behind TLS. For a private CA, put the PEM in ./certs/ and set PFSENSE_CA_FILE=/certs/<file>.pem.

Container security:

  • Runs as a non-root user (mcp:1000).

  • Read-only filesystem, a noexec tmpfs, and no-new-privileges.

  • All Linux capabilities dropped.

The health check probes an unauthenticated /health endpoint, because /mcp requires the bearer token.

Behind an MCP gateway — the HTTP transport is a spec-compliant Streamable HTTP endpoint with bearer-token auth, so it can be registered as an MCP-server target behind managed gateways such as AWS Bedrock AgentCore Gateway (use its API-key credential provider to supply the MCP_API_KEY bearer token, and add the gateway's origin to MCP_ALLOWED_ORIGINS). Such gateways add centralized OAuth/IAM in front and translate between protocol revisions, including 2026-07-28. No gateway is required — this is purely an option for environments that already run one.

Configuration

Variable

Required

Default

Description

PFSENSE_URL

Yes

—

pfSense URL (e.g., https://192.168.1.1)

AUTH_METHOD

api_key

api_key, basic, or jwt

PFSENSE_API_KEY

*

—

REST API key

PFSENSE_USERNAME

*

—

pfSense username (for basic/jwt)

PFSENSE_PASSWORD

*

—

pfSense password (for basic/jwt)

PFSENSE_VERSION

CE_2_8_1

Current: CE_2_8_1, CE_2_9_0, PLUS_25_11_1, PLUS_26_03, PLUS_26_03_1, PLUS_26_07. Legacy (still accepted): CE_2_8_0, PLUS_24_11, PLUS_25_11, CE_26_03

VERIFY_SSL

true

false disables certificate checking entirely — prefer PFSENSE_CA_FILE

PFSENSE_CA_FILE

—

PEM file for pfSense's private/self-signed CA, so verification stays on

API_TIMEOUT

30

Request timeout in seconds

MCP_READ_ONLY

false

Only expose read-only tools

MCP_ENABLE_LOG_FILES

true

Set false to remove get_log_file (raw /var/log/* reads via command sink)

Boolean settings accept true/false, 1/0, yes/no or on/off. Any other value stops the server at startup rather than guessing, so a typo can't turn off TLS verification.

Variable

Default

Description

ENABLE_HATEOAS

false

Enable HATEOAS links in API responses

LOG_LEVEL

INFO

DEBUG, INFO, WARNING, ERROR

MCP_TRANSPORT

stdio

stdio or streamable-http

MCP_HOST

127.0.0.1

Bind address for HTTP mode

MCP_PORT

3000

Port for HTTP mode

MCP_BIND_ADDR

127.0.0.1

Docker Compose only: host address the published port binds to

MCP_API_KEY

—

Bearer token for HTTP transport (required)

MCP_ALLOWED_ORIGINS

localhost

Comma-separated allowed origins

MCP_AUDIT_LOG

—

Path to audit log file (JSON lines)

MCP_RATE_LIMIT_DELETE

10

Max deletes per 60 seconds

MCP_RATE_LIMIT_CREATE

20

Max creates per 60 seconds

MCP_RATE_LIMIT_UPDATE

30

Max settings changes (update_*, apply_*, enable_*/disable_*) per 60 seconds

MCP_RATE_LIMIT_CRITICAL

2

Max critical ops per 300 seconds

MCP_ALLOWED_TOOLS

all

Comma-separated allowlist of write tools. Read tools are always available; get_log_file is controlled by MCP_ENABLE_LOG_FILES

MCP_ROLLBACK_BUFFER

50

Rollback entries kept in memory

RESPONSE_FORMAT

json

gcf re-encodes tool results as Graph Compact Format for fewer tokens (requires the gcf extra)

Response Encoding (GCF)

By default the tools return JSON. Setting RESPONSE_FORMAT=gcf returns each eligible tool result as a single Graph Compact Format block instead: the record arrays these read tools produce (firewall rules, aliases, DHCP leases, certificates, DNS records) have their repeated field names factored into one header, cutting the token cost when the result crosses the LLM boundary. Results that are not a single JSON body — or that GCF would not shrink — stay JSON (see below).

Install the optional extra into the server's environment and set the variable:

pip install '.[gcf]'        # from a clone of this repo
export RESPONSE_FORMAT=gcf

# or, with uvx (the extra must go into uvx's isolated tool environment):
RESPONSE_FORMAT=gcf uvx --with 'gcf-python[fastmcp]==2.7.1' \
  --from git+https://github.com/gensecaihq/pfsense-mcp-server pfsense-mcp-server

It is opt-in and conservative — GCF is used only when it is both smaller than the JSON and a verified lossless round-trip, otherwise the JSON is kept, so no record is ever dropped or altered. structuredContent is preserved, so output-schema validation and non-model clients keep receiving JSON. If the gcf extra is not installed, the server logs a warning and continues with JSON.

Token savings on representative 30-record results (o200k tokens, lossless; reproduce with python benchmarks/gcf_benchmark.py):

Result

JSON

GCF

Savings

Firewall rules

1,995

936

53.1%

Aliases

1,065

594

44.2%

DHCP leases

2,314

1,606

30.6%

Testing

python3 -m pytest tests/ -v          # 661 tests
python3 -m pytest tests/ --cov=src   # with coverage (~50%)

The suite includes a wire-contract layer (tests/contract/) that asserts every tool's payload against the real pfSense REST API v2.10.2 schema (distilled from the upstream OpenAPI spec), so a wrong field name or type is a failing test rather than a silent misconfiguration. CI runs on Python 3.11/3.12/3.13 with pip-audit dependency scanning.

In addition to the in-process suite, an end-to-end protocol smoke test drives the server over the real MCP wire protocol using the official MCP Inspector CLI. It covers both transports and runs in CI on every push:

make test-e2e            # or: ./scripts/inspector_smoke.sh  (needs node/npx, jq)

It verifies the initialize handshake, the 332-tool listing with annotations, the guardrail confirm-gate over the wire, read-only mode, and HTTP bearer-auth plus Origin enforcement — no pfSense instance required.

MCP Specification Compliance

Compliant with MCP 2025-11-25 — the newest revision with stable SDK support — and negotiates down to older revisions per connection, so existing clients keep working:

  • ToolAnnotations on all 332 tools (readOnlyHint, destructiveHint, idempotentHint)

  • serverInfo.version and instructions provided

  • Origin header validation (MUST requirement)

  • Bearer token auth with timing-safe comparison

  • Default bind to localhost per spec SHOULD

  • stdio and Streamable HTTP transports

The stateless 2026-07-28 revision

MCP 2026-07-28 removes the initialize handshake and protocol-level sessions, so every request stands on its own. SDK support ships in fastmcp 4, which is now stable (4.0.5).

Status: this release pins fastmcp 3.x (MCP 2025-11-25). A non-blocking CI job runs the full test suite and the MCP Inspector smoke test against fastmcp 4.0.x, and both pass unchanged. The server holds no session state by design, and it uses none of the features that 2026-07-28 deprecates (Roots, Sampling, MCP Logging).

The pin will move to fastmcp 4 once the smoke test also covers sessionless requests, which skip initialize. fastmcp 4 negotiates the protocol version per connection, so clients that use the handshake will keep working.

Project Structure

src/
  main.py              Entry point (transports, read-only filter, key validation)
  server.py            FastMCP instance + API client
  client.py            pfSense REST API v2 HTTP client (retry/backoff, pooling)
  guardrails.py        Risk classification, confirm gate, rate limit, audit, redaction
  helpers.py           Validation, parsing, pagination, safety guards
  models.py            Data models
  middleware.py        HTTP bearer auth + Origin validation + /health
  tools/               34 tool modules (332 tools)
scripts/
  generate_contract.py Regenerate the wire contract from an OpenAPI spec
  generate_token.py    Generate a secure MCP_API_KEY bearer token
  inspector_smoke.sh   End-to-end MCP protocol smoke test (MCP Inspector CLI)
tests/                 661 tests (incl. tests/contract/ wire-contract suite)

See ARCHITECTURE.md for the request lifecycle, guardrail model, and wire-contract layer; SECURITY.md for disclosure and hardening; and RELEASE_AUDIT.md for the audit and roadmap.

Known Limitations

These are tracked for the next release:

  • About 11 update/delete tools for nested objects don't send the parent_id the REST API requires, so those calls fail (#79). Affected objects are DHCP address pools and custom options, traffic-shaper queues, IPsec encryption entries and schedule time ranges.

  • create_ipsec_phase1 and create_ipsec_phase2 don't yet send the nested encryption settings the API requires. Fixing them needs validation against a live pfSense.

  • The REST API has no config-restore endpoint, so rolling back a change is a manual step in the webGUI. Use the revision ID that guarded tools return.

  • Each server process manages a single pfSense instance.

Contributing

We need real-world testing across diverse pfSense environments. See CONTRIBUTING or:

  1. Fork and create a feature branch

  2. Run python3 -m pytest tests/ -v

  3. Submit a PR

Ideas: integration tests against real pfSense, additional package support (Snort, Suricata), Ollama local LLM bridge, multi-instance management.

License

MIT

Acknowledgments

  • jaredhendrickson13 / pfrest — pfSense REST API v2 package

  • JeremiahChurch — modular rewrite (PR #5), log endpoint OOM safeguards (PR #6), DHCP static-mapping search fix (PR #91)

  • shawnpetersen — API v2 endpoint discovery (PR #3)

  • aemitic — DELETE-body fix (PR #9), firewall ipprotocol for IPv6/dual-stack (PR #10), logconfigchanges (PR #11)

  • pbhorjee — live-status diagnostics fix (PR #21), firewall-log freshness + exact-IP filtering (PR #23), redirect credential guard (PR #72), 503 write-retry fix (PR #74), transport-error context (PR #75), alias edit locking (PR #76), retry jitter and budget (PR #77), private-CA report (#73)

  • DrewKolstad — interface addressing, null-safe search filters, WireGuard allowed IPs, DHCP lease times (PR #78)

  • msarg44 — get_pf_table / get_config_revision fix (PR #80)

  • cbrown350 — get_log_file raw log reads (PR #90)

  • blackwell-systems — optional GCF response encoding (PR #87)

  • bholland-bh — pfSense CE 2.9.0 / Plus 26.07 support request (#88)

  • hossamnagy — resilient startup on transient preflight failure (PR #14)

  • bill-mccormick-dg — independent DELETE-body fix (PR #16)

  • w1ld3r — DELETE and remote-syslog bug reports (#12, #13)

  • tvlc — WebGUI port type-mismatch report (#7)

  • renanwilliam — uvx/pipx packaging request (#8)

  • Netgate — pfSense

  • FastMCP — MCP framework

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

    ActivitySlowing
    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
      131 npm
      98
      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.
      -