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