YouTube 集成
YouTube MCP 服务器提供从 YouTube 视频中提取文字记录的功能。
可用工具
获取 YouTube 成绩单
从 YouTube 视频中检索文字记录。
参数:
videoUrl:完整的 YouTube 视频 URL(支持标准、缩短和嵌入 URL)
返回:包含以下内容的对象:
content:带有抄本文本的数组
URL 支持
处理多种 YouTube URL 格式:
标准:
https://www.youtube.com/watch?v=VIDEO_IDVIDEO_ID缩短版:
https://youtu.be/VIDEO_ID嵌入:
https://www.youtube.com/embed/VIDEO_ID
错误处理
服务器实现标准错误处理:
无效的 URL 返回
ErrorCode.InvalidParams缺少 URL 会返回
ErrorCode.InvalidParams成绩单提取失败会返回格式化的错误消息
SIGINT 信号正常关闭
技术细节
使用 Highlight AI MCP SDK 构建
使用 youtube-transcript 库
通过 Zod 进行输入验证
作为基于 stdio 的 MCP 服务器运行
支持 Node.js >=18.0.0
限制
仅适用于已启用字幕的视频
目前仅返回英文成绩单
速率限制取决于 YouTube 的 API 限制
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过提供视频 URL,支持标准、缩短和嵌入 URL 格式,可以从 YouTube 视频中提取文字记录。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos with language-specific support.Last updated -12291MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.Last updated -161
- Asecurity-licenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video transcripts and subtitles through a simple interface, making it ideal for content analysis and processing.Last updated -111426MIT License
- Asecurity-licenseAqualityA comprehensive MCP server for extracting YouTube video transcripts with support for multiple transports, languages, and output formats.Last updated -703MIT License