Skip to main content
Glama

YouTube MCP Server

by kevinwatt

yt-dlp-mcp

与 yt-dlp 集成的 MCP 服务器实现,为 LLM 提供视频和音频内容下载功能(例如 YouTube、Facebook、Tiktok 等)。

特征

  • 字幕:下载 SRT 格式的字幕,供法学硕士阅读
  • 视频下载:将视频保存到您的下载文件夹并控制分辨率
  • 音频下载:将音频保存到您的下载文件夹
  • 注重隐私:直接下载,无需追踪
  • MCP 集成:与 Dive 和其他兼容 MCP 的 LLM 兼容

安装

先决条件

根据您的操作系统安装yt-dlp

# Windows winget install yt-dlp # macOS brew install yt-dlp # Linux pip install yt-dlp

使用Dive Desktop

  1. 在 Dive Desktop 中点击“+ 添加 MCP 服务器”
  2. 复制并粘贴此配置:
{ "mcpServers": { "yt-dlp": { "command": "npx", "args": [ "-y", "@kevinwatt/yt-dlp-mcp" ] } } }
  1. 点击“保存”安装 MCP 服务器

工具文档

  • 列出字幕语言
    • 列出视频所有可用的字幕语言及其格式(包括自动生成的字幕)
    • 输入:
      • url (字符串,必需):视频的 URL
  • 下载视频字幕
    • 下载任何可用格式的视频字幕。支持常规字幕和自动生成的字幕
    • 输入:
      • url (字符串,必需):视频的 URL
      • language (字符串,可选):语言代码(例如,'en'、'zh-Hant'、'ja')。默认为 'en'
  • 下载视频
    • 将视频下载到用户的下载文件夹
    • 输入:
      • url (字符串,必需):视频的 URL
      • resolution (字符串,可选):视频分辨率('480p'、'720p'、'1080p'、'best')。默认为 '720p'
  • 下载音频
    • 将最佳质量的音频(通常为 m4a/mp3 格式)下载到用户的下载文件夹
    • 输入:
      • url (字符串,必需):视频的 URL

使用示例

要求你的法学硕士:

"List available subtitles for this video: https://youtube.com/watch?v=..." "Download a video from facebook: https://facebook.com/..." "Download Chinese subtitles from this video: https://youtube.com/watch?v=..." "Download this video in 1080p: https://youtube.com/watch?v=..." "Download audio from this YouTube video: https://youtube.com/watch?v=..."

手动启动

如果需要,请手动启动服务器:

npx @kevinwatt/yt-dlp-mcp

要求

  • Node.js 20+
  • 系统 PATH 中的yt-dlp
  • MCP 兼容的 LLM 服务

文档

执照

麻省理工学院

作者

颜德伟

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

通过模型上下文协议将“yt-dlp”与 LLM 连接起来,允许用户下载 YouTube 内容并将其与 Dive 和其他与 MCP 兼容的 LLM 集成。

  1. 特征
    1. 安装
      1. 先决条件
      2. 使用Dive Desktop
    2. 工具文档
      1. 使用示例
        1. 手动启动
          1. 要求
            1. 文档
              1. 执照
                1. 作者

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    Uses yt-dlp to download subtitles from YouTube and connects it to claude.ai via Model Context Protocol.
                    Last updated -
                    1
                    868
                    201
                    JavaScript
                    MIT License
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A comprehensive toolkit that enhances LLM capabilities through the Model Context Protocol, allowing LLMs to interact with external services including command-line operations, file management, Figma integration, and audio processing.
                    Last updated -
                    17
                    Python
                    Apache 2.0
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.
                    Last updated -
                    32
                    Python
                    Apache 2.0
                  • -
                    security
                    F
                    license
                    -
                    quality
                    An MCP server that enables LLMs to search YouTube, retrieve video information, and access video transcripts through standardized tools.
                    Last updated -
                    TypeScript

                  View all related MCP servers

                  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/kevinwatt/yt-dlp-mcp'

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