Add MCP Server for Video Navigation with Keyword Search and Visual Search#48
Draft
LemurPwned with Copilot wants to merge 4 commits into
Draft
Add MCP Server for Video Navigation with Keyword Search and Visual Search#48LemurPwned with Copilot wants to merge 4 commits into
LemurPwned with Copilot wants to merge 4 commits into
Conversation
…mpling tools Co-authored-by: LemurPwned <8441184+LemurPwned@users.noreply.github.com>
Co-authored-by: LemurPwned <8441184+LemurPwned@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create an MCP server for video navigation with keyword search and visual search.
Implement the folloowing:
1. Resources:
- Video
- ImageSet
2. Tools
- Search (args: query: str, video_path: str | None, start: float|None, stop: float|None) if video p...
Add MCP Server for Video Navigation with Keyword Search and Visual Search
Aug 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a comprehensive Model Context Protocol (MCP) Server for video navigation that provides advanced search capabilities and intelligent video sampling job generation.
🎯 Features Implemented
Resources
video://video_id) - Access individual video metadata, subtitles, and contentimageset://all_frames) - Collection of all sampled video frames across loaded videosTools
Search Tool - Multi-strategy video content search:
KeywordExtractorwith spacy-based NLP, gracefully falling back to simple text matching when spacy is unavailableYTDLPPluginVideo Sampling Job Tool - Intelligent code generation:
SamplerConfigandWorkerclasses🏗️ Implementation Details
The MCP server is built on top of existing video-sampler components:
video_sampler.language.keyword_capturefor subtitle processingvideo_sampler.integrations.yt_dlp_pluginfor YouTube supportvideo_sampler.samplersfor frame extraction📦 Usage
Start the MCP server:
video_sampler_mcp # or python -m video_sampler.mcp_server.serverSearch for content:
{ "name": "search", "arguments": { "query": "wildlife documentary", "video_path": "https://youtube.com/watch?v=abc123", "start": 30.0, "stop": 120.0 } }Generate sampling code:
{ "name": "video_sampling_job", "arguments": { "video_path": "/path/to/video.mp4", "sampling_method": "hash", "output_format": "python", "frame_interval": 2.0 } }✅ Testing
demo_mcp.py) showcasing all features📚 Documentation
video_sampler/mcp_server/README.mdwith usage examplesThis implementation provides a standardized, production-ready interface for video content analysis and processing, enabling AI assistants to intelligently navigate and process video content using the full power of the video-sampler framework.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.