MCP Catalogs
首页opnsense-mcp-server screenshot

opnsense-mcp-server

by Pixelworlds·42·综合分 42

用于 OPNsense 防火墙管理的模块化 MCP 服务器,提供 88 个工具访问 2000+ 方法。

securityops-infradeveloper-tools
20
Forks
10
活跃 Issue
11 个月前
最近提交
2 天前
收录于

概述

这个 MCP 服务器充当 AI 助手与 OPNsense 防火墙之间的桥梁,通过模块化工具界面提供安全的 API 访问。它包含 88 个逻辑工具(每个模块一个),而非 2000+ 个单独工具,实现了完整的 API 覆盖,包括 752 个核心方法和 1271 个插件方法。服务器使用 TypeScript 构建,采用 @richard-stovall/opnsense-typescript-client 包实现类型安全,支持核心和插件模块。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 驱动的防火墙管理和配置
:自动化安全策略执行
:网络诊断和故障排除
:如何启用插件工具?
:遇到连接问题该怎么办?

什么时候选它

如果你正在管理 OPNsense 防火墙,并希望通过结构良好、类型安全的界面让 AI 助手帮助进行配置、监控和故障排除,请选择它。

什么时候不要选它

如果你需要直接访问 OPNsense 的 CLI(绕过 AI 助手),使用其他防火墙平台,或需要 OPNsense API 未暴露的功能,请不要选择它。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • core_manage

    Core system functions including backup, reboot, and firmware information

  • firewall_manage

    Firewall rules and aliases management

  • interfaces_manage

    Network interfaces configuration and management

  • diagnostics_manage

    System diagnostics including ARP table and activity logs

  • auth_manage

    Authentication for users and groups

  • firmware_manage

    Firmware update and management

  • openvpn_manage

    OpenVPN VPN instance management

  • ipsec_manage

    IPsec VPN tunnel and connection management

  • wireguard_manage

    WireGuard VPN server and client management

  • unbound_manage

    DNS resolver configuration and management

  • dhcpv4_manage

    DHCP server configuration and lease management

  • plugin_nginx_manage

    Nginx web server configuration management

可对比工具

opnsense-api-clientpf-mcp-servernetwork-automation-mcpfirewall-mcp

安装

安装

前置条件

  • Node.js 18 或更高版本
  • 启用了 API 访问的 OPNsense 防火墙
  • 来自 OPNsense 安装的 API 密钥和密钥

从 npm 安装

npm install -g @richard-stovall/opnsense-mcp-server

Claude Desktop 配置

将以下内容添加到您的 Claude Desktop 配置文件:

**macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json **Windows**: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "opnsense": {
      "command": "npx",
      "args": ["-y", "@richard-stovall/opnsense-mcp-server"],
      "env": {
        "OPNSENSE_URL": "https://192.168.1.1",
        "OPNSENSE_API_KEY": "your-api-key",
        "OPNSENSE_API_SECRET": "your-api-secret",
        "OPNSENSE_VERIFY_SSL": "false"
      }
    }
  }
}

FAQ

如何启用插件工具?
在参数中添加 '--plugins' 或在环境变量中设置 'INCLUDE_PLUGINS': 'true'。
遇到连接问题该怎么办?
验证 OPNsense API 已启用,检查 API 密钥权限,确保 IP/主机名可访问,对于自签名证书考虑使用 '--no-verify-ssl'。

opnsense-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。