VMS Video Fetch
Project description
MCP Server - VMS Integration
A Model Context Protocol (MCP) server designed to connect to a CCTV recording program (VMS) to retrieve recorded and live video streams. It also provides tools to control the VMS software, such as showing live or playback dialogs for specific channels at specified times.
Features
- Retrieve video channel information, including connection and recording status.
- Fetch recording dates and times for specific channels.
- Fetch live or recorded images from video channels.
- Show live video streams or playback dialogs for specific channels and timestamps.
- Control PTZ (Pan-Tilt-Zoom) cameras by moving them to preset positions.
- Comprehensive error handling and logging.
Prerequisites
- Python 3.12+
vmspylibrary (for VMS integration)Pillowlibrary (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:
{
"mcpServers": {
"vms": {
"command": "uv",
"args": [
"--directory",
"X:\\path\\to\\mcp-vms",
"run",
"mcp_vms.py"
]
}
}
}
VMS Connection Configuration
The server uses the following default configuration for connecting to the VMS:
- mcp_vms_config.py
vms_config = {
'img_width': 320,
'img_height': 240,
'pixel_format': 'RGB',
'url': '127.0.0.1',
'port': 3300,
'access_id': 'admin',
'access_pw': 'admin',
}
Installation
1. Install UV Package Manager
Run the following command in PowerShell to install UV:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
For alternative installation methods, see the official UV documentation.
2.Install VMS Server
Download and install the VMS server from:
http://surveillance-logic.com/en/download.html
(Required before using this MCP server)
3.Install Python Dependencies
Download the vmspy library:
vmspy1.4-python3.12-x64.zip
Extract the contents into your mcp_vms directory
The mcp-vms directory should look like this:
mcp-vms/
├── .gitignore
├── .python-version
├── LICENSE
├── README.md
├── pyproject.toml
├── uv.lock
├── mcp_vms.py # Main server implementation
├── mcp_vms_config.py # VMS connection configuration
├── vmspy.pyd # VMS Python library
├── avcodec-61.dll # FFmpeg libraries
├── avutil-59.dll
├── swresample-5.dll
├── swscale-8.dll
Project details
Release history Release notifications | RSS feed
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 mseep_mcp_vms-0.1.0.tar.gz.
File metadata
- Download URL: mseep_mcp_vms-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8526a006e71154e1ca7f5eb32562c52c9bc724a526751da26ecbee2f8baa4a8b
|
|
| MD5 |
0a35e0fa58d58c04e4d875589cc29f46
|
|
| BLAKE2b-256 |
320cd988fe5dd4d8d3d208f3db19a6c27a5da0b5586cd542ca9dce1c95122868
|
File details
Details for the file mseep_mcp_vms-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp_vms-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d3f581804d162a198a4a428453637a27c75cd5c65f43b407c487b1907ccdf31
|
|
| MD5 |
8e0e69173c25e49c0e98fda59c931f19
|
|
| BLAKE2b-256 |
22767231e5ada54d2079e4f21a62b7b91fe93d81236a5c8d57afe97c422a028d
|