vid2md-mcp
Extracts captions/transcripts and metadata from Vimeo videos via yt-dlp, and can download the video for keyframe OCR when frame extraction is enabled.
Extracts captions/transcripts and metadata from YouTube videos via yt-dlp, and can download the video for keyframe OCR when frame extraction is enabled.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vid2md-mcp Turn this lecture into Markdown, including slide text: https://youtu.be/abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vid2md
Let Claude (or any LLM) "watch" videos for a fraction of the tokens.
vid2md turns a video into compact Markdown, the way MarkItDown does for documents:
Transcript from existing captions: YouTube/Vimeo/etc. captions via
yt-dlp, or subtitles embedded in / next to a local file. No audio processing, no tokens, seconds to run.On-screen text without vision tokens: slides, titles, code and labels are read with ffmpeg scene-change keyframes + local Tesseract OCR, de-duplicated and interleaved with the transcript by timestamp.
Fallback: no captions? Transcribes locally with
faster-whisper(optional).Chapters, title, channel and duration included. Works as a CLI, an MCP server and a Claude Code plugin (skill + MCP).
Example: a 19-minute lecture with slides becomes ~5,500 tokens of Markdown, versus tens of thousands of tokens to send keyframes as images.
### What are neurons?
> πΌ **On screen [03:00]**
> Neuron β that holds a number
**[02:43]** As the name suggests neural networks are inspired by the brain, but let's break that down...Install
System dependencies: ffmpeg and (for --frames) tesseract with the language packs you need.
# Arch
sudo pacman -S ffmpeg tesseract tesseract-data-eng tesseract-data-por
# Debian/Ubuntu
sudo apt install ffmpeg tesseract-ocr tesseract-ocr-eng tesseract-ocr-por
# macOS
brew install ffmpeg tesseract tesseract-langThen the tool itself:
pipx install git+https://github.com/samvanderhagen/vid2md
# optional local transcription when a video has no captions:
pipx install "vid2md[whisper] @ git+https://github.com/samvanderhagen/vid2md"Related MCP server: claude-real-video
Use
vid2md "https://www.youtube.com/watch?v=VIDEO_ID" # transcript only
vid2md "https://www.youtube.com/watch?v=VIDEO_ID" --frames # + on-screen text
vid2md lecture.mp4 --frames -o lecture.md # local fileOption | What it does |
| OCR on-screen text (downloads the video at β€720p for URLs) |
| Preferred transcript language |
| Tesseract languages |
| Save the unique keyframes, so the model can look at only the 1β2 it really needs |
| Keyframe sensitivity / sample at least every N seconds |
| Include the video description |
| Reuse your browser's YouTube login if YouTube says "confirm you're not a bot" (also |
| Control the local transcription fallback |
Use with Claude Code
As a plugin (skill that teaches Claude to use vid2md + the MCP server):
/plugin marketplace add samvanderhagen/vid2md
/plugin install vid2md@vid2mdOr only the MCP server:
claude mcp add vid2md -- vid2md-mcpThen just paste a video link and ask for a summary. Claude Desktop / other MCP clients: run vid2md-mcp as a stdio server.
How it saves tokens
Captions first. Platforms already have the transcript; fetching it costs nothing.
Rolling auto-captions de-duplicated. YouTube auto-captions repeat each line twice; they are merged into timestamped paragraphs.
Frames β text locally. Only frames where the scene changes (or every 20 s) are OCR'd; noise and repeated slides are dropped.
Images only when needed. With
--keep-frames, the model can open a single frame instead of the whole video.
Limitations
OCR reads text, not diagrams, faces or math notation; check the saved frame when it matters.
Auto-captions and OCR contain errors.
Respect the platforms' terms and copyright: use it for videos you are allowed to process.
License
MIT
Available Tools
1 toolvideo_to_markdownA
Convert a video into compact Markdown WITHOUT spending vision tokens.
Uses the platform's captions (YouTube etc.) or embedded/sidecar subtitles; falls back to local Whisper if installed. With frames=True it also extracts on-screen text (slides, code, labels) using scene-change keyframes + local Tesseract OCR, interleaved with the transcript by timestamp.
Args: source: video URL (anything yt-dlp supports) or absolute path to a local video file. frames: also OCR on-screen text. Slower (downloads the video at <=720p). Use when visuals matter. lang: preferred transcript language code, e.g. "en" or "pt". keep_frames_dir: save the unique keyframes here so you can view only the few you really need. description: include the video description. cookies_from_browser: only if YouTube blocks requests ("confirm you're not a bot"): reuse the user's browser login, e.g. "firefox" or "chrome". Ask the user first.
Inputs: source (required), lang, frames, description, +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection or overlapping purpose. Its single function β video to Markdown conversion β is clearly stated and distinct.
The single name video_to_markdown is clear, descriptive, and uses standard snake_case verb_object convention. With one tool there is no convention mixing, and the name conveys the action and target.
A single tool is slightly thin, but the server's domain (video-to-Markdown extraction) is narrow enough that one richly parameterized tool covers it. The options (frames, lang, cookies, description) are sensibly folded into arguments rather than split into extra tools.
The surface covers both URL and local-file sources, caption/subtitle/Whisper fallbacks, OCR of keyframes, and language selection β the core lifecycle of the stated purpose. Minor gaps exist, such as no way to list available transcript languages or inspect keyframes without saving them to a directory first.
Maintenance
Related MCP Connectors
Turn any video into context for AI agents: transcripts, metadata, chapters, timestamps.
Turn bug recordings, demos and YouTube talks into screens + transcript Markdown an agent can read.
1YouTube transcripts, TikTok videos, Instagram profiles, Reddit threads & HN MCP (-87% LLM tokens).
YouTube transcripts, TikTok videos, Instagram profiles, Reddit threads & HN MCP (-87% LLM tokens).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to watch YouTube videos by extracting frames at scene changes and visual references, pairing each frame with the exact words spoken at that timestamp. Provides dense frame-transcript interleaving for any model.7MIT
- AlicenseNot gradedqualityAmaintenanceLets any LLM agent actually watch videos: a watch_video tool takes a URL or local file and returns scene-aware keyframes fused with a timestamped transcript, processed 100% locally with per-source caching.1,509 PyPI2,371MIT
- AlicenseAqualityCmaintenanceEnables AI clients to watch local video files or YouTube/Bilibili and other supported URLs, receiving timestamped transcripts, subtitles, searchable text and keyframe contact sheets. Runs fully offline with local speech recognition and bundled ffmpeg, so no API key or cloud upload is needed.681 PyPI14MIT
- AlicenseNot gradedqualityBmaintenanceEnables any LLM to watch videos by providing scene-aware keyframes, storyboards, and timestamped transcripts through tools for opening videos, fetching frames, and retrieving transcript segments.MIT