Skip to main content
Glama

Youtube MCP Server

Youtube MCP サーバー

について

サーバーは、Youtube API と AI アシスタント間のブリッジであり、モデル コンテキスト プロトコルに基づいています。

MCPとは何ですか?

モデルコンテキストプロトコル(MCP)は、Claude DesktopのようなAIアプリが外部ツールやデータソースに接続できるようにするシステムです。これにより、AIアシスタントがローカルサービスやAPIを操作しながら、ユーザーによる操作を明確かつ安全に行えるようになります。

このサーバーは何をしますか?

  • [x] 指定されたビデオのクローズドキャプションをダウンロードする

実用的なユースケース

  • [x] ビデオの要約を作成する

前提条件

インストール

uv tool install git+https://github.com/sparfenyuk/mcp-youtube

[!NOTE] サーバーをすでにインストールしている場合は、 uv tool upgrade --reinstallコマンドを使用して更新できます。

[!NOTE] サーバーを削除する場合は、 uv tool uninstall mcp-youtubeコマンドを使用します。

構成

クロードデスクトップ構成

Claude Desktop を Youtube MCP サーバーを認識するように設定します。

  1. Claude Desktop 構成ファイルを開きます。
    • MacOSでは、設定ファイルは~/Library/Application Support/Claude/claude_desktop_config.jsonにあります。
    • Windowsでは、構成ファイルは%APPDATA%\Claude\claude_desktop_config.jsonにあります。

    注: claude_desktop_config.json は Claude Desktop アプリの設定内にもあります。

  2. サーバー構成を追加する
    { "mcpServers": { "mcp-youtube": { "command": "mcp-youtube", } } } }

発達

はじめる

  1. リポジトリをクローンする
  2. 依存関係をインストールする
    uv sync
  3. サーバーを実行する
    uv run mcp-youtube --help

ツールはsrc/mcp_youtube/tools.pyファイルに追加できます。

新しいツールを追加する方法:

  1. ToolArgsから継承する新しいクラスを作成する
    class NewTool(ToolArgs): """Description of the new tool.""" pass
    クラスの属性はツールの引数として使用されます。クラスのdocstringはツールの説明として使用されます。
  2. 新しいクラスにtool_runner関数を実装する
    @tool_runner.register async def new_tool(args: NewTool) -> t.Sequence[TextContent | ImageContent | EmbeddedResource]: pass
    この関数は、TextContent、ImageContent、またはEmbeddedResourceのシーケンスを返す必要があります。この関数は非同期で、新しいクラスの単一の引数を受け入れる必要があります。
  3. 完了です。クライアントを再起動すると、新しいツールが利用できるようになります。

検証は、Claude Desktop を通じて、またはツールを直接実行することによって実行できます。

インスペクターでサーバーをデバッグする

MCPインスペクターは、洗練されたUIを使用してサーバーのデバッグを支援するツールです。実行するには、次のコマンドを使用します。

npx @modelcontextprotocol/inspector uv run mcp-youtube

トラブルシューティング

メッセージ「MCP サーバー mcp-youtube に接続できませんでした」

Claude Desktop に「MCP サーバー mcp-youtube に接続できませんでした」というメッセージが表示される場合は、サーバーの構成が正しくないことを意味します。

次のことを試してください。

  • 設定ファイルでmcp-youtubeバイナリへのフルパスを使用します
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

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

YouTube API と AI アシスタントを橋渡しし、字幕をダウンロードして処理し、YouTube 動画の要約を作成することで動画分析を可能にします。

  1. について
    1. MCPとは何ですか?
      1. このサーバーは何をしますか?
        1. 実用的なユースケース
          1. 前提条件
            1. インストール
              1. 構成
                1. クロードデスクトップ構成
              2. 発達
                1. はじめる
                2. インスペクターでサーバーをデバッグする
              3. トラブルシューティング
                1. メッセージ「MCP サーバー mcp-youtube に接続できませんでした」

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                This server allows AI language models to interact with YouTube content through a standardized interface, providing features such as video and channel information retrieval, transcript management, and playlist operations.
                Last updated 22 days ago
                7
                182
                242
                TypeScript
                • Linux
                • Apple
              • -
                security
                F
                license
                -
                quality
                The MCP Server integrates APIs from the Youtube-Summarizer as tools within the MCP protocol, allowing for local AI application interaction and tool utilization through natural language queries.
                Last updated 6 months ago
                Python
              • -
                security
                F
                license
                -
                quality
                Enables AI applications to integrate with YouTube-Summarizer's APIs through the MCP protocol, offering local tool-based interaction for summarizing YouTube content.
                Last updated 17 days ago
                2
                Python
              • -
                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 14 days ago
                852
                37
                JavaScript

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

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