Purpose
mcp_vms is a Model Context Protocol (MCP) server designed to connect to CCTV recording programs (VMS) to obtain recorded and live video streams. It also provides tools for controlling the VMS software, such as displaying live or playback dialogs for a specific channel at a specified time.
Main Capabilities
- Obtain video channel information, including connection status and recording status.
- Obtain recording dates and times for a specific channel.
- Obtain live or recorded images from a video channel.
- Display a live video stream or playback dialog for a specific channel and timestamp.
- Control PTZ (pan-tilt-zoom) cameras by moving to preset positions.
- Comprehensive error handling and logging.
Usage
Dependencies
- vmspy library (for VMS integration)
- Pillow library (for image processing)
MCP Server Configuration
If you want to use mcp-vms with Claude Desktop, you need to set up the claude_desktop_config.json file as follows.
VMS Connection Configuration
The server uses the following default configuration to connect to the VMS:
mcp_vms_config.py
Installation Steps
- Install the UV package manager
Run the following command in PowerShell to install UV:
(Other installation methods are provided in the official UV documentation.)
- Install the VMS server
From http://surveillance-logic.com/en/download.html Download and install the VMS server (required before using this MCP server).
- Install Python dependencies
Download the vmspy library: vmspy1.4-python3.12-x64.zip, and extract the contents into the mcp_vms directory.
The mcp_vms directory should look like this:
(The original text does not provide details of the directory structure here.)
Applicable Scenarios
Suitable for scenarios that require integrating and controlling a VMS video surveillance system through the MCP protocol, such as calling tools in Claude Desktop to obtain surveillance footage, query recordings, or control cameras.
Limitations
Specific limitations (such as supported VMS versions, platform compatibility, etc.) are not provided at this time.