Vidleaf MCP Server
Fetches timestamped Bilibili subtitles/transcripts from BV IDs, b23.tv links, multi-part ?p= videos, Bangumi and courses; supports searching exact quotes and building Vidleaf deep-reader links.
Reads timestamped transcripts for Facebook Videos and Reels, including fb.watch links, with quote search and Vidleaf open/summary links.
Extracts clean video URLs from Xiaohongshu/RedNote mobile share text and reads timestamped transcripts, with quote search and Vidleaf deep-reader links.
Reads paginated timestamped YouTube transcripts, searches exact phrases inside captions, handles no-caption fallback via Vidleaf open links, and builds deep-reader/summary links.
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., "@Vidleaf MCP Server get the timestamped transcript for this Bilibili video: BV1GJ411x7h7"
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.
Vidleaf MCP Server & CLI (vidleaf-mcp)
Zero-dependency Model Context Protocol (MCP) server and CLI for reading timestamped transcripts, searching exact quotes, and opening deep-reading sessions from YouTube, Bilibili, Facebook (Videos & Reels), Douyin, Xiaohongshu (RedNote), and X (Twitter) via Vidleaf.
Most LLM chat apps cannot natively read Bilibili subtitles (BV IDs, b23.tv, multi-part ?p= courses, Bangumi), parse Douyin / Xiaohongshu mobile share copy, or safely fall back when a video has no captions. vidleaf-mcp bridges that gap in Claude Desktop, Cursor, Cherry Studio, Windsurf, Cline, ChatGPT / Codex, and terminal workflows with zero API keys required for caption reading.
Why vidleaf-mcp?
6 Video Platforms, 1 Unified Schema: Works across YouTube, Bilibili (
BV...,b23.tv,?p=N, Bangumi & Courses), Facebook Videos/Reels (fb.watch), Douyin, Xiaohongshu, and X (x.com/twitter.com).Free Anonymous Caption Reading: Existing official or auto-generated subtitles load immediately with
[MM:SS]timestamps—no API key, no browser extension, and no login required.Safe No-Caption Fallback (
vidleaf.app/open?url=...): Never triggers surprise audio billing. When a video has zero captions (such as hard-subtitled clips or raw recordings),vidleaf-mcpreturnsstatus: "asr_confirmation_required"with a one-clickhttps://vidleaf.app/open?url=...link so you can inspect duration and confirm speech-to-text transcription or podcast speaker diarization in the browser.Zero Runtime Dependencies: Pure standard library in both Python (
>=3.10,uvx/pipx) and Node.js (>=18,npx).
Related MCP server: video-link-analyzer
Quick Setup (Claude Desktop / Cursor / Cherry Studio / Windsurf)
Option A: npx (Node.js — zero install directly from GitHub or npm)
{
"mcpServers": {
"vidleaf": {
"command": "npx",
"args": ["-y", "github:blackmirror69/vidleaf-mcp"]
}
}
}Option B: uvx (Python — zero install directly from GitHub or PyPI)
{
"mcpServers": {
"vidleaf": {
"command": "uvx",
"args": ["--from", "git+https://github.com/blackmirror69/vidleaf-mcp", "vidleaf-mcp"]
}
}
}Option C: Docker / OCI (ghcr.io — Official MCP Registry package)
{
"mcpServers": {
"vidleaf": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/blackmirror69/vidleaf-mcp:1.0.0"]
}
}
}Optional environment variable: Set
VIDLEAF_SESSION_COOKIEto yourvsub_sessionvalue only if you want MCP reads saved to your personal Vidleaf reading history. Leave unset for free anonymous reading.
Cherry Studio / Claude Code / Codex CLI
Claude Code:
claude mcp add vidleaf -- npx -y github:blackmirror69/vidleaf-mcpCherry Studio: Settings → MCP Servers → Add Server → Type
STDIO, Commandnpx, Args-y github:blackmirror69/vidleaf-mcp.
MCP Tools Exposed
Tool | Purpose | Network |
| Fetch paginated | Read-only ( |
| Search 1–10 exact phrases or keywords inside a video's captions and return timestamped matches with surrounding context lines—ideal for 2-hour lectures without filling context windows. | Read-only ( |
| Deterministically extract a clean video URL from mobile share text and build | Offline ( |
CLI Usage
Both the Python (pip install vidleaf-mcp) and Node (npm install -g vidleaf-mcp) packages install vidleaf-mcp and vidleaf CLI commands:
# 1. Read timestamped transcript (YouTube, Bilibili BV ID, or mobile share copy)
vidleaf-mcp read "https://www.bilibili.com/video/BV1GJ411x7h7" --lang zh --format markdown
vidleaf-mcp read "https://www.youtube.com/watch?v=UF8uR6Z6KLc" --limit 100
# 2. Search exact quotes inside a long lecture without dumping all captions
vidleaf-mcp search "https://www.youtube.com/watch?v=UF8uR6Z6KLc" "connect the dots" "stay hungry"
# 3. Unwrap Douyin / Xiaohongshu / Bilibili share text into a direct Vidleaf reader or summary URL
vidleaf-mcp open "7.43 复制打开抖音看看 https://v.douyin.com/iYxxxxxx/" --goal summary --locale zhTry Online & Quality Score (Glama MCP)
You can inspect tool schemas, audit security & Tool Definition Quality Scores (TDQS), and test vidleaf-mcp directly in your browser before installing via our Glama MCP Server listing:
Browse all tool definitions, input/output JSON schemas, and quality ratings on glama.ai/mcp/servers/blackmirror69/vidleaf-mcp.
Test live tool calls online using the Glama MCP Inspector.
Official Vidleaf Web Tools & Documentation
Web Workspaces (6 Languages): English · 简体中文 · Español · 日本語 · Português (BR) · 繁體中文
Dedicated Platform Extractors: YouTube Transcript Extractor · YouTube Video Summarizer · Bilibili Subtitle Extractor · B站字幕提取 · 抖音视频转文字 · 小红书视频转文字
Research & Audio Guides: Transcripts Without Captions · Podcast Speaker Labels · Public CC BY Lecture Archive (72 Transcripts)
Browser Companion Scripts: blackmirror69/vidleaf-open (Bookmarklet, Userscript & Obsidian Citation Templates)
License
Released under the MIT License.
Available Tools
3 toolsbuild_vidleaf_open_linkBuild Vidleaf Deep-Reading LinkARead-onlyIdempotent
Offline-normalize any YouTube, Bilibili, Facebook, Douyin, Xiaohongshu, or X video link or mobile share snippet into a direct Vidleaf reader URL (https://vidleaf.app/open?url=...), domain-swap shortcut, and Markdown citation without making network requests. Use when generating clickable deep-reading links, AI chapter-summary handoffs (goal='summary'), or Obsidian/Notion citations. To fetch actual subtitle text, use read_video_transcript instead.
Inputs: url (required), goal, locale, start_seconds. Returns: open_url, platform, extracted_url, domain_swap_url, +2 more
read_video_transcriptRead Video TranscriptARead-onlyIdempotent
Fetch timestamped subtitles/captions and track metadata for a public YouTube, Bilibili, Facebook, Douyin, Xiaohongshu, or X (Twitter) video via Vidleaf (https://vidleaf.app). Use when summarizing, translating, or reading full/paginated video transcripts. To locate specific quotes without loading the full track, use search_video_transcript instead; to generate a reader handoff link offline without network calls, use build_vidleaf_open_link instead. Never triggers paid audio transcription automatically: captionless videos return status='asr_confirmation_required' with an open_url where the user can confirm speech-to-text.
Inputs: url (required), langs, limit, format, +2 more. Returns: cues, lang, title, offset, +15 more
search_video_transcriptSearch Video TranscriptARead-onlyIdempotent
Search case-insensitive keywords or exact phrases inside a public video's captions via Vidleaf (https://vidleaf.app) and return timestamped matches with surrounding context lines. Use when verifying exact quotes, locating specific topics, or jumping to timestamps in long lectures without loading the entire transcript. For full-transcript reading or summarization, use read_video_transcript instead.
Inputs: url (required), keywords (required), lang, limit, +3 more. Returns: hits, lang, title, status, +7 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: full transcript retrieval, targeted transcript search, and offline link construction. The descriptions explicitly cross-reference when to use each alternative, eliminating ambiguity.
All tool names use consistent snake_case with verb-led action phrasing. The pattern is predictable: read/search transcript operations plus a build-link operation, with no mixed conventions.
Three tools are well-scoped for a focused video-transcript utility. Each tool covers a distinct workflow: reading, searching, and generating actionable links.
The surface covers the core lifecycle for public video transcript workflows: locating content, reading full or paginated transcript data, searching within captions, and producing deep-reading links. Edge cases such as captionless videos and ASR confirmation are handled within the read tool.
Maintenance
Related MCP Connectors
Extract YouTube transcripts, search what was said, and read on-screen frames with cited timestamps.
Extract YouTube & Shorts transcripts, .srt/.vtt subtitles, timecoded segments & hooks in <2s.
Transcripts, translations, summaries, subtitles, and search for public YouTube videos.
Extract video transcripts, storyboard grids, and cited JSON from YouTube, TikTok, Reels, and X.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables extraction and processing of YouTube video transcripts from individual videos, channels, and playlists. Supports transcript search, batch processing, multiple output formats (JSON, text, SRT, VTT), and bulk operations across multiple videos.1134 npm-
- AlicenseNot gradedqualityCmaintenanceEnables link type detection, video downloading, metadata extraction, and transcript generation across 16+ platforms including YouTube, Bilibili, and WeChat Channels. Supports automatic subtitle extraction and optional Whisper speech-to-text for videos without captions.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to summarize, take notes on, and answer questions about YouTube, Bilibili, and Xiaohongshu videos by providing subtitles and local speech transcription with timestamps via MCP.1MIT
- AlicenseAqualityCmaintenanceEnables transcription of YouTube videos by using available captions or falling back to actual audio with local Whisper ASR and multiple free providers. It supports job status, transcript retrieval and search, audio excerpts, and export formats while keeping source links and timestamps.10MIT