OPNsense MCP Server

OPNsense MCP Server

opnsense-mcp•bycoreyhines

An MCP server that lets MCP clients query and manage an OPNsense firewall, covering ARP, DHCP, logs, firewall rules, interfaces, system status and packet capture.

License: MIT License•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Provides discovery and monitoring tools including arp, dhcp, lldp, system, get_logs and packet_capture.
  • •Offers firewall rule management tools for listing, creating, updating, toggling and removing rules.
  • •Can run locally over STDIO or as a centralized streamable HTTP service at /mcp secured with a bearer key.

BEST FOR

  • •Homelab network troubleshooting by querying firewall logs and getting analysis.
  • •Security operations incident triage, such as analyzing recent firewall blocks.
  • •DevOps troubleshooting with quick VLAN and interface status checks without SSH sessions.

ABOUT OPNSENSE-MCP

OPNsense MCP Server is cataloged as an MCP server attributed to coreyhines. An MCP server that lets MCP clients query and manage an OPNsense firewall, covering ARP, DHCP, logs, firewall rules, interfaces, system status and packet capture. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for OPNsense MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Why was this MCP server built?

The author built it to avoid SSH-ing into the firewall to check logs or gather ARP data, letting Claude query the firewall via MCP instead.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 089a4c9d21d3 · 采集于 2026-11-13 13:13:38 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

opnsense-mcp

OPNsense MCP Server

opnsense-mcp MCP server opnsense-mcp MCP server

MCP server for OPNsense firewall operations (ARP, DHCP, logs, rules, interfaces, system status, packet capture).

Use one of two deployment modes:

  • STDIO (local): best for Cursor/Claude Code/Continue running the server process directly.
  • Streamable HTTP (centralized): best for a shared, long-lived service over HTTPS, at /mcp.

Demo

Query your firewall with Claude Code CLI. Live example with real network data:

opnsense-mcp demo

Why This Exists

Built this because SSH'ing into the firewall to check logs or grab ARP data got old fast. Now you can ask Claude:

  • "What's happening on the network right now?"
  • "Show me the latest firewall blocks"
  • "Tell me about that host"
  • "Capture packets from the suspicious traffic"

Claude handles the firewall query via MCP and gives you analysis + context in one shot. Works on homelab or business deployments equally well.

Quick Start

1) Local setup (required for both modes)

uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
cp examples/.env.example ~/.env

Edit ~/.env:

OPNSENSE_API_KEY=your_api_key
OPNSENSE_API_SECRET=your_api_secret
OPNSENSE_FIREWALL_HOST=your.firewall.host
# HTTP transports only; stdio ignores it. Generate with: openssl rand -hex 32
MCP_SECRET_KEY=

2) Choose mode

Mode A: STDIO (local IDE/client)

Configure your MCP client to launch mcp_start.sh:

{
  "mcpServers": {
    "opnsense-mcp": {
      "command": "/bin/bash",
      "args": ["/absolute/path/to/opnsense-mcp/mcp_start.sh"],
      "cwd": "/absolute/path/to/opnsense-mcp"
    }
  }
}

See full guide: docs/GETTING_STARTED.md.

Mode B: streamable HTTP (centralized service)

Run the Linux installer (Podman + quadlet + Caddy TLS):

sudo bash deploy/install.sh

Clients connect to:

https://<your-hostname>/mcp

The deployed container serves streamable HTTP only. There is no /sse endpoint and no /health route; both answer 404.

Every request must send Authorization: Bearer <MCP_SECRET_KEY>. The server refuses to start on an HTTP transport when the key is blank or a placeholder.

See deployment docs:

What Is Available

Primary tools:

  • 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

Full reference: docs/REFERENCE/FUNCTION_REFERENCE.md

What's New (June 2026)

Five PRs landed recently. See docs/FEATURES_UPDATE.md for full details and usage examples.

  • Streamable HTTP transport — native FastMCP server supports stdio and streamable-http (MCP spec 2025-03-26). deploy/install.sh deploys streamable HTTP at /mcp.
  • DHCP client_id (DUID) support — mk_dhcp_host and move_dhcp_host accept an optional DUID for stateful DHCPv6 matching.
  • Semver image tags — main builds are tagged as a prerelease of the next patch after the pyproject.toml version (1.0.1-dev.a1b2c3d after 1.0.0) or release tags (1.0.0).
  • Container registry — pinned tags only; :latest is rejected. Set OPNSENSE_MCP_IMAGE_REPO, or build locally with --build-local.
  • install.sh readonly fix — Bash readonly clash between install.sh and lib.sh resolved.

Use Cases

  • Homelab network troubleshooting — Query firewall logs from terminal, get Claude's take on what's happening
  • Security operations — Automate incident triage: "Analyze the last hour of blocks"
  • Infrastructure automation — Write MCP-aware scripts that query firewall state dynamically
  • DevOps troubleshooting — Quick VLAN/interface status checks without SSH sessions

Feedback

First 10 users get feedback incorporated into the tool. If you find bugs or have ideas, file an issue or discussion.

Where to look first when reviewing

scripts/risk_map.py ranks source files by defect likelihood from git history — churn times fix density — so a review reads the risky files first and can stop early. It finds no bugs; it finds where they concentrate.

python3 scripts/risk_map.py --top 15

CI runs it on every pull request alongside a complexity report (radon) and a security-pattern pass (bandit) in the advisory Insights workflow, which never blocks a merge. Thresholds that gate the build come later, once the numbers are trusted.

Documentation Map

License

This project is released under the MIT License.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for OPNsense MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/opnsense-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps