Skip to main content
Glama

YouTube Music MCP Server

by mondweep

YouTubeミュージックMCPサーバー

概要

このプロジェクトは、AIモデルがGoogle Chrome経由でYouTube Musicの再生を制御できるようにするModel Context Protocol(MCP)サーバーを実装します。これにより、AIアシスタントと音楽再生の間のギャップが解消され、AIが曲名やアーティスト名に基づいて曲を検索・再生できるようになります。

MCPとは何ですか?

モデルコンテキストプロトコル(MCP)は、AIモデルが外部ツールやサービスと連携するための標準化された方法です。MCPは、AIアシスタントが以下のことを可能にする構造化された通信プロトコルを提供します。

  • 利用可能なツールを見つける
  • ツールの機能を理解する
  • これらのツールを通じてアクションを実行する
  • 応答とエラーを一貫して処理する

MCP について詳しくは:

特徴

  • YouTube Musicで曲を検索
  • Google Chromeで直接曲を再生
  • 曲名とアーティスト名の検索をサポート
  • エラー処理とログ記録
  • クロスプラットフォーム サポート (Chrome 自動化では macOS に重点を置く)

建築

概要

youtube-music-server MCP サーバー

モデルコンテキストプロトコルサーバー

これは、シンプルなメモシステムを実装したTypeScriptベースのMCPサーバーです。以下の機能を提供することで、MCPのコアコンセプトを実証しています。

  • URIとメタデータを含むテキストメモを表すリソース
  • 新しいノートを作成するためのツール
  • メモの要約を生成するためのプロンプト

特徴

リソース

  • note:// URI 経由でメモの一覧表示とアクセスを行う
  • 各ノートにはタイトル、内容、メタデータがあります
  • シンプルなコンテンツアクセスのためのプレーンテキスト MIME タイプ

ツール

  • create_note - 新しいテキストノートを作成する
    • タイトルとコンテンツを必須パラメータとして受け取ります
    • メモをサーバー状態に保存する

プロンプト

  • summarize_notes - 保存されているすべてのメモの要約を生成する
    • すべてのノートの内容を埋め込みリソースとして含めます
    • LLM要約のための構造化されたプロンプトを返す

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "youtube-music-server": { "command": "/path/to/youtube-music-server/build/index.js" } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

曲名やアーティスト名を使用して曲を検索し再生することで、AI モデルが Google Chrome 経由で YouTube Music の再生を制御できるようにする MCP サーバー。

  1. 概要
    1. MCPとは何ですか?
      1. 特徴
        1. 建築
          1. 概要
        2. youtube-music-server MCP サーバー
          1. 特徴
          2. 発達
          3. インストール

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          An MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.
          Last updated -
          3
          39
          52
          TypeScript
        • A
          security
          A
          license
          A
          quality
          A headless browser MCP server that allows AI agents to fetch web content and perform Google searches without API keys, supporting various output formats like Markdown, JSON, HTML, and text.
          Last updated -
          2
          4
          TypeScript
          MIT License
        • -
          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 MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.
          Last updated -
          5
          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/mondweep/youtube-music-mcp-server'

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