Queries and changes OPNsense firewall state through MCP over local STDIO or centralized SSE.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Opnsense MCP.
coreyhines/opnsense-mcp MCP server connects an MCP client to an OPNsense firewall through its API. It gives an agent access to network and firewall state that would otherwise require navigating the firewall interface or logging in over SSH. The project is suited to homelab troubleshooting, security triage, infrastructure automation, and DevOps checks across VLANs or interfaces.
The server includes read-oriented discovery and monitoring operations, along with firewall rule operations. It can retrieve ARP, DHCP, and LLDP information; inspect logs and system status; list interfaces; capture packets; and create, modify, enable or disable, and remove firewall rules. The README also documents DHCP host creation and movement with optional DHCPv6 DUID support.
The MCP process uses OPNsense API credentials and a configured firewall hostname. An MCP client sends tool requests to the server, which performs the corresponding operation against OPNsense and returns the result for the client or agent to interpret.
Two deployment styles are documented. STDIO runs the server locally as a child process and is intended for clients such as Cursor, Claude Code, or Continue. SSE runs a centralized, long-lived service that clients access through an HTTPS endpoint. The native FastMCP server also supports streamable HTTP in addition to STDIO and SSE.
Local setup uses a Python virtual environment. The documented sequence creates a virtual environment with uv, activates it, installs dependencies from requirements.txt, and copies the example environment file to ~/.env. Configuration requires these values:
OPNSENSE_API_KEY for the OPNsense API keyOPNSENSE_API_SECRET for the OPNsense API secretOPNSENSE_FIREWALL_HOST for the firewall hostMCP_SECRET_KEY for the MCP serviceFor STDIO, configure the MCP client to launch the repository's mcp_start.sh script with Bash, using absolute paths for the script and working directory. For centralized SSE, the documented Linux installer uses Podman, quadlet, and Caddy TLS configuration. Clients connect to the resulting /sse endpoint on the configured hostname.
The documented primary tool groups are:
arp, dhcp, and lldpsystem, get_logs, and packet_capturefw_rules, mkfw_rule, set_fw_rule, toggle_fw_rule, and rmfw_ruleinterface_listThe firewall rule operations cover both inspection and mutation. Packet capture and log retrieval support investigations, while ARP, DHCP, LLDP, system, and interface queries provide current network context. The full function reference is maintained in the repository documentation.
coreyhines/opnsense-mcp MCP server requires access to an OPNsense API and the corresponding credentials; it is not a standalone firewall data source. The README provides deployment instructions for Linux-based centralized service installation and does not describe a hosted instance supplied by the project. The local configuration examples contain placeholders that must be replaced with the target firewall and locally chosen secret values.
The project documents Cursor, Claude Code, and Continue for direct STDIO use. It does not provide a specific Claude Desktop configuration in the supplied material. SSE deployment is intended for shared access and requires the additional service setup described by the project, rather than only launching the local MCP script.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/coreyhines-opnsense-mcp)<a href="https://allmcps.com/mcp/coreyhines-opnsense-mcp"><img src="https://allmcps.com/api/badge/coreyhines-opnsense-mcp?style=directory" alt="Opnsense MCP on AllMCPs" /></a>