Skip to main content
Glama

YouTube Music MCP 🎵

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.

Built with:

Available Tools

  • searchTrack: Search for tracks on YouTube Music by name.

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

Installation

Related MCP server: MCP Spotify Server

1. Get a key

To make this work you need a valid Google Youtube API Key

2. Add to cursor

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

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

Develop

This MCP is typically run directly using npx and 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.

License

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


Courses

See my other projects:

  • 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

  • aidex A CLI tool that provides detailed information about AI language models, helping developers choose the right model for their needs.

  • codetie - XCode CLI

Available Tools

2 tools
playTrackA

Search for a track on YouTube Music and open the top result in the default browser.

Inputs: trackName (required).

searchTrackC

Search for tracks on YouTube Music by name.

Inputs: trackName (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 2 tools

    Disambiguation2/5

    The two tools have overlapping purposes that could cause confusion. Both 'playTrack' and 'searchTrack' involve searching for tracks on YouTube Music, with 'playTrack' additionally opening the top result in a browser. An agent might misselect between them when the intent is ambiguous, such as wanting to search without playing or vice versa, as the descriptions don't clearly delineate distinct use cases.

    Naming Consistency5/5

    The tool names follow a consistent pattern throughout. Both use camelCase with a verb-noun structure ('playTrack' and 'searchTrack'), making them predictable and readable. There are no deviations or mixed conventions, which aids in clarity and usability.

    Tool Count2/5

    The tool count of 2 feels too thin for a YouTube Music server's apparent scope. With only search and play functionality, there are obvious gaps like managing playlists, controlling playback, or accessing user data. This limited set may hinder agents from performing common music-related tasks, indicating an incomplete surface for the domain.

    Completeness2/5

    The tool surface is severely incomplete for a YouTube Music domain. It only covers searching and playing tracks, missing essential operations such as pausing, skipping, volume control, playlist management, or user authentication. These gaps will likely cause agent failures when attempting broader music interactions, as the current tools don't support a full lifecycle or common workflows.

    Related MCP Connectors

    Related MCP Servers