Skip to main content
Glama

YouTube 集成

YouTube MCP 服务器提供从 YouTube 视频中提取文字记录的功能。

可用工具

获取 YouTube 成绩单

从 YouTube 视频中检索文字记录。

参数

  • videoUrl :完整的 YouTube 视频 URL(支持标准、缩短和嵌入 URL)

返回:包含以下内容的对象:

  • content :带有抄本文本的数组

Related MCP server: YouTube Transcript Extractor MCP

URL 支持

处理多种 YouTube URL 格式:

  • 标准: https://www.youtube.com/watch?v=VIDEO_ID VIDEO_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 限制

F
license - not found
-
quality - not tested
-
maintenance - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/highlight-ing/highlight-youtube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server