youtube-music

GitHub

通过 MCP 协议集成 YouTube Music,支持 AI 助手搜索歌曲及在浏览器中播放。需配置 API Key,适用于音乐检索与播放场景。

skills/youtube-music/SKILL.md happycapy-ai/Happycapy-skills

Trigger Scenarios

用户想要搜索特定歌曲或艺术家 用户希望播放音乐或发现新曲目

Install

npx skills add happycapy-ai/Happycapy-skills --skill youtube-music -g -y
More Options

Use without installing

npx skills use happycapy-ai/Happycapy-skills@youtube-music

指定 Agent (Claude Code)

npx skills add happycapy-ai/Happycapy-skills --skill youtube-music -a claude-code -g -y

安装 repo 全部 skill

npx skills add happycapy-ai/Happycapy-skills --all -g -y

预览 repo 内 skill

npx skills add happycapy-ai/Happycapy-skills --list

SKILL.md

Frontmatter
{
    "name": "youtube-music",
    "description": "Search and play music tracks on YouTube Music through MCP integration. Use when user wants to search for songs, play music, or discover tracks on YouTube Music platform."
}

YouTube Music MCP

🎵 A Model Context Protocol (MCP) server that enables AI assistants to search for and play tracks on YouTube Music.

Overview

This skill provides integration with YouTube Music through the MCP protocol, allowing you to search for songs by title or artist name and play them directly in the user's default web browser.

Available Tools

  • searchTrack - Search for music tracks on YouTube Music by title or artist name
  • playTrack - Search and automatically open tracks in the default web browser

Prerequisites

Before using this skill, ensure you have:

  1. A valid Google YouTube API Key from the Google Cloud Console
  2. Cursor or Claude Desktop properly configured

Installation

Add the following configuration to your .cursor/mcp.json file (or Claude Desktop configuration):

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

Replace <YOUR_API_KEY> with your actual YouTube API key.

Usage Examples

Searching for Tracks

User: "Search for Bohemian Rhapsody by Queen"
Assistant: [Uses searchTrack tool to find the track on YouTube Music]

Playing Tracks

User: "Play some jazz music"
Assistant: [Uses playTrack tool to search and open jazz music in browser]

Guidelines

  • Always verify that the YouTube API key is configured before attempting to use the tools
  • Provide clear feedback to users about what tracks were found or played
  • If a track cannot be found, suggest alternative search terms or artists
  • The playTrack tool will open tracks in the user's default web browser
  • Respect user preferences for music genres and artists

Technical Details

  • Protocol: Model Context Protocol (MCP)
  • Platform: YouTube Music
  • Execution: Runs via npx without requiring local installation
  • License: MIT

Author

Created by Kevin Kern / Instructa (@kregenrek)

Resources

Version History

  • e2976bc Current 2026-08-20 07:47

Same Skill Collection

skills/3d-web-experience/SKILL.md
skills/better-auth-best-practices/SKILL.md
skills/building-native-ui/SKILL.md
skills/canvas-design/SKILL.md
skills/capy-cortex/SKILL.md
skills/capy-video-gen-skill/SKILL.md
skills/contract-first-agents/SKILL.md
skills/create-design-system-rules/SKILL.md
skills/data-storytelling/SKILL.md
skills/frontend-slides/SKILL.md
skills/gbro-collage-broll/SKILL.md
skills/goplaces/SKILL.md
skills/happycapy-feishu/SKILL.md
skills/happycapy-skill-creator/SKILL.md
skills/image-enhancer/SKILL.md
skills/mobile-design/SKILL.md
skills/next-best-practices/SKILL.md
skills/oss-contributor-swarm/SKILL.md
skills/pdf/SKILL.md
skills/pptx/SKILL.md
skills/prompt-improver/SKILL.md
skills/redbook-creator-publish/SKILL.md
skills/reddit-post-skill/SKILL.md
skills/reddit-post-writer/SKILL.md
skills/resume-assistant/SKILL.md
skills/skill-creator/SKILL.md
skills/slack-gif-creator/SKILL.md
skills/supabase-postgres-best-practices/SKILL.md
skills/treatment-plans/SKILL.md
skills/video-downloader/SKILL.md
skills/video-frames/SKILL.md
skills/weather/SKILL.md
skills/writing-clearly-and-concisely/SKILL.md
skills/xiaohongshu-recruiter/SKILL.md
skills/360-panorama-viewer/SKILL.md
skills/apricot-ritual/SKILL.md
skills/azure-host/SKILL.md
skills/botanical-blur/SKILL.md
skills/coral-geyser/SKILL.md
skills/find-skills/SKILL.md
skills/html-over-markdown/SKILL.md
skills/latex-document/SKILL.md
skills/llm-council/SKILL.md
skills/mobile-app-developer/SKILL.md
skills/olive-rose/SKILL.md
skills/signal-green/SKILL.md
skills/world-class-carousel/SKILL.md
skills/ai-image-generation/SKILL.md
skills/ai-video-generation/SKILL.md

Metadata

Files
0
Version
e2976bc
Hash
c4ceee8f
Indexed
2026-08-20 07:47

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 01:41
浙ICP备14020137号-1 $Carte des visiteurs$