NetBox-backed network source-of-truth automation server for MCP coding agents
Project description
Argus server
Python MCP + FastAPI server. NetBox source-of-truth tools for coding agents and the Argus web dashboard. See the top-level README and docs/ARCHITECTURE.md.
Install
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
Configure
Copy .env.example to .env (or export the vars):
NETBOX_URL=https://netbox.lan
NETBOX_TOKEN=<netbox api token>
NETBOX_VERIFY_SSL=true
HTTP_HOST=0.0.0.0
HTTP_PORT=8080
# Optional — all default to off; see .env.example for the full list.
HTTP_TOKEN= # bearer token for /api + /webhooks (unset = open)
SCHEDULE_INTERVAL=0 # scheduled drift loop: seconds between cycles (0 = off)
SCHEDULE_COLLECTOR=unifi # collector the scheduled drift cycle runs
ALERT_WEBHOOK_URL= # Slack-compatible webhook; alerts on detected drift
If unset, tools return a clear "NetBox not configured" message instead of erroring.
Run
argus-mcp # MCP server over stdio (for Claude Code etc.)
argus-http # FastAPI HTTP server on :8080 (for the web app + webhooks)
The HTTP server also:
- receives NetBox webhooks at
POST /webhooks/netbox— it classifies and structured-logs each change event (observability only; no discovery or reconcile is triggered yet). - runs an optional scheduled drift loop — set
SCHEDULE_INTERVAL(seconds) and Argus discovers + diffs on that interval, read-only (neverapply). The latest outcome is served atGET /api/drift/status, and settingALERT_WEBHOOK_URLPOSTs a Slack-compatible alert when drift is found. - gates
/api+/webhooksbehind a bearer token whenHTTP_TOKENis set (/healthstays public); unset leaves the API open for local/dev use.
Examples
Enable API auth, then call /api/* with the bearer token:
export HTTP_TOKEN="$(openssl rand -hex 32)"
argus-http
curl -H "Authorization: Bearer $HTTP_TOKEN" http://localhost:8080/api/devices
Enable scheduled drift detection (every 5 min) with an optional Slack alert, then read the latest outcome:
export SCHEDULE_INTERVAL=300 # 0 = off
export SCHEDULE_COLLECTOR=unifi
export ALERT_WEBHOOK_URL="https://hooks.slack.com/services/…" # optional
argus-http
curl http://localhost:8080/api/drift/status
Install from PyPI (the published distribution is argus-netbox; the import package stays argus
and the console scripts are argus-mcp / argus-http):
pip install argus-netbox
argus-http # or argus-mcp
Container images are published to GHCR — see the top-level README's Published artifacts.
Develop
ruff check src tests
mypy src
pytest -v # offline — NetBox is mocked
Tools
| Tool | Kind | Status |
|---|---|---|
list_devices, get_device, list_prefixes, list_ip_addresses, search |
read | real (needs NetBox) |
list_collectors, discovery_scan, network_topology |
discovery | UniFi real — devices + clients + uplink topology (needs UNIFI_*); SNMP/LLDP real for non-UniFi gear (needs SNMP_TARGETS + argus-netbox[discovery]) |
drift_report, reconcile_apply |
reconcile | real — diffs and (on confirm) persists, auto-creating supporting NetBox objects |
health |
meta | real |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file argus_netbox-0.1.5.tar.gz.
File metadata
- Download URL: argus_netbox-0.1.5.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27ee6960e3352b58e4851e63625fc7b2298aa0510447ea39367dc2ffa994a2ef
|
|
| MD5 |
b9b4ef1dbc1dc3259eeb18e5f376befc
|
|
| BLAKE2b-256 |
f215e68313bd30d363f0f06d06436edc918cf063f195a67ac50b2e39bba2af9e
|
Provenance
The following attestation bundles were made for argus_netbox-0.1.5.tar.gz:
Publisher:
release.yml on freed-dev-llc/argus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argus_netbox-0.1.5.tar.gz -
Subject digest:
27ee6960e3352b58e4851e63625fc7b2298aa0510447ea39367dc2ffa994a2ef - Sigstore transparency entry: 1902397781
- Sigstore integration time:
-
Permalink:
freed-dev-llc/argus@cc8260b9392f98d6952c7b4c9d4d1c408bc076a7 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/freed-dev-llc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cc8260b9392f98d6952c7b4c9d4d1c408bc076a7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file argus_netbox-0.1.5-py3-none-any.whl.
File metadata
- Download URL: argus_netbox-0.1.5-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b2dec8bfdc2fc817e18033705ee287eb7e87451ff94eb0d6677c229575e2617
|
|
| MD5 |
af7d13cc6d408120e8569f28f7f59398
|
|
| BLAKE2b-256 |
3ae4eb4f188856fdb6f99c8c6fe5c8a8fee3fbc582265671d5f094ab85918d82
|
Provenance
The following attestation bundles were made for argus_netbox-0.1.5-py3-none-any.whl:
Publisher:
release.yml on freed-dev-llc/argus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argus_netbox-0.1.5-py3-none-any.whl -
Subject digest:
8b2dec8bfdc2fc817e18033705ee287eb7e87451ff94eb0d6677c229575e2617 - Sigstore transparency entry: 1902397918
- Sigstore integration time:
-
Permalink:
freed-dev-llc/argus@cc8260b9392f98d6952c7b4c9d4d1c408bc076a7 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/freed-dev-llc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cc8260b9392f98d6952c7b4c9d4d1c408bc076a7 -
Trigger Event:
push
-
Statement type: