opnsense-mcp
Enables interaction with OPNsense firewalls through MCP tools for managing firewall rules, interfaces, DHCP leases, and system monitoring.
README
OPNsense MCP Server
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.