Video Service MCP
An MCP server that provides video processing services.
Features
- Frame Extraction: Extract frames from a video, ensuring the first and last frames are included.
- Video Concatenation: Concatenate multiple videos into a single video.
Installation
pip install -e .
Environment Variables
The following environment variables must be set for TOS (Tencent Object Storage) integration:
TOS_ACCESS_KEY: Your TOS access keyTOS_SECRET_KEY: Your TOS secret keyTOS_BUCKET_NAME: Your TOS bucket nameTOS_ENDPOINT(optional): TOS endpoint (default: "tos-cn-beijing.volces.com")TOS_REGION(optional): TOS region (default: "cn-beijing")
Usage
Starting the Server
carey_mcp_video --transport sse
API
Extract Frames
Extracts frames from a video and uploads them to TOS.
extract_frames(video_url: str, num_frames: int = 10)
Parameters:
video_url: URL of the video to extract frames from.num_frames: Number of frames to extract (minimum 2 for first and last frames).
Returns:
- A dictionary containing:
success: Boolean indicating if the operation was successfulmessage: Human-readable message about the resultframes: List of frame URLs (on success)
Concatenate Videos
Concatenates multiple videos using FFmpeg and uploads the result to TOS.
concatenate_videos(video_urls: List[str])
Parameters:
video_urls: List of URLs of videos to concatenate.
Returns:
- A dictionary containing:
success: Boolean indicating if the operation was successfulmessage: Human-readable message about the resulturl: URL of the concatenated video (on success)
Dependencies
- fastmcp
- loguru
- requests
- opencv-python
- tos
- FFmpeg (system dependency)
License
MIT
Metadata
Release files for carey_mcp_video 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| carey_mcp_video-0.1.4.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| carey_mcp_video-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / carey_mcp_video-0.1.4.tar.gz
| Download URL | carey_mcp_video-0.1.4.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfc5ad9705cc12191605d73b87d78d42469bffa4de032b5d95975d79cfa39702
|
|
BLAKE2b-256 checksum How to use checksums |
4e0d25fabec54c631e2acc96dd8accd2ef19c19007ed697d86aa0f785ef5b85c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / carey_mcp_video-0.1.4-py3-none-any.whl
| Download URL | carey_mcp_video-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16e169b40bd3473c70177f6921bd9bed891afd371d00d8332f7703cdebce5f31
|
|
BLAKE2b-256 checksum How to use checksums |
f9caf10d52a27f80535c38498d3dbeb2a138163b61572071cfae22b2ec23f583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|