Listed from the MCP registry; nobody on Odel publishes it.
Privacy-first events from Luxonis OAK cameras for AI agents. Text only, never pictures.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx oak-events
MCP client config
{
"mcpServers": {
"oak-events": {
"command": "uvx",
"args": [
"oak-events"
]
}
}
}Privacy-first events from Luxonis OAK cameras for AI agents.
An OAK camera detects people, tracks them and measures depth on its own chip.
oak-events turns that into one JSON line per event ("a person entered the
doorway zone", "something 40 cm closer has stood in cell r2c5 for a minute")
and serves those lines to agents through an MCP server.
Agents never receive a picture. There is no image tool, no snapshot command, and no code path that writes an image file.
Giving an agent a camera usually means giving it a video feed. Most agent questions do not need one: is anyone at the bench? did something on the shelf move? is the camera alive? Those are answerable from detections and a coarse depth grid, which carry far less about the people in view than frames do.
Stated plainly, so you can check it against the code:
src/oak_events/camera.py)..jsonl file.
A test scans the repo and a temporary run directory for image files.oak_events.privacy forces DEPTHAI_TELEMETRY=0,
DEPTHAI_DISABLE_CRASHDUMP_COLLECTION=1 and DEPTHAI_AUTOCALIBRATION=OFF
before depthai is imported. Only OAK_EVENTS_ALLOW_TELEMETRY=1 leaves
DepthAI's own defaults in place.--model at a local NNArchive
you fetched once.What the events still reveal: when someone was present, for how long, how far from the camera, and when objects moved. Treat the event files as sensitive and keep them local.
| Device | Status |
|---|---|
| RVC2: OAK-D PoE | Tested live (DepthAI 3.11, bootloader 0.0.29, macOS arm64) |
| RVC2: OAK-D (USB) | Expected to work; untested, reports welcome |
| RVC4 (e.g. OAK 4) | Untested; reports welcome |
Requires DepthAI v3 (depthai>=3.9) and Python 3.10+.
pip install 'oak-events[camera,mcp]'
# 1. Check the setup (works without a camera or depthai installed)
oak-events doctor
# 2. Fetch a detection model ONCE (see below), then run
oak-events run --model ~/models/yolov6-nano.rvc2.tar.xz --out-dir ~/.local/share/oak-events/events
# 3. Let an agent read the events over MCP
oak-events mcp --events-dir ~/.local/share/oak-events/events
oak-events never downloads at runtime. Fetch an NNArchive from the Luxonis
model zoo once, with DepthAI itself, and keep the file:
import depthai as dai
path = dai.getModelFromZoo(
dai.NNModelDescription(model="luxonis/yolov6-nano:r2-coco-512x288", platform="RVC2")
)
print(path) # copy this .tar.xz somewhere stable and pass it to --model
This one step contacts the Luxonis model hub. Check the exact model slug on the
Luxonis model zoo; any detection NNArchive whose classes include person
works (use --person-label if the class has another name). For RVC4, use
platform="RVC4".
By default everything is reported for one zone named view. A zones file
names regions by normalized image box and/or distance:
{"zones": [
{"name": "doorway", "bbox": [0.0, 0.0, 0.35, 1.0]},
{"name": "desk", "bbox": [0.4, 0.3, 1.0, 1.0], "z_mm": [400, 2500]}
]}
bbox is [x0, y0, x1, y1] in 0..1 with the origin top-left; z_mm is
[min, max] distance in millimetres (either side may be null). Numbers must
be finite: NaN and Infinity are rejected. Each zone
gets its own person tracker and depth-change grid. The depth map is aligned to
the colour camera only approximately, so leave some margin.
| Command | What it does |
|---|---|
oak-events run --model PATH [--device-id ID] [--out-dir DIR] [--zones FILE] [--fps 10] [--model-sha256 HEX] [--confidence-stats] | Run the camera; print events, optionally append to DIR/YYYY-MM-DD.jsonl |
oak-events doctor [--json] | depthai version, visible devices, bootloader advice, privacy env state |
oak-events mcp --events-dir DIR [--stale-after SECONDS] [--access-log FILE] | MCP stdio server with recent_events, zone_state, camera_health; camera_health defaults to stale after 900 seconds |
Optional checks, all off unless you set them:
--model-sha256 HEX: compare the model archive's SHA-256 with HEX at
start and refuse to run on a mismatch (camera event error, exit code 3,
camera not opened). The hash is computed and recorded in the camera up
event on every start, with or without this option. The reference hash is in
docs/MODEL_CARD.md.--confidence-stats: add per-zone detection-confidence statistics to each
alive event (see the spot-check procedure in the model card).--access-log FILE: append one JSON line per MCP tool call to FILE (mode
0600): time, tool name, argument names with the size of each value, result
count, success, and the process id of the MCP client. Argument values and
results are not written, and there is no image content to write. FILE
must be outside the events directory.Every line is a JSON object with ts (ISO-8601 local time with offset),
kind, and the fields below.
| kind | fields | meaning |
|---|---|---|
person_enter | zone, count, nearest_mm | a person was seen in confirm_frames (3) consecutive frames |
person_exit | zone, dwell_s | nobody seen for gone_seconds (10); dwell = first to last sighting |
depth_baseline | zone, cells_judged, cells_noisy, grid | baseline built; noisy cells (stereo noise, low texture) are ignored |
depth_change | zone, cells (e.g. ["r0c3"]), delta_mm | a cell's depth moved > 15 % for --hold-seconds (60) with nobody present |
camera | state (up, not_found, error, reconnect, pipeline_stopped, stopped), plus device, device_model, bootloader, model, model_sha256, model_sha256_checked, expected_sha256, detail as relevant | camera lifecycle |
alive | det_fps, person, occupied; with --confidence-stats also confidence: per zone n, mean, min, max, below | heartbeat every --alive-every seconds (300) |
privacy | private, telemetry_opt_in, deviations | written once per run, before DepthAI loads: private is false if any DepthAI privacy variable differs from the private default, deviations names them |
In confidence, n counts per-frame person detections in the zone at or
above --person-confidence and below counts those under it; mean, min
and max describe the accepted ones (null when n is 0). Each alive
event covers the time since the previous one.
Example:
{"ts": "2026-10-11T09:14:03-07:00", "kind": "person_enter", "zone": "doorway", "count": 1, "nearest_mm": 1840}
Depth-change detection pauses while a person is present in that zone: people are not scenery.
oak-events mcp --events-dir DIR runs a stdio MCP server (official mcp
Python SDK). Tools, all returning JSON text:
recent_events(limit=50, kind=None) - latest events, oldest firstzone_state() - per zone: person present or not, latest person and depth eventscamera_health() - latest camera and alive events with their age and a status (ok, stale, no_data, or the last camera state), plus the latest privacy event and private (true, false, or null if no run has written one)See examples/claude-desktop-mcp.json for a client config, and
examples/openclaw-stream.md / examples/webhook.md for wiring the event
stream into automations.
Run oak-events run under a supervisor that restarts it on exit (systemd,
launchd, a container restart policy). The process exits with a camera event
explaining why: not_found, error, pipeline_stopped.
oak-events doctor shows the version when
the device is not in use.oak-events run retries discovery for up to 4 minutes (240 s), then asks DepthAI to
reconnect up to 5 times before giving up.X_LINK_DEVICE_NOT_FOUND while the same command worked from
a terminal. Running it under a supervisor process that has macOS
local-network permission worked. If you see this, check
System Settings > Privacy & Security > Local Network.--device-id over addresses; the id survives network changes.Report vulnerabilities as described in SECURITY.md.
python3 -m venv .venv
.venv/bin/pip install -e '.[mcp]' pytest
.venv/bin/pytest -q
Tests need neither a camera nor depthai. See CONTRIBUTING.md.
MIT. See LICENSE.
oak-events is an independent community project, not affiliated with or endorsed by Luxonis. OAK and DepthAI are Luxonis trademarks, used here only to say which hardware and SDK the tool works with.