Skip to main content

Home network health checks — run by you or your AI

Project description

netglance

Python 3.11+ License: MIT Tests: 1,670 CI Docs

Home network health checks — run by you or your AI.

A Python toolkit for network discovery, monitoring, and security checks. Use it three ways:

  • CLI — 30+ commands for scanning, diagnostics, and monitoring straight from your terminal
  • Library — import netglance modules into your own Python scripts and automations
  • AI agent — runs as an MCP server so Claude, Copilot, Cursor, or any MCP-compatible assistant can diagnose your network for you

Covers device discovery (ARP/mDNS), connectivity (ping, speed, jitter, bufferbloat, traceroute), security (DNS leaks, ARP spoofing, TLS, rogue DHCP, firewall), WiFi analysis, port scanning, IoT fingerprinting, and continuous monitoring with alerts.

Read the docs

Install

# with uv (recommended)
uv tool install netglance

# or with pip
pip install netglance

Quick start

# Find devices on your network
sudo netglance discover

# Run a full health check
netglance report

# Check DNS for leaks
netglance dns

# Measure speed
netglance speed

Development

git clone https://github.com/timainge/netglance.git
cd netglance
uv pip install -e ".[dev]"
uv run pytest

# Docs site (local preview)
uv run --group docs mkdocs serve

AI Agent Mode (MCP)

netglance works as an MCP server — any AI assistant can run network diagnostics on your behalf. Ask Claude "what's on my network?" and it calls the right tools, interprets the results, and explains what to do.

# Start the MCP server
netglance mcp serve

# Or via the dedicated entry point
netglance-mcp

Claude Desktop (macOS)

File: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "netglance": {
      "command": "uvx",
      "args": ["netglance-mcp"]
    }
  }
}

Claude Code

claude mcp add netglance -- uvx netglance-mcp

Cursor

File: ~/.cursor/mcp.json

{
  "mcpServers": {
    "netglance": {
      "command": "uvx",
      "args": ["netglance-mcp"]
    }
  }
}

VS Code (Copilot)

File: .vscode/mcp.json

{
  "servers": {
    "netglance": {
      "type": "stdio",
      "command": "uvx",
      "args": ["netglance-mcp"]
    }
  }
}

Windsurf

File: ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "netglance": {
      "command": "uvx",
      "args": ["netglance-mcp"]
    }
  }
}

JetBrains

Settings → Tools → AI Assistant → MCP → Add stdio server:

  • Command: uvx
  • Arguments: netglance-mcp

The MCP server exposes network diagnostic tools including device discovery, connectivity checks, DNS health, port scanning, WiFi analysis, speed tests, and more. See netglance mcp tools for the full list.

Some tools (ARP scanning, packet capture) require elevated privileges. Run with sudo if needed.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netglance-0.2.2.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netglance-0.2.2-py3-none-any.whl (179.4 kB view details)

Uploaded Python 3

File details

Details for the file netglance-0.2.2.tar.gz.

File metadata

  • Download URL: netglance-0.2.2.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for netglance-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f771c0f9ffcd1cdb83831acdf9074646a8f3a6652cab4ba8dca51e2b7c8cd45a
MD5 06a526d722b28a043553610240a8c12a
BLAKE2b-256 0b23ebe42e7b786b83e1962925666bbb247a25385f70824c94bd7e98fd32e529

See more details on using hashes here.

Provenance

The following attestation bundles were made for netglance-0.2.2.tar.gz:

Publisher: publish.yml on timainge/netglance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netglance-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: netglance-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 179.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for netglance-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e83d40248aebe9cff35320159839ac6bcd164f4697893c6edea0462bf4c292c9
MD5 01523f7915172a42b541227bf8affca1
BLAKE2b-256 a3e556ff1b89ec204e8cdd2deead8bdde4e24175c667a7dc1c02b35375115a9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for netglance-0.2.2-py3-none-any.whl:

Publisher: publish.yml on timainge/netglance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page