eufy-cam-mcp
This is a view-only MCP server for inspecting up to four allowlisted local Eufy cameras through MediaMTX.
List known cameras and their live ready state/tracks.
Get one camera's status, tracks, bytes received, and frame errors.
Capture a single JPEG snapshot from a camera and return its path.
Summarize recordings: segment count, disk use, oldest/newest files.
List newest motion clips for a camera, with a configurable limit (1–50).
Extract one JPEG frame at a specified time from a camera's motion clip.
It cannot move cameras, talk through them, or access the Eufy cloud.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@eufy-cam-mcp show me which eufy cameras are online and grab a snapshot from eufy_cam1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
eufy-camera-mcp
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| serverTool | Returns |
| Each known camera with its ready state and tracks |
| Ready state, tracks, bytes received and frame errors for one camera |
| Path to one JPEG from local RTSP, plus a |
| Segment count, total bytes, first and last file names |
| Newest |
| Path to one JPEG at |
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 serverMCP 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 -vCI 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
ffmpegframe grab from a generated clip. No test talks to MediaMTX or a camera.If MediaMTX is down,
list_camerasandcamera_statusraise 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 toolscamera_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
Scored across 6 tools
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.
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.
Six tools is well within the ideal 3–15 range for a camera monitoring server, and each tool appears to serve a distinct purpose.
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
Related MCP Connectors
Give the physical world an API: cameras become typed endpoints your agent can read and act on.
Ask your security cameras anything and set up alert rules in a sentence. Built into Agent DVR.
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
Related MCP Servers
- FlicenseAqualityBmaintenanceEnables AI assistants to interact with Frigate NVR security camera systems, supporting camera management, event detection, snapshots, recordings, and system stats via natural language.714-
- AlicenseAqualityBmaintenanceEnables interacting with a self-hosted UniFi Protect console through natural language, covering cameras, recorded events, smart detections, snapshots, footage export, and connected devices, with optional write access.2235 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseAqualityBmaintenanceEnables AI assistants and MCP clients to inspect camera streams, probe video/audio codecs, capture live JPEG snapshots, generate playback URLs, discover camera integrations, and manage streams dynamically with strict credential redaction.121MIT