YouTube Transcript 扩展
🎥Plug & Play
Watch the demo
本教程介绍如何把 YouTube Transcript MCP 服务器 添加为 goose 扩展,以便获取并处理 YouTube 视频字幕。
快速安装
- goose Desktop
- goose CLI
命令
uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
配置
信息
运行此命令需要系统已安装 uv,因为会用到 uvx。
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
goose configure
- Choose to add a
Command-line Extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension (Streamable HTTP)
└
- Give your extension a name.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ YouTube Transcript
└
- Enter the command to run when this extension is used.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ YouTube Transcript
│
◆ What command should be run?
│ uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
└
- Enter the number of seconds goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ YouTube Transcript
│
◇ What command should be run?
│ uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ YouTube Transcript
│
◇ What command should be run?
│ uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ Access YouTube video transcripts
└
- Choose
Nowhen asked to add environment variables.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ YouTube Transcript
│
◇ What command should be run?
│ uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ Access YouTube video transcripts
│
◆ Would you like to add environment variables?
│ No
│
└ Added YouTube Transcript extension
使用示例
YouTube Transcript 扩展可以获取并处理 YouTube 视频字幕。你需要从目标视频 URL 中取出视频 ID。
goose 提示词
帮我获取这个 YouTube 视频的字幕:https://www.youtube.com/watch?v=dQw4w9WgXcQ
goose 输出
命令行
我来帮你获取这个视频的字幕。视频 ID 是 "dQw4w9WgXcQ"。正在拉取字幕。
字幕如下:
[字幕内容会显示在这里,包含时间戳和文本]
我已经拿到 Rick Astley 的《Never Gonna Give You Up》音乐视频字幕。字幕是歌词,由于系统是自动转录,会有一些小错误。其中包含这首 1987 年名曲的副歌和主歌。它后来成为互联网上最有名的梗之一,常被用来「rickroll」。
还需要我帮你处理这个视频或它的字幕吗?