Skip to main content
Glama

eufy-camera-mcp

CI

A FastMCP server that lets an AI agent look at four allowlisted local Eufy cameras through MediaMTX. It can read camera status, grab one JPEG frame and list recorded motion clips. It cannot move a camera, talk through it or reach the Eufy cloud.

How it works

flowchart LR
  agent([AI agent, MCP client]) -->|asks| server[MCP server: 6 view-only tools]
  server -->|status| mtx{{MediaMTX on localhost}}
  server -->|grab one frame, 60 s cap| ffmpeg[ffmpeg]
  ffmpeg -->|writes| snaps[(Snapshots: JPEG)]
  recs[(Recordings: mp4, read-only)] -->|clips| server

Tool

Returns

list_cameras

Each known camera with its ready state and tracks

camera_status

Ready state, tracks, bytes received and frame errors for one camera

snapshot_camera

Path to one JPEG from local RTSP, plus a <name>_latest.jpg symlink

recordings_info

Segment count, total bytes, first and last file names

motion_clips

Newest <name>_*.mp4 clips for one camera (limit 1 to 50)

clip_frame

Path to one JPEG at t seconds into a clip

Every per-camera tool rejects names outside the allowlist, including path traversal like ../../outside, before any MediaMTX call or ffmpeg process. clip_frame also refuses another camera's clip, non-.mp4 names and negative or non-finite t.

Related MCP server: @mgcrea/mcp-unifi-protect

Run

Needs Python 3.12+, uv, ffmpeg, and MediaMTX on the same host with its API on and cameras published as eufy_cam1 to eufy_cam4. The recording tools also need a recorder that writes <name>_*.mp4 files (not part of this repo).

uv sync --frozen
uv run eufy-cam-mcp        # stdio MCP server

MCP client entry: command uv, args ["--directory", "/path/to/eufy-camera-mcp", "run", "eufy-cam-mcp"].

Settings are constants at the top of src/eufy_cam_mcp/server.py: MediaMTX API (127.0.0.1:9997), RTSP (127.0.0.1:8554), the camera allowlist, and the snapshot and recording folders (default under ~/meshvault/camera/). There are no environment overrides yet.

Test

uv run ruff check .
uv run python scripts/check-camera-boundaries.py   # bad names never reach MediaMTX, network or ffmpeg
uv run pytest -v

CI runs all three on pushes and pull requests to main.

Status and limits

  • Version 0.1.0. Tests cover input rejection, clip listing and one real ffmpeg frame grab from a generated clip. No test talks to MediaMTX or a camera.

  • If MediaMTX is down, list_cameras and camera_status raise an error instead of reporting not ready.

  • Snapshot JPEGs are never pruned.

  • Not on PyPI. Not a hosted service.

More detail: docs/ARCHITECTURE.md.

License

All rights reserved. See LICENSE. Contact: tanner@kodros.ai.

Available Tools

6 tools
camera_statusC

Ready state, tracks, and error counters for one camera.

Inputs: name. Returns: object

clip_frameB

Extract one JPEG frame at t seconds into a motion clip. Returns the file path.

Inputs: t, clip, name. Returns: object

list_camerasB

List known Eufy cameras with live ready state from MediaMTX.

Inputs: no named parameters. Returns: result

motion_clipsB

Newest motion-event recordings for one camera (newest first, capped).

Inputs: name, limit. Returns: object

recordings_infoB

Segment count, disk use, and oldest/newest recording (retention visibility).

Inputs: no named parameters. Returns: object

snapshot_cameraC

Capture a single JPEG frame from a camera. Returns the file path.

Inputs: name. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    Tools mostly target distinct resources: list all cameras, get one camera status, snapshot live, get recordings overview, list motion clips, and extract a clip frame. However, snapshot_camera and clip_frame both return a JPEG file path, and camera_status partially overlaps list_cameras' ready state, so minor confusion is possible.

    Naming Consistency3/5

    All names use snake_case, but the patterns are mixed: verbs (list_cameras, snapshot_camera, clip_frame) alternate with noun phrases (camera_status, recordings_info, motion_clips). Still readable, but not a consistent verb_noun convention.

    Tool Count5/5

    Six tools is well within the ideal 3–15 range for a camera monitoring server, and each tool appears to serve a distinct purpose.

    Completeness4/5

    Core monitoring and frame-extraction workflows are covered, but there is no direct tool to retrieve or download a full motion clip (only frame extraction), and no camera control or configuration operations. These are minor gaps for the apparent monitoring-focused purpose.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to interact with Frigate NVR security camera systems, supporting camera management, event detection, snapshots, recordings, and system stats via natural language.
      7
      14
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to query and interact with Extra Low Voltage security hardware such as Hikvision and Dahua cameras and NVRs through typed, read-only-by-default MCP tools for device info, channel enumeration, and JPEG snapshot capture. Translates proprietary ISAPI and CGI protocols into safe, auditable calls that any MCP client can use over stdio.
      MIT