Communitygithub.com

YouTube Music MCP 技能

通过 MCP 集成搜索并在 YouTube Music 上播放音乐曲目。当用户想要搜索歌曲、播放音乐或在 YouTube Music 平台上发现曲目时使用。

YouTube Music MCP 技能 是什么?

YouTube Music MCP 是一个基于模型上下文协议(MCP)的服务器,使 AI 助手能够直接在 YouTube Music 上搜索和播放音乐。该技能支持两种主要工具:searchTrack(按标题或艺术家名称搜索曲目)和 playTrack(自动搜索并打开默认浏览器播放)。使用前需要一个有效的 Google YouTube API 密钥,并配置在 .cursor/mcp.json 或 Claude Desktop 配置文件中。该技能无需本地安装,通过 npx 命令即可运行,为用户提供无缝的音乐搜索和播放体验,同时支持按类型或艺术家推荐音乐。

兼容平台✓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

相关技能