YouTube Music

by instructa

3 stars
395 downloads
Not rated
GitHub

About

Enables searching and playing music tracks through YouTube Music with automatic browser launching for seamless playback requests.

Details

Author
instructa
Repository
instructa/mcp-youtube-music
GitHub stars
3
Downloads
395
Categories
Search, Other, Media, Developer Tools, Design, AI, Community, Communication, Infrastructure
Tags
#web

- Search for tracks on YouTube Music by name.
- Play tracks directly by opening them in your default browser.
- Integrates with AI assistants like Cursor and Claude Desktop.
- Simple npx‑based setup, no manual installation needed.
- Uses the YouTube Music platform and MCP protocol.
- Requires a valid Google YouTube API key.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name YouTube Music
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @instructa/mcp-youtube-music
    Environment
    • YOUTUBE_API_KEY <INSERT_API_KEY_HERE>

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain a valid Google YouTube API Key from the Google Cloud Console. Then add the provided MCP configuration to your Cursor .cursor/mcp.json file, inserting your API key. Run the server via npx using the @instructa/mcp-youtube-music package; no local installation or building is required unless you intend to modify the source code.

searchTrack

Search for tracks on YouTube Music by name.

playTrack

Play tracks directly by searching and opening them in your default browser.

- searchTrack: Search for tracks on YouTube Music by name.
- playTrack: Play tracks directly by searching and opening them in your default browser.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

Linux

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

Macos

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

Windows

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

This is a simple MCP server that allows you to search for and play tracks on YouTube Music directly from your AI assistant like Cursor or Claude Desktop.

- searchTrack: Search for tracks on YouTube Music by name.
- playTrack: Play tracks directly by searching and opening them in your default browser.

To make this work you need a validGoogle Youtube API Key

Add the following MCP configuration to your Cursor.cursor/mcp.jsonsettings:

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

This MCP is typically run directly usingnpxand doesn't require local installation or building unless you intend to modify the source code. If you want to develop it locally, you would typically clone the source repository (if available) and follow its specific contribution guidelines.

This project is licensed under the MIT License - see the LICENSE file for details.

- X/Twitter:@kregenrek
- Bluesky:
@kevinkern.dev

- Learn Cursor AI:Ultimate Cursor Course
- Learn to build software with AI:
instructa.ai

- AI Prompts- Curated AI Prompts for Cursor AI, Cline, Windsurf and Github Copilot
-
codefetch- Turn code into Markdown for LLMs with one simple terminal command
-
aidexA CLI tool that provides detailed information about AI language models, helping developers choose the right model for their needs.
-
codetie- XCode CLI

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

Enables LLMs to search, download, and extract information from YouTube music videos.

Access the Spotify Web API to search and retrieve information about tracks, albums, artists, and playlists.

Finds background music for YouTube shorts by analyzing script content and recommending tracks from YouTube Music.

Search, download, and extract information from YouTube music videos.

MCP server for AI music catalog — search, stream, and browse 1M+ AI-generated tracks

Find anything in any video. Semantic video search, video Q&A, persistent memory, and social media import (TikTok/YouTube/Instagram) for AI agents. 18 MCP tools.

High-efficiency YouTube MCP server providing token-optimized, structured data for LLMs.

Search, browse, and manage your Tidal music library with AI. Discover artists, albums, and tracks. Create and curate playlists. Add favorites to your library. Get personalized recommendations. 32 tools powered by the official Tidal API with OAuth authentication.

https://github.com/vamsi-kodimela/maagpi-youtube-mcp

Provides access to the transcripts of any YouTube playlist, configurable via URL.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.