Dev.to
5/12/2026

Talk to Your Firewall: Query OPNsense from tools like Claude Code with MCP
Short summary
opnsense-mcp is an MCP server that exposes your OPNsense firewall as queryable tools for Claude Code, eliminating terminal context-switching for network operations. Ask natural language questions—'Show DHCP leases for devices named desktop' or 'Blocks in the last 10 minutes?'—and get live firewall data formatted as readable results. The tool handles log filtering, ARP/DHCP correlation, and packet capture, letting network operators stay focused in their editor.
- •opnsense-mcp connects OPNsense firewalls to MCP-compatible editors like Claude Code
- •Query network state, firewall logs, DHCP leases via natural language—no terminal switching required
- •Open-source tool runs locally or as shared SSE endpoint for teams
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



