YouTube MCP

by Prajwal-ak-0
Verified

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.

Integrations

  • Uses Gemini AI to generate concise video summaries and power natural language queries about video content.

  • Provides tools for YouTube video analysis, including transcript extraction, video summarization, natural language queries about video content, search for videos matching specific queries, and comment retrieval and analysis.

YouTube MCP

YouTube ビデオ分析用の Model Context Protocol (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 : 動画のいいね数を取得する

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

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

YouTube 動画を分析し、ユーザーがトランスクリプトを抽出し、要約を生成し、Gemini AI を使用して動画コンテンツを照会できるようにするモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Requirements
      1. Running Locally
        1. Installing via Smithery
        2. Option 1: Direct Installation
        3. Option 2: Using MCP CLI
      2. Using with Docker
        1. Deploying on Smithery
          1. Available Tools
            1. Contributing
              ID: vwjgc5njo0