AI video editing MCP server — SAM 3.1 segmentation, behind-the-subject VFX, education scenes
Project description
VidMCP
Agents don’t describe video. They cut it.
MCP server for text-prompt mattes · behind-the-subject VFX · education scenes
Built by Dhiraj Lochib · Site vidmcp.com
Gallery
Behind the subject — particles under the matte
|
Tesseract · 4D with trails |
Kinetic · agent edit language |
|
Unit circle · live sin / cos |
Pipeline · import → render |
| Sample | GIF | MP4 |
|---|---|---|
| Flow field | gif | mp4 |
| Tesseract | gif | mp4 |
| Behind the subject | gif | mp4 |
| Kinetic | gif | mp4 |
| Unit circle | gif | mp4 |
| Pipeline | gif | mp4 |
python scripts/generate_samples.py
Install
Needs: Python 3.11+, ffmpeg
git clone https://github.com/dhirajlochib/VidMcp.git
cd VidMcp
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
export VIDMCP_SAM_BACKEND=mock
export VIDMCP_WORKSPACE_ROOT=./workspaces
vidmcp --doctor
vidmcp
Optional
pip install -e ".[mlx]" # Apple Silicon SAM 3.1
pip install -e ".[sam]" # CUDA
pip install -e ".[dev]" # tests
MCP (Claude Desktop)
{
"mcpServers": {
"vidmcp": {
"command": "/ABS/PATH/VidMcp/.venv/bin/vidmcp",
"env": {
"VIDMCP_SAM_BACKEND": "mock",
"VIDMCP_WORKSPACE_ROOT": "/ABS/PATH/VidMcp/workspaces"
}
}
}
}
claude mcp add vidmcp -s user -- /ABS/PATH/VidMcp/.venv/bin/vidmcp
What it does
| Segment | Text-prompt subject matte (SAM / MLX / mock) |
| Compose | Effects behind the subject |
| Educate | Math plates + narration hooks |
| Harness | Plan → perceive → critic gates |
create_project → import_video → segment_subject
→ apply_background_effects → composite_and_render
Project
src/vidmcp/ MCP server + tools
demos/samples/ GIFs · MP4s · stills
site/ vidmcp.com (Hostinger)
configs/ Claude / Cursor
scripts/ generate_samples.py
Author
Dhiraj Lochib — Full-Stack, Blockchain, AI
dhirajlochib.com · GitHub · LinkedIn · dhirajch145@gmail.com
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vidmcp-1.0.1.tar.gz
(127.5 kB
view details)
File details
Details for the file vidmcp-1.0.1.tar.gz.
File metadata
- Download URL: vidmcp-1.0.1.tar.gz
- Upload date:
- Size: 127.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435834382ea1ba4c19893ed3e27e92c799eb7ed0e1e8261c244ee30a526b839a
|
|
| MD5 |
18ef685304642549985b6cbd1b648247
|
|
| BLAKE2b-256 |
1f6f5da6e9721316f9fb215535d4fac1d4f8ddef8acfa1a43142cbdf2d020efb
|