videolens-mcp
v0.3.2Give 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
description_chars | integer |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
max_chars_each | integer | |
max_comments | integer | |
query | ||
replies | boolean | |
scan | integer | |
sort | string |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
chunk_seconds | integer | |
end | ||
lang | string | |
max_chars | integer | |
start | ||
with_timestamps | boolean |
batch_transcripts
Transcripts of several videos in one call (max 8), each merged into 30s blocks and capped.
| Parameter | Type | Description |
|---|---|---|
urls * | array | |
lang | string | |
max_chars_each | integer |
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
url * | string | |
frames | boolean | |
lang | string | |
max_hits | integer | |
width | integer |
youtube_search
Search YouTube. sort: 'relevance' or 'date' (the newest among the most relevant ~15-30 results, slower because each upload date is looked up). Optional filters: min_views, min_minutes, max_minutes (0 = off). Returns title, channel, duration, views, upload date (date sort), URL.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
max_minutes | number | |
min_minutes | number | |
min_views | integer | |
n | integer | |
sort | string |
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.
| Parameter | Type | Description |
|---|---|---|
topic * | string | |
lang | string | |
max_age_days | integer | |
max_minutes | number | |
min_minutes | number | |
min_views | integer | |
n_videos | integer | |
queries | ||
sort | string | |
with_comments | boolean |
channel_videos
List recent videos of a channel or playlist URL (e.g. https://www.youtube.com/@name/videos).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
n | integer |
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
| Parameter | Type | Description |
|---|---|---|
url * | string | |
n | integer |
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).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
end | ||
include_transcript | boolean | |
lang | string | |
mode | string | |
n_frames | integer | |
start | ||
width | integer |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
end | ||
max_chars | integer | |
mode | string | |
n_frames | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
chunk_seconds | integer | |
end | ||
lang | ||
max_chars | integer | |
model | string | |
start |
doctor
Self-check: versions, which optional features are installed, and whether YouTube is reachable. Run this first if any tool misbehaves.