Skip to main content
Glama

YouTube MCP Server

YouTube MCP サーバー

YouTube 用のモデル コンテキスト プロトコル (MCP) サーバー実装。これにより、AI 言語モデルが標準化されたインターフェースを通じて YouTube コンテンツと対話できるようになります。

特徴

ビデオ情報

  • ビデオの詳細(タイトル、説明、再生時間など)を取得します
  • チャンネル動画の一覧
  • 動画の統計情報(視聴回数、いいね数、コメント数)を取得する
  • YouTube の動画を検索

トランスクリプト管理

  • ビデオのトランスクリプトを取得する
  • 複数の言語をサポート
  • タイムスタンプ付きキャプションを取得する
  • トランスクリプト内を検索

チャンネル管理

  • チャンネルの詳細を取得する
  • チャンネルのプレイリストを一覧表示する
  • チャンネル統計を取得する
  • チャンネルコンテンツ内を検索

プレイリスト管理

  • プレイリスト項目を一覧表示する
  • プレイリストの詳細を取得する
  • プレイリスト内を検索
  • プレイリストの動画のトランスクリプトを取得する

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の YouTube MCP サーバーを自動的にインストールするには:

npx -y @smithery/cli install @ZubeidHendricks/youtube --client claude

手動インストール

npm install zubeid-youtube-mcp-server

構成

次の環境変数を設定します。

  • YOUTUBE_API_KEY : YouTubeデータAPIキー
  • YOUTUBE_TRANSCRIPT_LANG : トランスクリプトのデフォルト言語(オプション、デフォルトは「en」)

MCPクライアントでの使用

これを MCP クライアント構成 (例: Claude Desktop) に追加します。

{ "mcpServers": { "youtube": { "command": "npx", "args": ["-y", "zubeid-youtube-mcp-server"], "env": { "YOUTUBE_API_KEY": "<YOUR_API_KEY>" } } } }

VS Codeでの使用

ワンクリックでインストールするには、以下のいずれかのインストールボタンをクリックします。

手動インストール

手動でインストールする場合は、まずこのセクションの上部にあるインストールボタンをチェックしてください。それ以外の場合は、以下の手順に従ってください。

VS Codeのユーザー設定(JSON)ファイルに、以下のJSONブロックを追加します。Ctrl Ctrl + Shift + Pを押してPreferences: Open User Settings (JSON)と入力することで実行できます。

{ "mcp": { "inputs": [ { "type": "promptString", "id": "apiKey", "description": "YouTube API Key", "password": true } ], "servers": { "youtube": { "command": "npx", "args": ["-y", "zubeid-youtube-mcp-server"], "env": { "YOUTUBE_API_KEY": "${input:apiKey}" } } } } }

オプションとして、ワークスペース内の.vscode/mcp.jsonというファイルに追加することもできます。

{ "inputs": [ { "type": "promptString", "id": "apiKey", "description": "YouTube API Key", "password": true } ], "servers": { "youtube": { "command": "npx", "args": ["-y", "zubeid-youtube-mcp-server"], "env": { "YOUTUBE_API_KEY": "${input:apiKey}" } } } }

YouTube API のセットアップ

  1. Google Cloud Console に移動
  2. 新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
  3. YouTube Data API v3 を有効にする
  4. API認証情報(APIキー)を作成する
  5. 設定用のAPIキーをコピーします

ビデオの管理

// Get video details const video = await youtube.videos.getVideo({ videoId: "video-id" }); // Get video transcript const transcript = await youtube.transcripts.getTranscript({ videoId: "video-id", language: "en" }); // Search videos const searchResults = await youtube.videos.searchVideos({ query: "search term", maxResults: 10 });

チャンネルの管理

// Get channel details const channel = await youtube.channels.getChannel({ channelId: "channel-id" }); // List channel videos const videos = await youtube.channels.listVideos({ channelId: "channel-id", maxResults: 50 });

プレイリストの管理

// Get playlist items const playlistItems = await youtube.playlists.getPlaylistItems({ playlistId: "playlist-id", maxResults: 50 }); // Get playlist details const playlist = await youtube.playlists.getPlaylist({ playlistId: "playlist-id" });

発達

# Install dependencies npm install # Run tests npm test # Build npm run build # Lint npm run lint

貢献

このリポジトリへの貢献については、CONTRIBUTING.md を参照してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

-
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.

このサーバーにより、AI 言語モデルは標準化されたインターフェースを介して YouTube コンテンツと対話できるようになり、動画やチャンネルの情報の取得、トランスクリプトの管理、プレイリストの操作などの機能が提供されます。

  1. 特徴
    1. ビデオ情報
    2. トランスクリプト管理
    3. チャンネル管理
    4. プレイリスト管理
  2. インストール
    1. Smithery経由でインストール
    2. 手動インストール
  3. 構成
    1. MCPクライアントでの使用
      1. VS Codeでの使用
      2. 手動インストール
    2. YouTube API のセットアップ
        1. ビデオの管理
        2. チャンネルの管理
        3. プレイリストの管理
      1. 発達
        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
              F
              license
              -
              quality
              Enables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.
              Last updated -
              852
              1
              JavaScript
            • -
              security
              A
              license
              -
              quality
              An MCP server that allows Claude and other AI assistants to interact with the YouTube API, providing tools to search videos/channels and retrieve detailed information about them.
              Last updated -
              1
              JavaScript
              MIT License
              • Apple
            • -
              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

            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/ZubeidHendricks/youtube-mcp-server'

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