Skip to main content

Vidleaf MCP Server & CLI (vidleaf-mcp)

PyPI Glama Score License: MIT Vidleaf

English · 简体中文 · Changelog

Zero-dependency Model Context Protocol (MCP) server and CLI for reading timestamped transcripts, searching exact quotes, and opening deep-reading sessions from YouTube, Bilibili, TikTok, Vimeo, 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), unwrap TikTok / 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?

  • 8 Video Platforms, 1 Unified Schema: Works across YouTube, Bilibili (BV..., b23.tv, ?p=N, Bangumi & Courses), TikTok (tiktok.com/@.../video/, vm.tiktok.com, vt.tiktok.com), Vimeo (vimeo.com/<id>, player.vimeo.com/video/<id>), Facebook Videos/Reels (fb.watch), Douyin, Xiaohongshu, and X / Twitter.
  • 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-mcp returns status: "asr_confirmation_required" with a one-click https://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 / .mcpb).

Quick Setup (Claude Desktop / Cursor / Cherry Studio / Windsurf)

Option A: uvx (PyPI short package name — zero install)

{
  "mcpServers": {
    "vidleaf": {
      "command": "uvx",
      "args": ["vidleaf-mcp"]
    }
  }
}

(Also installable via pip install vidleaf-mcp or pipx install vidleaf-mcp from PyPI.)

Option B: npx (Node.js — zero install directly from GitHub)

{
  "mcpServers": {
    "vidleaf": {
      "command": "npx",
      "args": ["-y", "github:blackmirror69/vidleaf-mcp"]
    }
  }
}

Option C: Claude Desktop 1-Click Extension (.mcpb — Official MCP Registry bundle)

Download vidleaf-mcp.mcpb from the latest GitHub Release and open or drag it into Claude Desktop → Settings → Extensions (zero terminal setup).

Option D: Docker (build locally from source, zero registry login)

docker build -t vidleaf-mcp https://github.com/blackmirror69/vidleaf-mcp.git
{
  "mcpServers": {
    "vidleaf": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "vidleaf-mcp"]
    }
  }
}

Optional environment variable: Set VIDLEAF_SESSION_COOKIE to your vsub_session value 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 -- uvx vidleaf-mcp (or Node: claude mcp add vidleaf -- npx -y github:blackmirror69/vidleaf-mcp)
  • Cherry Studio: Settings → MCP Servers → Add Server → Type STDIO, Command uvx, Args vidleaf-mcp (or Command npx, Args -y github:blackmirror69/vidleaf-mcp).

MCP Tools Exposed

Tool Purpose Network
read_video_transcript Fetch paginated [MM:SS] subtitle cues (timestamped, markdown, srt, or plain), track list, and Vidleaf deep-reader links (open_url, summary_open_url). Read-only (vidleaf.app)
search_video_transcript 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 (vidleaf.app)
build_vidleaf_open_link Deterministically extract a clean video URL from mobile share text and build https://vidleaf.app/open?url=... (goal="transcript" or "summary"), domain-swap shortcuts, and Markdown citations across all 8 platforms. Offline (openWorldHint: false)

CLI Usage

Both the Python and Node packages install vidleaf-mcp and vidleaf CLI commands:

# 1. Read timestamped transcript (YouTube, Bilibili BV ID, Vimeo, TikTok, 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 TikTok / 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 zh

Try Online & Quality Score (Glama MCP)

You can inspect tool schemas, verify our A-rated Tool Definition Quality Score (TDQS), and test vidleaf-mcp directly in your browser before installing via our Glama MCP Server listing or the Glama MCP Inspector.


Official Vidleaf Web Tools & Documentation

License

Released under the MIT License.

Metadata

Release files for vidleaf-mcp 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidleaf-mcp 1.1.1
File Size Uploaded Provenance Actions
vidleaf_mcp-1.1.1.tar.gz 24.2 kB With provenance Details for vidleaf_mcp-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vidleaf-mcp 1.1.1
File Interpreter ABI Platform Actions
vidleaf_mcp-1.1.1-py3-none-any.whl Python 3 none any Details for vidleaf_mcp-1.1.1-py3-none-any.whl

Total release size: 45.4 kB

Release files / vidleaf_mcp-1.1.1.tar.gz

Download URL vidleaf_mcp-1.1.1.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c31e3d42eec9fd61f6ecfbc499dc18021e2e9dfee5205981c580fc31a9a28fcf
BLAKE2b-256 checksum
How to use checksums
cadd7de9030e4b509d6f2cd3e8932c144e1f6823a807449e971557e4fe7a4cbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / vidleaf_mcp-1.1.1-py3-none-any.whl

Download URL vidleaf_mcp-1.1.1-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05fa079075964f995db279762be228f0246ae1cd9be63aec23016eb766cd7990
BLAKE2b-256 checksum
How to use checksums
714213ad1ed19015c6ef79c6305e9f96cce3d1393ae638500ca43dad05f27f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for vidleaf-mcp 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vidleaf_mcp-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page