Communitygithub.com

YouTube Music MCP 音樂搜尋播放技能

透過 MCP 整合在 YouTube Music 上搜尋並播放音樂曲目。當使用者想搜尋歌曲、播放音樂或探索 YouTube Music 平台上的曲目時使用。

YouTube Music MCP 音樂搜尋播放技能 是什麼?

此技能透過模型上下文協議(MCP)將 AI 助手與 YouTube Music 平台整合,讓使用者能夠以對話方式搜尋歌曲並直接在預設瀏覽器中播放。技能提供兩個主要工具:`searchTrack` 用於根據曲名或藝人名稱搜尋音樂曲目,`playTrack` 則可搜尋並自動開啟曲目至瀏覽器。使用者需先在 Google Cloud Console 取得有效的 YouTube API 金鑰,並在 Cursor 或 Claude Desktop 的 MCP 設定檔中配置。技能以 `npx` 執行,無需本機安裝,適合開發者與 AI 代理在音樂發現與聆聽場景中使用。

相容平台✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/happycapy-ai/Happycapy-skills/youtube-music

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

YouTube Music MCP

🎵 一個基於模型上下文協議(MCP)的伺服器,讓 AI 助手能夠搜尋並在 YouTube Music 上播放曲目。

概述

此技能透過 MCP 協議提供與 YouTube Music 的整合,讓您可以根據曲名或藝人名稱搜尋歌曲,並直接在使用者的預設網頁瀏覽器中播放。

可用工具

  • searchTrack - 根據曲名或藝人名稱在 YouTube Music 上搜尋音樂曲目
  • playTrack - 搜尋並自動在預設網頁瀏覽器中開啟曲目

先決條件

使用此技能前,請確保您已具備:

  1. 有效的 Google YouTube API 金鑰,可從 Google Cloud Console 取得
  2. 已正確配置 Cursor 或 Claude Desktop

安裝

將以下配置加入您的 .cursor/mcp.json 檔案(或 Claude Desktop 配置):

{
  "mcpServers": {
    "youtube-music-mcp": {
      "command": "npx",
      "args": ["-y", "@instructa/mcp-youtube-music"],
      "env": {
        "YOUTUBE_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

將 <YOUR_API_KEY> 替換為您的實際 YouTube API 金鑰。

使用範例

搜尋曲目

使用者:「搜尋 Queen 的 Bohemian Rhapsody」
助手:[使用 searchTrack 工具在 YouTube Music 上找到該曲目]

播放曲目

使用者:「播放一些爵士樂」
助手:[使用 playTrack 工具搜尋並在瀏覽器中開啟爵士樂]

使用指南

  • 使用工具前,務必確認 YouTube API 金鑰已正確配置
  • 向使用者提供清晰的回饋,說明找到或播放了哪些曲目
  • 如果找不到曲目,建議替代的搜尋詞或藝人
  • playTrack 工具會在使用者的預設網頁瀏覽器中開啟曲目
  • 尊重使用者對音樂類型和藝人的偏好

技術細節

  • 協議:模型上下文協議(MCP)
  • 平台:YouTube Music
  • 執行方式:透過 npx 執行,無需本機安裝
  • 授權條款:MIT

作者

由 Kevin Kern / Instructa 建立(@kregenrek)

資源

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能