Opnsense
БесплатноНе проверенEnables interaction with OPNsense firewalls through MCP tools for managing firewall rules, interfaces, DHCP leases, and system monitoring.
Описание
Enables interaction with OPNsense firewalls through MCP tools for managing firewall rules, interfaces, DHCP leases, and system monitoring.
README
A Model Context Protocol (MCP) server for interacting with OPNsense firewalls. This server provides tools to manage firewall rules, view network interfaces, manage DHCP leases, and monitor system status.
Features
This MCP server exposes the following tools:
Firewall
list_firewall_rules: List firewall filter rules.add_firewall_rule: Add a new firewall rule (pass/block/reject, tcp/udp/any).toggle_firewall_rule: Enable or disable a firewall rule by UUID.delete_firewall_rule: Delete a firewall rule by UUID.
Interfaces
list_interfaces: List network interfaces with status and statistics.get_arp_table: Get the ARP table (IP-to-MAC mappings).
DHCP
list_dhcp_leases: List active and static DHCP leases.
System
get_system_info: Get system information (hostname, uptime, CPU, memory usage).get_firmware_status: Check for available firmware and package updates.get_system_log: Fetch recent system log entries.reboot_system: Reboot the OPNsense firewall.
Configuration
The server requires the following environment variables to authenticate with your OPNsense API:
OPNSENSE_HOST: The base URL of your OPNsense firewall (e.g.,https://192.168.1.1).OPNSENSE_API_KEY: Your OPNsense API key.OPNSENSE_API_SECRET: Your OPNsense API secret.OPNSENSE_VERIFY_SSL(optional): Set totrueto verify SSL certificates (defaults tofalsefor self-signed certificates).
Usage
Using with MCP CLI
You can run this server using the MCP CLI:
# Set your environment variables
export OPNSENSE_HOST="https://192.168.1.1"
export OPNSENSE_API_KEY="your-api-key"
export OPNSENSE_API_SECRET="your-api-secret"
# Run the server
mcp run server.py
Installation from Source
- Clone the repository:
git clone https://github.com/yourusername/opnsense-mcp.git
cd opnsense-mcp
- Install dependencies:
pip install .
- Run the server:
opnsense-mcp
Установка Opnsense
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/aesaganda/opnsense-mcpFAQ
Opnsense MCP бесплатный?
Да, Opnsense MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Opnsense?
Нет, Opnsense работает без API-ключей и переменных окружения.
Opnsense — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Opnsense в Claude Desktop, Claude Code или Cursor?
Открой Opnsense на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Opnsense with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
