Skip to main content
Glama

YouTube MCP

YouTube MCP

用于 YouTube 视频分析的模型上下文协议 (MCP) 服务器,提供使用 Gemini AI 获取成绩单、总结内容和查询视频的工具。

特征

  • 📝成绩单提取:从 YouTube 视频中获取详细的成绩单
  • 📊视频摘要:使用 Gemini AI 生成简洁的摘要
  • 自然语言查询:询问有关视频内容的问题
  • 🔍 YouTube 搜索:查找符合特定查询的视频
  • 💬评论分析:检索并分析视频评论

要求

  • Python 3.9+
  • Google Gemini API 密钥
  • YouTube 数据 API 密钥

本地运行

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 youtube-mcp:

npx -y @smithery/cli install @Prajwal-ak-0/youtube-mcp --client claude

选项 1:直接安装

  1. 克隆存储库:
    git clone https://github.com/Prajwal-ak-0/youtube-mcp cd youtube-mcp
  2. 创建虚拟环境并安装依赖项:
    python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e .
  3. 使用您的 API 密钥创建一个.env文件:
    GEMINI_API_KEY=your_gemini_api_key YOUTUBE_API_KEY=your_youtube_api_key
  4. 运行 MCP 服务器:
    python main.py

选项 2:使用 MCP CLI

  1. 安装 MCP CLI:
    pip install mcp
  2. 在您的项目中创建一个mcp.json文件:
    { "youtube": { "command": "uv", "args": [ "--directory", "/absolute/path/to/youtube-mcp", "run", "main.py", "--transport", "stdio", "--debug" ] } }
  3. 使用 MCP 启动服务器:
    mcp run youtube

与 Docker 一起使用

  1. 构建 Docker 镜像:
    docker build -t youtube-mcp .
  2. 使用您的 API 密钥运行容器:
    docker run -e GEMINI_API_KEY=your_gemini_api_key -e YOUTUBE_API_KEY=your_youtube_api_key youtube-mcp

在 Smithery 上部署

该 MCP 服务器可以部署在Smithery上,以便于访问:

  1. 在 Smithery 上添加或声明您的服务器
  2. 单击 Smithery 部署选项卡上的“部署”
  3. 出现提示时提供您的 API 密钥

可用工具

  • youtube/get-transcript :获取视频记录
  • youtube/summarize :生成视频摘要
  • youtube/query :回答有关视频的问题
  • youtube/search :搜索 YouTube 视频
  • youtube/get-comments :检索视频评论
  • youtube/get-likes :获取视频点赞数

贡献

欢迎贡献!请随时提交 Pull 请求。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

一个分析 YouTube 视频的模型上下文协议服务器,使用户能够使用 Gemini AI 提取成绩单、生成摘要和查询视频内容。

  1. 特征
    1. 要求
      1. 本地运行
        1. 通过 Smithery 安装
        2. 选项 1:直接安装
        3. 选项 2:使用 MCP CLI
      2. 与 Docker 一起使用
        1. 在 Smithery 上部署
          1. 可用工具
            1. 贡献

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video captions and subtitles through a simple interface.
                Last updated -
                1
                526
                189
                JavaScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables retrieval of transcripts from YouTube videos with language-specific support.
                Last updated -
                526
                MIT License
              • -
                security
                F
                license
                -
                quality
                A 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 -
                6
                1
                TypeScript
              • -
                security
                -
                license
                -
                quality
                A Model Context Protocol server that enables access to YouTube video content through transcripts, translations, summaries, and subtitle generation in various languages.
                Last updated -
                Python
                MIT License

              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/Prajwal-ak-0/youtube-mcp'

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