SuperAPIAI Directory

opnsense-mcp

github.com · AI developer platforms

OPNsense firewall operations via API: query ARP, DHCP, firewall rules, logs, interfaces, system status and packet captures.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

OPNsense MCP Server is an MCP (Model Context Protocol) server for OPNsense firewall operations. It exposes query and operation capabilities externally through the OPNsense API, allowing MCP-enabled clients (such as the Claude Code CLI) to complete inspection tasks in natural language that previously required SSH login to the firewall to execute.

Purpose

The original intent of the project was to reduce the hassle of frequently logging in to the firewall via SSH to check logs or capture ARP data. Users can ask Claude directly, for example:

  • "What is happening on the network right now?"
  • "Show the latest firewall block records"
  • "Tell me the information about that host"
  • "Capture packets from suspicious traffic"

Claude will execute firewall queries through MCP and provide analysis and context in a single interaction. This tool is suitable for homelabs and commercial deployments.

Main capabilities

According to the official description, the server provides the following functions (for the complete reference, see docs/REFERENCE/FUNCTION_REFERENCE.md):

Discovery

  • arp
  • dhcp
  • lldp

Monitoring

  • system
  • get_logs
  • packet_capture

Firewall rules

  • fw_rules
  • mkfw_rule
  • set_fw_rule
  • toggle_fw_rule
  • rmfw_rule

Interfaces

  • interface_list

Usage

The project supports two deployment modes:

STDIO (local): Best suited for clients such as Cursor, Claude Code, and Continue that run the server process directly. The MCP client needs to be configured to start mcp_start.sh; for the complete guide, see docs/GETTING_STARTED.md.

SSE (centralized): Best suited for providing a shared, long-running service over HTTPS. Deploy using the Linux installer (Podman + quadlet + Caddy TLS); for client connection methods and deployment documentation, see docs/CENTRALIZED_DEPLOY_SPEC.md and deploy/README.md.

Recent updates (June 2026)

The official list includes five recently merged PRs; for details, see docs/FEATURES_UPDATE.md:

  • Streamable HTTP transport: The native FastMCP server supports stdio, sse, and streamable-http (MCP specification 2025-03-26), deployed via deploy/install.sh.
  • DHCP client_id (DUID) support: mk_dhcp_host and move_dhcp_host can accept an optional DUID for stateful DHCPv6 matching.
  • Semantic version image tags: Image tags are generated from the pyproject.toml version + git short SHA (e.g., 1.0.0-dev.a1b2c3d) or a release tag (e.g., 1.0.0).
  • Container image repository: Only pinned tags are allowed; :latest is rejected. OPNSENSE_MCP_IMAGE_REPO can be set, or use --build-local to build locally.
  • install.sh read-only fix: Resolved a Bash readonly conflict between install.sh and lib.sh.

Use cases

  • Homelab network troubleshooting: query firewall logs from the terminal and get Claude's analysis of the current situation.
  • Security operations: automate incident triage, for example, "analyze the block records from the last hour."
  • Infrastructure automation: write MCP-aware scripts that dynamically query firewall status.
  • DevOps troubleshooting: quickly check VLAN/interface status without an SSH session.

Limitations and notes

  • The project is open source under the MIT license.
  • The official statement mentions that "feedback from the first 10 users will be incorporated into the tool," and encourages submitting bugs or ideas via issue or discussion.
  • Regarding code review, scripts/risk_map.py ranks source files by defect likelihood based on git history (churn and fix density), helping prioritize review of high-risk files; it does not find bugs, only locates where defects are concentrated. CI runs this script on every PR and also simultaneously Insights workflow provides complexity reports (radon) and security pattern checks (bandit); this workflow does not block merges; gate thresholds will be introduced once the data is reliable.
  • Other feature details, platform support, and pricing and fee information are not yet provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools