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.1.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.1-py3-none-any.whl (179.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netglance-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0425a924573f5e85e7c033769566a7a9dde38e48f3c7262809fe16cfb2a1bea1
MD5 21ed4f5abf7ec8084610f7477cd866ba
BLAKE2b-256 3d859bf39659f1f5a43372e7498da04f2661ac2b658b127935a980878d4a10f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for netglance-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: netglance-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59c4bccb9393054524b05508f651a7be00e267f46c76ac595fb110e6e15854e9
MD5 fdd08a2d5db93523f3feef62e9f068c7
BLAKE2b-256 06b37a81aa844a6b7c6752391980a1ed6461c50e335bfdfb3f8dbe0f6eb3bc7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for netglance-0.2.1-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