Skip to main content
Glama

YouTube MCP Integration

by spolepaka

YouTube MCP統合

このプロジェクトは、YouTube 用のモデル コンテキスト プロトコル (MCP)統合を提供し、LLM が標準化されたツールを使用して YouTube を検索し、ビデオ情報を取得し、トランスクリプトを取得できるようにします。

特徴

  • YouTube 検索ツール: 検索結果の制限を設定して YouTube の動画を検索します
  • 動画情報ツール: YouTube動画の詳細情報を取得します
  • トランスクリプトツール: YouTube 動画のトランスクリプトを取得して解析します

建築

この実装は、LLMが外部ツールやリソースと連携する方法を標準化するモデルコンテキストプロトコル(MCP)仕様に準拠しています。アーキテクチャは以下の要素で構成されています。

  1. MCP サーバー: HTTP/SSE トランスポートを介して YouTube 機能を MCP ツールとして提供します。
  2. YouTube API 統合: YouTube データをスクレイピングして、検索、動画情報、トランスクリプト機能を提供します
  3. MCP クライアント: MCP YouTube ツールの使用方法を示すサンプル クライアント

はじめる

前提条件

  • Node.js 18歳以上
  • npm

インストール

# Clone the repository git clone https://github.com/your-username/ephor-youtube-mcp.git cd ephor-youtube-mcp # Install dependencies npm install # Build the project npm run build

サーバーの実行

MCP サーバーを起動します。

npm run start

サーバーは、次のエンドポイントを使用してhttp://localhost:3000で起動します。

  • SSEエンドポイント: /sse
  • メッセージエンドポイント: /messages

MCPクライアントでの使用

MCPツールは、MCP対応クライアントであればどれでも使用できます。ツールの使用例を以下に示します。

// Initialize client const client = new Client( { name: 'youtube-client', version: '1.0.0' }, { capabilities: { tools: {} } } ); // Connect to the server await client.connect(transport); // Search YouTube const searchResults = await client.callTool({ name: 'youtube_search', arguments: { query: 'javascript tutorial', limit: 3 } }); // Get video info const videoInfo = await client.callTool({ name: 'youtube_get_video_info', arguments: { input: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' } }); // Get video transcript const transcript = await client.callTool({ name: 'youtube_get_transcript', arguments: { input: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' } });

利用可能なツール

YouTube 動画を検索します。

引数:

  • query (文字列、必須): 検索クエリ
  • limit (数値、オプション): 結果の最大数 (1-10、デフォルト: 5)

**応答:**タイトル、動画 ID、URL、サムネイル、説明、チャンネル情報、視聴回数、公開日などの詳細を含む動画結果のリスト。

youtube_get_video_info

YouTube 動画の詳細情報を取得します。

引数:

  • input (文字列、必須): YouTube 動画の ID または URL

**応答:**タイトル、説明、視聴回数、公開日、チャンネルの詳細、サムネイル URL などの詳細な動画情報。

youtube_get_transcript

YouTube ビデオのトランスクリプトを取得します。

引数:

  • input (文字列、必須): YouTube 動画の ID または URL

**応答:**タイムスタンプ付きのエントリと基本的なビデオ情報を含むビデオのトランスクリプト。

ライセンス

マサチューセッツ工科大学

謝辞

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

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.

LLM が標準化されたツールを使用して YouTube を検索し、ビデオ情報を取得し、ビデオのトランスクリプトにアクセスできるようにする MCP サーバー。

  1. 特徴
    1. 建築
      1. はじめる
        1. 前提条件
        2. インストール
        3. サーバーの実行
        4. MCPクライアントでの使用
      2. 利用可能なツール
        1. youtube_search
        2. youtube_get_video_info
        3. youtube_get_transcript
      3. ライセンス
        1. 謝辞

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            An MCP server that enables users to list, download, search, and manage Zoom meeting transcripts through a structured interface.
            Last updated -
            6
            1
            JavaScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            An MCP server that allows Claude and other LLMs to manage persistent memories across conversations through text file storage, enabling commands to add, search, delete and list memory entries.
            Last updated -
            2
            TypeScript
          • -
            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
            Simple MCP server that returns the transcription of a Youtube video using url and desired language.
            Last updated -
            Python

          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/spolepaka/ephor-youtube-mcp'

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