npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@teamnetwork-nz/sonicwall-api-mcp-server

v0.2.0

Published

MCP server for SonicWall NSA appliance API — logs, CRUD objects, rules, NAT, GeoIP

Readme

SonicWall NSA MCP Server

A Model Context Protocol server that provides full read/write access to SonicWall NSA series appliances via the SonicOS REST API.

Features

  • Log analysis — retrieve, filter, and search event logs, traffic logs, and threat/IPS events
  • Address objects & groups — CRUD for IPv4, IPv6, FQDN, and MAC address objects and their groups
  • Service objects & groups — CRUD for protocol/port service definitions
  • Access rules — create, update, enable/disable, and delete firewall access rules (IPv4 & IPv6)
  • NAT policies — full CRUD for inbound/outbound NAT rules
  • Security policies — CRUD for zone-based security policies
  • GeoIP filtering — manage GeoIP country-block policies and assign them to access rules
  • Config management — view and commit (or discard) staged changes

Supports SonicOS 6.5.x, 7.x, and 8.x with automatic version detection.

Quick Start

Install

Via npm / npx (recommended — no Python setup required):

# Run directly with npx (requires uv: https://docs.astral.sh/uv/)
npx @teamnetwork-nz/sonicwall-api-mcp-server

# Or install globally
npm install -g @teamnetwork-nz/sonicwall-api-mcp-server
sonicwall-mcp

Via pip / uv (Python):

pip install sonicwall-mcp-server
# or:
uv pip install sonicwall-mcp-server

Note: The npm package is a thin launcher. It requires uv to be installed and uses uvx sonicwall-mcp-server under the hood. No Python environment setup is needed beyond installing uv.

Configure

Pass credentials as environment variables (no config file needed):

SONICWALL_HOST=192.168.168.168
SONICWALL_USERNAME=admin
SONICWALL_PASSWORD=your_password
SONICWALL_SSL_VERIFY=false   # most appliances use self-signed certs

Copy .env.example to .env for local development.

Claude Desktop / Claude Code Integration

Add to your MCP config (claude_desktop_config.json or .claude/settings.json):

Using npx (easiest):

{
  "mcpServers": {
    "sonicwall": {
      "command": "npx",
      "args": ["-y", "@teamnetwork-nz/sonicwall-api-mcp-server"],
      "env": {
        "SONICWALL_HOST": "192.168.168.168",
        "SONICWALL_USERNAME": "admin",
        "SONICWALL_PASSWORD": "your_password",
        "SONICWALL_SSL_VERIFY": "false"
      }
    }
  }
}

Using uvx directly:

{
  "mcpServers": {
    "sonicwall": {
      "command": "uvx",
      "args": ["sonicwall-mcp-server"],
      "env": {
        "SONICWALL_HOST": "192.168.168.168",
        "SONICWALL_USERNAME": "admin",
        "SONICWALL_PASSWORD": "your_password",
        "SONICWALL_SSL_VERIFY": "false"
      }
    }
  }
}

Using the installed Python CLI:

{
  "mcpServers": {
    "sonicwall": {
      "command": "sonicwall-mcp",
      "env": {
        "SONICWALL_HOST": "192.168.168.168",
        "SONICWALL_USERNAME": "admin",
        "SONICWALL_PASSWORD": "your_password",
        "SONICWALL_SSL_VERIFY": "false"
      }
    }
  }
}

Development

uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest tests/ -v                          # unit tests (no appliance needed)
mcp dev src/sonicwall_mcp/server.py       # interactive MCP inspector

Agent guidance

The server supplies MCP instructions that are automatically delivered to the calling agent at session start. These cover:

  • Staged configuration — always commit_config after a related set of changes, or discard_config to abandon
  • Datetime handling — log timestamps use the appliance's local timezone; no UTC conversion needed
  • Log tool selection — when to use get_event_logs vs get_traffic_logs vs get_threat_logs vs search_logs
  • Object and rule management — recommended workflow for creating address objects and firewall rules
  • Concurrent sessions — SonicOS limit of one active API session per appliance

No special prompting is required — the agent receives these guidelines automatically.

Important Notes

  • SonicOS allows only one concurrent API session per appliance. Ensure no other admin sessions are active when using this server.
  • All configuration changes (create/update/delete) are staged and do not take effect until you call commit_config. Use discard_config to abandon staged changes.
  • Enable the SonicOS API in the appliance web UI: DEVICE > Settings > Administration > SonicOS API.