videolens-mcp

v0.3.2
videolens-mcp Checked 4 days ago Published 7 days ago

Give your AI eyes on video: YouTube-first MCP server for research, comments, transcripts, frames, OCR and local Whisper.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

video_info

Get YouTube video metadata: title, channel, stats, upload date, tags, chapters, description.

ParameterTypeDescription
url *string
description_charsinteger

video_comments

Read YouTube comments. sort: 'top' or 'new'. replies=True adds replies (3 per thread). query: comma-separated terms; scans up to `scan` comments and returns only those containing any term (case-insensitive), e.g. query="broke,refund,scam". Each comment is cut to max_chars_each.

ParameterTypeDescription
url *string
max_chars_eachinteger
max_commentsinteger
query
repliesboolean
scaninteger
sortstring

video_transcript

Get video transcript (manual subs first, then auto-captions). lang='auto' (default) uses the video's spoken language; or force e.g. 'en', 'tr'. Lines merge into ~chunk_seconds blocks (0 = raw) to save tokens. Use start/end ('1:30') to read one part of a long video. No captions? use transcribe_video.

ParameterTypeDescription
url *string
chunk_secondsinteger
end
langstring
max_charsinteger
start
with_timestampsboolean

batch_transcripts

Transcripts of several videos in one call (max 8), each merged into 30s blocks and capped.

ParameterTypeDescription
urls *array
langstring
max_chars_eachinteger

find_in_video

Find WHERE a topic is said in a video. query: comma-separated terms (any match). Returns timestamped caption lines (with a little context). frames=True also returns the video frame at each hit.

ParameterTypeDescription
query *string
url *string
framesboolean
langstring
max_hitsinteger
widthinteger

youtube_research

Research a topic on YouTube in one call. Runs several searches (your `queries`, or the topic plus 'explained' and 'review' variants), merges and de-duplicates, ranks by views, recency and how many searches surfaced each video, then returns a compact brief per top video: stats, chapters, description, transcript excerpt (start/middle/end) with top terms, and top comments. Follow up with find_in_video, video_comments(query=...) or watch_video on the most promising ones. n_videos max 8.

ParameterTypeDescription
topic *string
langstring
max_age_daysinteger
max_minutesnumber
min_minutesnumber
min_viewsinteger
n_videosinteger
queries
sortstring
with_commentsboolean

channel_videos

List recent videos of a channel or playlist URL (e.g. https://www.youtube.com/@name/videos).

ParameterTypeDescription
url *string
ninteger

channel_stats

Quick channel analysis over its latest n videos (max 50): average/median views, best videos, typical length and upload cadence. url like https://www.youtube.com/@name/videos

ParameterTypeDescription
url *string
ninteger

watch_video

'Watch' a video: returns frames (images, each labelled with timestamp) plus the transcript for the same range. mode='even' spaces frames evenly; mode='scenes' samples twice as many moments and keeps the ones that differ most (best for slides, demos, edited videos). Use start/end ('90', '1:30') to zoom in and call again for detail. n_frames max 24 (default 6); width 512 saves tokens, raise to ~768 only to read small on-screen text (or use ocr_frames).

ParameterTypeDescription
url *string
end
include_transcriptboolean
langstring
modestring
n_framesinteger
start
widthinteger

ocr_frames

Read the TEXT shown in a video (slides, code, UI, burned-in subtitles) without returning images, so it is cheap in tokens. Frames come from scene changes (default) or even spacing. Output: timestamp and recognised text per frame. Runs locally (rapidocr), no cloud.

ParameterTypeDescription
url *string
end
max_charsinteger
modestring
n_framesinteger
start

transcribe_video

Transcribe the SPEECH of a video locally with Whisper (faster-whisper, CPU) when it has no usable captions. model: tiny | base | small (bigger = slower, more accurate). lang: 'en', 'tr'... or empty to auto-detect. Max 30 min per call, so use start/end for long videos. First run downloads the model once.

ParameterTypeDescription
url *string
chunk_secondsinteger
end
lang
max_charsinteger
modelstring
start

doctor

Self-check: versions, which optional features are installed, and whether YouTube is reachable. Run this first if any tool misbehaves.