sophos-firewall-mcp
Model Context Protocol (MCP) server for Sophos Firewall (SFOS) appliances with fastembed semantic tool routing and IBM ContextForge Gateway support.
Install / Use
claude mcp add jelmervdm -- npx -y github:jelmervdm/sophos-firewall-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of sophos-firewall-mcp
sophos-firewall-mcp scores 81/100 on our quality scale, 99th of 197 Security skills we index.
Its MCP Server is 9.1 KB long, well organised into 18 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 31 days ago, so sophos-firewall-mcp is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
sophos-firewall-mcp compared with similar skills
All 4 of these similar skills score higher than sophos-firewall-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| sophos-firewall-mcp (this skill)by jelmervdm | 81 | 3 | 31d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 85.2k | 9d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.7k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.2k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install sophos-firewall-mcp?
- Run
claude mcp add jelmervdm -- npx -y github:jelmervdm/sophos-firewall-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does sophos-firewall-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is sophos-firewall-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is sophos-firewall-mcp still maintained?
- The repository was last updated 31 days ago, so sophos-firewall-mcp is actively maintained.
Skill content
View source on GitHubSophos Firewall MCP Server (sophos-firewall-mcp)
An asynchronous Model Context Protocol (MCP) server for Sophos Firewall (SFOS), enabling AI assistants (such as Antigravity IDE, Claude Desktop, VS Code, and Cursor) to manage, audit, and troubleshoot Sophos Firewall network security infrastructure.
🌟 Key Features
- Async XML API Integration: Built on
httpx.AsyncClientfor high-throughput, non-blocking IO with Sophos SFOS XML API endpoints (/webconsole/APIController). - 7 Comprehensive Tool Domains (28 Tools):
- System & Status: System version, serial number, uptime, service operational state, and network interface configurations.
- Firewall Rules: Security policies listing, creation, status toggling, and rule deletion.
- Host & Network Objects: IP host definitions, network subnets, IP host groups, and FQDN objects.
- Services: Custom TCP/UDP service objects, port ranges, and service groups.
- NAT Rules: SNAT and DNAT port-forwarding rule inspection.
- User Management: Local user account configuration and live user session monitoring.
- VPN Management: IPsec site-to-site tunnels and SSL VPN remote access policies.
- FastMCP Resources: Read-only system state via URIs (
sophos://system/info,sophos://interfaces,sophos://services/status). - Guided Prompts: Contextual security audits (
audit_firewall_rules) and traffic troubleshooting (troubleshoot_connectivity). - Semantic Tool Router: FastEmbed text embedding router for intelligent tool selection (
USE_ROUTER=true). - Tier A+ Quality Score: 100% parameter descriptions, full
ToolAnnotationssafety metadata, and 100% test coverage.
🏆 Tool Definition Quality Score (TDQS)
This server is audited against the Tool Definition Quality Score (TDQS) framework to guarantee optimal function calling, type safety, and runtime safety for LLMs.
---------------- SCORECARD METRICS ----------------
Tools Evaluated : 39
Behavioral Annotations : 39 / 39 (100.0%)
100% Parameter Descriptions : 39 / 39 (100.0%)
Usage Guidelines (Docstrings): 39 / 39 (100.0%)
Overall TDQS Score : 5.00 / 5.00
TDQS Quality Tier : Tier A+
========================================================
- Behavioral Annotations (
ToolAnnotations): 100% of tools specifyreadOnlyHint,destructiveHint, andidempotentHintmetadata. - Parameter Descriptions (
Annotated[..., Field(...)]): Every parameter includes explicit typing and human-readable descriptions. - Usage Guidelines: Standardized docstrings detailing exact trigger conditions ("Use when...").
⚙️ Sophos Firewall API Prerequisites
Before connecting sophos-firewall-mcp to your Sophos Firewall (SFOS) appliance, ensure the XML API is enabled and your client IP is whitelisted:
- Log in to Web Admin Console: Open
https://<SOPHOS_HOST>:4444in your browser. - Enable API Access:
- Navigate to System > Administration > API Access (or API Configuration).
- Check the API Configuration toggle/checkbox to enable the API service.
- Whitelist Client IP Address:
- Under Allowed IP Addresses, click Add and specify the IP address of the machine or container host running
sophos-firewall-mcp. - Note: Sophos Firewall rejects API requests from any IP address not explicitly added to this whitelist.
- Under Allowed IP Addresses, click Add and specify the IP address of the machine or container host running
- Administrator Account:
- Ensure the configured user account (
SOPHOS_USERNAME) has active administrator privileges.
- Ensure the configured user account (
🔧 Environment Variables
| Variable | Description | Default |
| :--- | :--- | :--- |
| SOPHOS_HOST | Sophos Firewall IP address or FQDN | 172.16.16.16 |
| SOPHOS_PORT | Web Console API port | 4444 |
| SOPHOS_USERNAME | API Administrator Username | admin |
| SOPHOS_PASSWORD | API Administrator Password | (Required) |
| SOPHOS_API_VERSION | Sophos XML API Version (e.g., 2200.1 for SFOS v22) | 2200.1 |
| SOPHOS_VERIFY_SSL | Verify SSL/TLS certificates (set false for self-signed certs) | false |
| SOPHOS_TIMEOUT | API request timeout in seconds | 30.0 |
| USE_ROUTER | Set true to enable FastEmbed semantic tool routing | false |
🛠 Client Integration
Add the configuration snippet matching your environment to your MCP settings file (e.g. .vscode/mcp.json or mcp_config.json in Antigravity IDE, Claude Desktop, or VS Code).
Option 1: Docker / Podman Drop-in Container Deployment
Podman is fully supported as a rootless drop-in replacement for Docker on Fedora/RHEL/Linux:
{
"mcpServers": {
"sophos-firewall": {
"command": "podman",
"args": [
"run",
"-i",
"--rm",
"--pull=newer",
"-e", "SOPHOS_HOST",
"-e", "SOPHOS_PORT",
"-e", "SOPHOS_USERNAME",
"-e", "SOPHOS_PASSWORD",
"-e", "SOPHOS_API_VERSION",
"-e", "SOPHOS_VERIFY_SSL",
"-e", "USE_ROUTER",
"ghcr.io/jelmervdm/sophos-firewall-mcp:latest"
],
"env": {
"SOPHOS_HOST": "172.16.16.16",
"SOPHOS_PORT": "4444",
"SOPHOS_USERNAME": "admin",
"SOPHOS_PASSWORD": "your_secure_password_here",
"SOPHOS_API_VERSION": "2200.1",
"SOPHOS_VERIFY_SSL": "false",
"USE_ROUTER": "false"
}
}
}
}
Tip for Docker vs Podman: Replace
"command": "podman"with"command": "docker"if using standard Docker. Ensure-iis retained and never use-t(TTY mode), as TTY mode injects carriage returns (\r\n) that disrupt stdio JSON-RPC protocol parsing.
Option 2: Local Python Execution (without PyPI)
Via uv (Local Workspace Directory):
{
"mcpServers": {
"sophos-firewall": {
"command": "uv",
"args": [
"--directory",
"/path/to/sophos-firewall-mcp",
"run",
"sophos-firewall-mcp-server"
],
"env": {
"SOPHOS_HOST": "172.16.16.16",
"SOPHOS_PORT": "4444",
"SOPHOS_USERNAME": "admin",
"SOPHOS_PASSWORD": "your_secure_password_here",
"SOPHOS_VERIFY_SSL": "false"
}
}
}
}
Via python (Editable Install pip install -e .):
{
"mcpServers": {
"sophos-firewall": {
"command": "python",
"args": ["-m", "sophos_firewall_mcp.server"],
"env": {
"SOPHOS_HOST": "172.16.16.16",
"SOPHOS_PORT": "4444",
"SOPHOS_USERNAME": "admin",
"SOPHOS_PASSWORD": "your_secure_password_here",
"SOPHOS_VERIFY_SSL": "false"
}
}
}
}
Via uvx directly from GitHub Repository:
{
"mcpServers": {
"sophos-firewall": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jelmervdm/sophos-firewall-mcp.git",
"sophos-firewall-mcp-server"
],
"env": {
"SOPHOS_HOST": "172.16.16.16",
"SOPHOS_PORT": "4444",
"SOPHOS_USERNAME": "admin",
"SOPHOS_PASSWORD": "your_secure_password_here",
"SOPHOS_VERIFY_SSL": "false"
}
}
}
}
🧠 Semantic Tool Routing
When connecting sophos-firewall-mcp to AI models with constrained context windows, set USE_ROUTER=true (or TOOL_ROUTING=true).
When enabled:
- The server exposes only 2 meta-tools:
route_toolsandcall_routed_tool. route_toolsuses local CPU embeddings (fastembedwithBAAI/bge-small-en-v1.5) to search for matching firewall tools in 5-10ms.call_routed_tooldynamically invokes the matching tool with parameters.
Note on Router Dependencies: Semantic routing requires optional dependencies (
fastembedandnumpy).
- Container (Docker/Podman): Included automatically in official images (
ghcr.io/jelmervdm/sophos-firewall-mcp:latest).- Local Python (
pip): Install with extras:pip install -e ".[router]"orpip install "sophos-firewall-mcp-server[router]".uvWorkspace: Runuv sync --extra router.uvxdirectly from Git: Pass--with "fastembed>=0.4.0" --with "numpy>=1.26.0". IfUSE_ROUTER=trueis set without installingfastembed, the server will log a warning and gracefully fall back to standard tool mode instead of failing initialization.
🧪 Testing & Quality Assurance
Run the comprehensive test suite, linting, mypy type checks, and TDQS audit:
# Evaluate Tool Definition Quality Score (TDQS)
uv run python scripts/check_tdqs.py
# Run pytest unit test suite (39 tests)
uv run pytest -v
# Code style and syntax linting
uv run flake8 src tests scripts
# Static type verification
uv run mypy src
📄 License
Distributed under the Apache 2.0 License. See LICENSE for details.
Related Skills
Agent-Reach
85.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.2k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
