
针对AI代理的即时引用YouTube研究——文字记录搜索、精确时间戳链接、跨视频证据以及基于MCP的频道智能
概览
将YouTube视频转化为Codex、Claude、Cursor及其他MCP客户端的可引用研究资料。粘贴视频URL,获取带有时间戳和链接的文字记录证据,这些链接在引用的准确时刻打开。 调研文字稿不需要YouTube API密钥。 - — 每个文字记录片段都包含时间戳和源URL。- — 文字记录可立即生效;仅添加API键用于搜索和分析。- — 支持普通、短视频、Shorts、嵌入、直播和原始视频ID格式。- — 可在文字稿内搜索并返回附近上下文,而无需花费代币购买整个视频。- — 可选的API模式可添加评论、视频/频道统计、趋势和比较。- — 可在/mcp提供可流式HTTP传输,并支持Docker和Smithery。 MCP层验证输入并返回结构化证据;它不要求模型发明摘要或引用。转录工具从字幕片段中推导出时间戳和规范链接。
概述(AI 翻译)
将YouTube视频转化为Codex、Claude、Cursor及其他MCP客户端的可引用研究资料。粘贴视频URL,获取带有时间戳和链接的文字记录证据,这些链接在引用的准确时刻打开。
调研文字稿不需要YouTube API密钥。
为什么是这个服务器
- 可引用的研究 — 每个转录片段都包含时间戳和来源URL。
- 零键快速启动 — 转录立即生效;仅添加API密钥用于搜索和分析。
- URL优先输入 — 支持普通、短视频、嵌入视频、实时视频和原始视频ID格式。
- 代理高效过滤 — 在文字稿内搜索并返回附近的上下文,而不是花费代币购买整个视频。
- 完整的YouTube智能 — 可选的API模式可添加评论、视频/频道统计、趋势和对比。
- 远程原生MCP — 在[T0]]支持可流式HTTP传输,并支持Docker和Smithery。
建筑与信任边界
MCP层验证输入并返回结构化证据;它不要求模型发明摘要或引用。转录工具从字幕片段中推导出时间戳和规范链接。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
YouTube Research MCP
Turn YouTube videos into citation-ready research for Codex, Claude, Cursor, and other MCP clients. Paste a video URL and get transcript evidence with timestamps and links that open at the exact quoted moment.
Input: https://youtu.be/dQw4w9WgXcQ
Output: [01:05] ...evidence text...
https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=65s
No YouTube API key is required for transcript research.
Why this server
- Citation-ready research — every transcript segment includes a timestamp and source URL.
- Zero-key quick start — transcripts work immediately; add an API key only for search and analytics.
- URL-first input — accepts normal, short, Shorts, embed, live, and raw video-ID formats.
- Agent-efficient filtering — search inside transcripts and return nearby context instead of spending tokens on the entire video.
- Full YouTube intelligence — optional API mode adds comments, video/channel statistics, trends, and comparisons.
- Remote-native MCP — Streamable HTTP transport at
/mcp, plus Docker and Smithery support.
Architecture and trust boundary
flowchart LR
C[MCP client] -->|stdio or Streamable HTTP| T[Transport]
T --> R[Tool and resource registry]
R --> S[YouTubeService]
S --> K[(In-memory cache)]
S -->|no key required| YT[Caption tracks]
S -->|optional API key| API[YouTube Data API v3]
The MCP layer validates inputs and returns structured evidence; it does not ask a model to invent summaries or citations. Transcript tools derive timestamps and canonical links from caption segments. Data API tools return an explicit key-required error when YOUTUBE_API_KEY is unavailable, and remote authentication is enforced before MCP session handling.
Focused evidence, not a transcript dump
The included live smoke test asks a focused question about a public video and compares the response with the full timestamped transcript:
安装
npx -y @coyasong/youtube-mcp-server@latest